/* ForElektrik B2B — kurumsal mavi / beyaz */
:root {
  --blue: #1a56db;
  --blue-2: #1246b8;
  --blue-soft: #e8f0fe;
  --ink: #0f172a;
  --muted: #5b677a;
  --line: #e2e8f0;
  --paper: #f5f8fc;
  --white: #fff;
  --navy: #0b1f3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--white);
  color: var(--ink);
  font: 15px/1.5 "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.top {
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 32px;
  height: auto;
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
}
.top a { color: var(--ink); }
.brand {
  display: flex; flex-direction: column; line-height: 1.15;
  font-weight: 800; font-size: 18px; letter-spacing: 0; color: var(--ink) !important;
}
.brand span { color: var(--blue); }
.brand small {
  font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px;
}
.brand-mark { display: none; }
.nav-mid {
  display: flex; gap: 22px; margin: 0 auto; font-size: 14px; font-weight: 500; color: #334155;
}
.nav-mid a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer; position: relative;
}
.nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink);
}
.nav-toggle::before { top: 14px; box-shadow: 0 6px 0 var(--ink); }
.nav-toggle::after { bottom: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff !important; border: 0;
  padding: 10px 16px; font-weight: 700; cursor: pointer; font-size: 14px;
  border-radius: 10px; font-family: inherit;
}
.btn:hover { background: var(--blue-2); filter: none; text-decoration: none; }
.btn.ghost {
  background: #fff; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn.ghost:hover { border-color: var(--blue); color: var(--blue) !important; }
.btn-lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn.warn { background: #b91c1c; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 20px 80px; }
.note { font-size: 13px; color: var(--muted); }
.err { color: #b91c1c; font-size: 13px; }
form.stack { display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
label { font-size: 12px; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: #fff;
  font: inherit; color: inherit; border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--blue); }

.grid-page { padding: 12px 16px 40px; background: var(--paper); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.sheet-wrap { border: 1px solid var(--line); overflow: auto; max-height: calc(100vh - 180px); background: #fff; border-radius: 10px; }
table.sheet { width: 100%; border-collapse: collapse; font-family: ui-monospace, monospace; font-size: 12px; }
table.sheet th { position: sticky; top: 0; background: #eff4fb; border: 1px solid #dbe4f0; padding: 6px 8px; text-align: left; font-weight: 700; z-index: 1; }
table.sheet td { border: 1px solid #edf1f6; padding: 0; }
table.sheet td input, table.sheet td select { border: 0; width: 100%; padding: 6px 8px; background: transparent; font: inherit; border-radius: 0; }
table.sheet tr:nth-child(even) td { background: #f8fafc; }
table.sheet td.num input { text-align: right; }
table.sheet .warn-row td { background: #fef2f2; }
table.sheet .sug-row td { background: #fff7ed; }
.suggest {
  position: absolute; background: #fff; border: 1px solid var(--line); max-height: 240px; overflow: auto;
  z-index: 30; min-width: 420px; border-radius: 10px; box-shadow: 0 12px 40px rgba(15,23,42,.08);
}
.suggest div { padding: 7px 10px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.suggest div:hover, .suggest div.on { background: var(--blue-soft); }
.totals { margin-top: 12px; display: flex; justify-content: flex-end; gap: 24px; align-items: center; }
.totals b { font-size: 18px; }

.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 72px); }
.side { background: var(--navy); color: #f8fafc; padding: 18px 0; }
.side a { display: block; color: #cbd5e1; padding: 8px 18px; text-decoration: none; font-size: 13px; }
.side a:hover, .side a.on { background: #163056; color: #fff; }
.admin-main { padding: 24px; background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
table.data th, table.data td { border: 1px solid var(--line); padding: 8px; text-align: left; font-size: 13px; }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; background: var(--blue-soft); border-radius: 999px; }
.pill.bad { background: #fee2e2; color: #b91c1c; }
.pill.wait { background: #ffedd5; }
.banner-img { width: 100%; max-height: 160px; object-fit: cover; display: block; }

.auth-split {
  display: grid; grid-template-columns: 1.05fr .95fr; min-height: calc(100svh - 72px);
}
.auth-still { margin: 0; position: relative; overflow: hidden; background: #0b1f3a; }
.auth-still img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.auth-still figcaption {
  position: absolute; left: 28px; bottom: 28px; right: 28px;
  color: #fff; font-size: 22px; font-weight: 700; text-shadow: 0 8px 24px #000;
}
.auth-pane { background: #fff; padding: 56px 48px 80px; display: flex; flex-direction: column; justify-content: center; }
.auth-pane h1 { font-size: 34px; margin: 0 0 8px; font-weight: 800; letter-spacing: -.03em; }
.auth-pane .lede-sm { color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.auth-pane .kicker { color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }

@media (max-width: 800px) {
  .admin-layout, .auth-split { grid-template-columns: 1fr; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-mid, .nav-actions {
    display: none; position: absolute; left: 12px; right: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px; flex-direction: column;
  }
  .nav-open .nav-mid { display: flex; top: 72px; }
  .nav-open .nav-actions { display: flex; top: 260px; }
  .top { flex-wrap: wrap; padding: 12px 16px; }
}
