/* Saraç Muhasebe Çözümleri — arayüz stilleri (2.0).
   Tanıtım sitesiyle aynı dil: gece mavisi + altın, Manrope başlık, Inter metin.
   Yazı tipleri yerelden gelir (fonts.css); dış bağımlılık yok. */
@import url("/ui/fonts/fonts.css");

:root {
  /* marka */
  --night:          #060a14;
  --night-2:        #0b1222;
  --night-3:        #121b30;
  --gold:           #c9a45c;
  --gold-soft:      #e6cf9c;
  --gold-deep:      #7d5f28;
  --gold-tint:      #fbf6ea;

  /* içerik */
  --ink:            #0c1322;
  --ink-2:          #26324a;
  --ink-soft:       #5d6678;
  --line:           #e8e5dd;
  --line-strong:    #d9d3c5;
  --paper:          #f6f5f1;
  --surface:        #ffffff;
  --surface-2:      #faf9f6;

  /* eski adlar (app.js satır içi stillerinde geçer) */
  --accent:         var(--gold);
  --accent-dark:    #b08d4a;
  --accent-soft:    var(--gold-tint);

  /* durum renkleri — şartname md. 8 */
  --ok:      #16794a;  --ok-bg:      #e7f4ec;
  --new:     #b3261e;  --new-bg:     #fcecea;
  --warn:    #9a5b07;  --warn-bg:    #fdf2e0;
  --info:    #1d5c8a;  --info-bg:    #e9f1f8;
  --pending: #86690f;  --pending-bg: #fbf4da;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(12, 19, 34, .04), 0 8px 24px -12px rgba(12, 19, 34, .14);
  --shadow-lg: 0 30px 80px -30px rgba(6, 10, 20, .55);
  --ease: cubic-bezier(.22, .8, .22, 1);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(201, 164, 92, .35); }

/* Rakamlar ve hesap kodları her satırda aynı genişlikte olsun */
.num, .code, td.num, .money { font-variant-numeric: tabular-nums; }
.code {
  font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: -.01em;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 24px; line-height: 1.2; }
h2 { font-size: 16px; }
a { color: var(--gold-deep); }

/* ================================================================ logo */

.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.logo svg { width: 38px; height: 38px; flex: 0 0 auto; }
.logo .kelime { display: flex; flex-direction: column; line-height: 1; }
.logo .ad { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: .28em; }
.logo .alt { margin-top: 6px; font-size: 9.5px; font-weight: 650; letter-spacing: .24em; color: var(--gold); }
.logo.koyu { color: var(--ink); }
.logo.koyu .alt { color: var(--gold-deep); }

/* ================================================================ giriş ekranı */

@keyframes hare-1 { 0%, 100% { transform: translate(-10%, -8%) scale(1); } 50% { transform: translate(8%, 6%) scale(1.15); } }
@keyframes hare-2 { 0%, 100% { transform: translate(6%, 10%) scale(1.05); } 50% { transform: translate(-8%, -6%) scale(.92); } }
@keyframes yuksel { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ciz { to { stroke-dashoffset: 0; } }
@keyframes parilti { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@keyframes huzme { 0% { transform: translateX(-60%) rotate(18deg); opacity: 0; } 20%, 80% { opacity: 1; }
                   100% { transform: translateX(160%) rotate(18deg); opacity: 0; } }
@keyframes hale-don { to { transform: rotate(360deg); } }
@keyframes isaret-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .0), 0 12px 30px -12px rgba(201, 164, 92, .6); }
                          50% { box-shadow: 0 0 0 8px rgba(201, 164, 92, .08), 0 12px 30px -12px rgba(201, 164, 92, .6); } }
@keyframes sarsil { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); }
                    30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes ust-cizgi { from { background-position: -200% 0; } to { background-position: 200% 0; } }

.login-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 48px clamp(24px, 6vw, 96px);
  background: radial-gradient(120% 90% at 50% 0%, #0d1528 0%, var(--night) 60%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: opacity .42s var(--ease), transform .42s var(--ease), filter .42s var(--ease);
}
.login-wrap.kapaniyor { opacity: 0; transform: scale(1.02); filter: blur(6px); }
/* hareli ışık */
.login-wrap::before, .login-wrap::after {
  content: ""; position: absolute; z-index: -2; border-radius: 50%; pointer-events: none;
}
.login-wrap::before {
  width: 70vmax; height: 70vmax; top: -30vmax; left: -15vmax;
  background: radial-gradient(closest-side, rgba(201, 164, 92, .24), transparent);
  animation: hare-1 22s ease-in-out infinite;
}
.login-wrap::after {
  width: 60vmax; height: 60vmax; bottom: -30vmax; right: -20vmax;
  background: radial-gradient(closest-side, rgba(122, 162, 255, .17), transparent);
  animation: hare-2 26s ease-in-out infinite;
}
/* ince ızgara + doku */
.login-izgara {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 45% 40%, #000 30%, transparent 100%);
}
.login-izgara::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}
/* yavaşça geçen ışık hüzmesi */
.login-huzme {
  position: absolute; top: -20%; left: 0; width: 28vw; height: 140%; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(230, 207, 156, .07), transparent);
  animation: huzme 14s ease-in-out infinite;
}

.login-hero { max-width: 640px; animation: yuksel .9s var(--ease) both; }
.login-hero .logo svg { width: 46px; height: 46px; }
.login-hero .logo .ad { font-size: 20px; }
.login-hero .logo svg path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: ciz 1.6s .2s var(--ease) forwards; }
.login-hero h1 {
  margin-top: 56px;
  font-size: clamp(34px, 3.7vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
}
.altin-yazi {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  background: linear-gradient(100deg, #f3e2b8 0%, #c9a45c 45%, #f0dcaa 70%, #b38b45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-hero p { margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .6); max-width: 46ch; }
.login-hero ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.login-hero li {
  display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .78); font-size: 14px;
  animation: yuksel .8s var(--ease) both;
}
.login-hero li:nth-child(1) { animation-delay: .35s; }
.login-hero li:nth-child(2) { animation-delay: .45s; }
.login-hero li:nth-child(3) { animation-delay: .55s; }
.login-hero li::before {
  content: ""; width: 22px; height: 22px; flex: 0 0 auto; border-radius: 7px;
  background: rgba(201, 164, 92, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a45c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* kart ve arkasındaki dönen hale */
.login-sahne { position: relative; justify-self: center; width: 100%; max-width: 440px; }
.kart-hale {
  position: absolute; inset: -60px; z-index: -1; border-radius: 50%; pointer-events: none; opacity: .55;
  background: conic-gradient(from 0deg, transparent 0 20%, rgba(201, 164, 92, .35) 32%, transparent 45% 70%,
                             rgba(122, 162, 255, .25) 82%, transparent 95%);
  filter: blur(40px);
  animation: hale-don 18s linear infinite;
}
.login-card {
  position: relative;
  width: 100%;
  padding: 40px 38px 26px;
  border-radius: 28px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 164, 92, .10), transparent 55%),
    linear-gradient(180deg, rgba(17, 25, 45, .9), rgba(9, 14, 27, .94));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .06);
  animation: yuksel .9s .15s var(--ease) both;
  isolation: isolate;
}
.login-card.sarsil { animation: sarsil .5s cubic-bezier(.36, .07, .19, .97) both; }
.login-card::before {                         /* ışıklı kenar */
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(160deg, rgba(230, 207, 156, .55), rgba(255, 255, 255, .07) 30%,
                              rgba(255, 255, 255, .03) 70%, rgba(122, 162, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.login-card::after {                          /* üst kenarda akan altın ışık */
  content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent) 0 0 / 200% 100%;
  animation: ust-cizgi 6s linear infinite;
}
.kart-ust { display: flex; justify-content: center; margin-bottom: 22px; }
.logo-isareti {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(230, 207, 156, .25);
  animation: isaret-nabiz 4s ease-in-out infinite;
}
.logo-isareti svg { width: 34px; height: 34px; }
.logo-isareti svg path { stroke-dasharray: 140; stroke-dashoffset: 140; animation: ciz 1.6s .3s var(--ease) forwards; }
.login-card .kart-logo { display: none; }
.login-card .kart-baslik { text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 700;
  letter-spacing: -.02em; color: #fff; }
.login-card .brand-sub { text-align: center; margin: 6px 0 28px; color: rgba(255, 255, 255, .5); font-size: 13.5px; }

/* simgeli, yüzen etiketli alanlar */
.g-sarici { margin-bottom: 14px; }
.g-alan { position: relative; }
.login-wrap .g-alan input {
  width: 100%; height: 58px; padding: 22px 16px 6px 48px;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  color: #fff; font: inherit; font-size: 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.g-alan.parola input { padding-right: 48px; }
.login-wrap .g-alan input:hover { border-color: rgba(255, 255, 255, .2); }
.login-wrap .g-alan input:focus-visible {
  outline: none; border-color: rgba(201, 164, 92, .75); background: rgba(255, 255, 255, .07);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, .14);
}
.login-wrap .g-alan input[name="urun_kodu"] {
  font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold-soft); font-weight: 600;
}
.g-alan label {
  position: absolute; left: 48px; top: 50%; transform: translateY(-50%);
  color: rgba(255, 255, 255, .45); font-size: 14.5px; pointer-events: none;
  transition: top .2s var(--ease), font-size .2s var(--ease), color .2s;
}
.login-wrap .g-alan input:focus + label,
.login-wrap .g-alan input:not(:placeholder-shown) + label { top: 15px; font-size: 11px; letter-spacing: .04em; color: rgba(230, 207, 156, .85); }
.g-alan .ikon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px;
  color: rgba(255, 255, 255, .38); pointer-events: none; transition: color .2s;
}
.g-alan:focus-within .ikon { color: var(--gold); }
.g-alan .ikon svg, .ikon-sade svg { width: 100%; height: 100%; display: block; }
.g-goster {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, .45); display: grid; place-items: center; transition: background .15s, color .15s;
}
.g-goster:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.g-goster .ikon-sade { width: 18px; height: 18px; }
.g-caps { max-height: 0; overflow: hidden; font-size: 12px; color: var(--gold-soft); transition: max-height .2s, margin .2s; }
.g-caps.gorunur { max-height: 20px; margin-top: 6px; }
.g-ipucu { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .45); }

.login-card .check { color: rgba(255, 255, 255, .6); font-size: 13px; margin: 4px 0 20px; }
.login-card .check input { accent-color: var(--gold); width: 16px; height: 16px; }
.giris-satiri { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.giris-satiri .check { margin: 0; }

/* altın düğme */
.g-dugme {
  position: relative; overflow: hidden; width: 100%; height: 54px; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--night); cursor: pointer;
  background: linear-gradient(180deg, #dcbd7c, #c9a45c 60%, #b8914a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 16px 40px -14px rgba(201, 164, 92, .8);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.g-dugme:hover:not(:disabled) { filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 20px 48px -14px rgba(201, 164, 92, .95); }
.g-dugme:active:not(:disabled) { transform: translateY(1px); }
.g-dugme::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(-120%);
}
.g-dugme:hover::after { animation: parilti 1s var(--ease); }
.g-dugme-ok { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.g-dugme:hover .g-dugme-ok { transform: translateX(4px); }
.g-dugme.yukleniyor { cursor: wait; }
.g-dugme.yukleniyor .g-dugme-ok {
  border: 2px solid rgba(6, 10, 20, .25); border-top-color: var(--night); border-radius: 50%;
  animation: spin .7s linear infinite;
}
.g-dugme.yukleniyor .g-dugme-ok svg { display: none; }
.g-dugme:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 3px; }

.login-card .link { color: var(--gold-soft); font-size: 13px; }
.login-card .geri { display: block; text-align: center; margin-top: 18px; }
.login-card .msg { border-radius: 12px; }
.login-card .msg.info  { background: rgba(122, 162, 255, .1); border-color: rgba(122, 162, 255, .25); color: #cfdcff; }
.login-card .msg.error { background: rgba(229, 72, 77, .12); border-color: rgba(229, 72, 77, .35); color: #ffd1d1; }
.login-card .msg.ok    { background: rgba(61, 219, 176, .1); border-color: rgba(61, 219, 176, .3); color: #c6f6e6; }
.kart-alt {
  display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 11.5px; color: rgba(255, 255, 255, .38);
}
.kart-alt .ikon-sade { width: 14px; height: 14px; color: var(--gold); }
.kart-alt .surum { color: rgba(255, 255, 255, .25); }
.kart-alt .surum::before { content: "·"; margin-right: 7px; }
.login-alt { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px;
  letter-spacing: .04em; color: rgba(255, 255, 255, .32); }

@media (max-width: 980px) {
  .login-wrap { grid-template-columns: 1fr; padding: 32px 16px 64px; }
  .login-hero { display: none; }
  .login-card .kart-ust .logo-isareti { display: none; }
  .login-card .kart-logo { display: flex; }
  .login-card .kart-logo .logo svg { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .login-card { padding: 30px 22px 22px; border-radius: 22px; }
}

/* ================================================================ kabuk */

@keyframes sayfa { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.sidebar {
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(201, 164, 92, .12), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: rgba(255, 255, 255, .72);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-inline-end: 1px solid rgba(255, 255, 255, .06);
}
.sidebar .brand {
  padding: 22px 20px 18px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sidebar .brand small { display: block; font-size: 11px; font-weight: 400; color: rgba(255, 255, 255, .45); }
.sidebar .brand .buro-adi {
  display: block; margin-top: 16px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07);
  color: #fff; font-weight: 600; font-size: 12.5px; line-height: 1.35;
}
.sidebar .brand .buro-adi .code { display: block; margin-top: 3px; font-weight: 500; color: var(--gold); font-size: 11px;
  letter-spacing: .08em; }
.nav { padding: 10px 10px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.nav-group {
  padding: 16px 12px 6px;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(201, 164, 92, .75);
}
.nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, .64);
  padding: 8px 12px;
  margin: 1px 0;
  font: inherit;
  font-size: 13.5px;
  text-align: start;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.nav button:hover:not(:disabled) { background: rgba(255, 255, 255, .06); color: #fff; }
.nav button[aria-current="page"] {
  background: linear-gradient(90deg, rgba(201, 164, 92, .18), rgba(201, 164, 92, .04));
  color: var(--gold-soft);
  font-weight: 600;
}
.nav button[aria-current="page"]::before {
  content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--gold);
}
.nav button:disabled { color: rgba(255, 255, 255, .25); cursor: not-allowed; }
.nav button:disabled .stage { margin-inline-start: auto; font-size: 10px; }
.nav .ico { width: 18px; text-align: center; opacity: .8; font-size: 14px; }

.sidebar-foot {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 14px 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.sidebar-foot strong { display: block; color: #fff; font-size: 13px; font-weight: 600; }
.sidebar-foot .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; }
.sidebar-foot .btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }

.main { display: flex; flex-direction: column; min-width: 0; }

/* Aktif firma çubuğu — bu programın en önemli bağlam bilgisi */
.context-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 11px 28px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.context-bar .label { white-space: nowrap; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }
.context-bar select { min-width: 300px; flex: 0 1 520px; font-weight: 600; }
.context-bar .btn { white-space: nowrap; }
.context-bar .vkn { font-size: 12px; color: var(--ink-soft); }
.context-bar .spacer { flex: 1; }

.page { padding: 28px; max-width: 1240px; width: 100%; animation: sayfa .35s var(--ease) both; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.page-head .sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; max-width: 72ch; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ================================================================ bileşenler */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: clip;
}
.card > h2 {
  padding: 15px 20px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.card-body { padding: 18px 20px; }
.card .sub { color: var(--ink-soft); font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.stat::before {
  content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7;
}
.stat:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(12, 19, 34, .3); }
.stat .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat .t { color: var(--ink-soft); font-size: 12px; margin-top: 2px; }
.stat.muted .n { color: var(--ink-soft); }
.stat.ok .n { color: var(--ok); }
.stat.warn .n { color: var(--warn); }
.stat.bad .n { color: var(--new); }
.stat.info .n { color: var(--info); }

/* Gösterge paneli grafik kartları (halka grafik + lejant) */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-bottom: 20px; }
.chart-sub { font-size: 12px; color: var(--ink-soft); margin-bottom: 12px; }
.chart-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.chart-row svg { flex: 0 0 auto; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; min-width: 140px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; }
.legend .dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.legend .t { color: var(--ink); }
.legend .n { margin-inline-start: auto; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
@media (max-width: 760px) {
  .chart-grid { grid-template-columns: 1fr; }
}

/* tablolar */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: start;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-soft);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fcfaf4; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: end; }
.table-scroll { max-height: 62vh; overflow: auto; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions .btn { white-space: nowrap; }

.tree-indent { display: inline-block; }

/* rozetler */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.6;
}
.badge.ok      { background: var(--ok-bg);      color: var(--ok); }
.badge.new     { background: var(--new-bg);     color: var(--new); }
.badge.warn    { background: var(--warn-bg);    color: var(--warn); }
.badge.info    { background: var(--info-bg);    color: var(--info); }
.badge.pending { background: var(--pending-bg); color: var(--pending); }
.badge.off     { background: #eef0f3;           color: var(--ink-soft); }

/* form öğeleri */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
label.field .hint { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; }

input[type="text"], input[type="password"], input[type="email"], input[type="tel"], input[type="date"],
input[type="search"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
input:hover, select:hover, textarea:hover { border-color: #c9c1ae; }
textarea { min-height: 70px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 164, 92, .18);
}
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input[disabled], select[disabled] { background: #f3f2ee; color: var(--ink-soft); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

/* düğmeler */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s, transform .12s;
}
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: #c9c1ae; box-shadow: 0 4px 14px -8px rgba(12, 19, 34, .35); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(180deg, #d4b16c, var(--gold));
  border-color: #b8934b;
  color: var(--night);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 22px -12px rgba(176, 141, 74, .9);
}
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ddbd7c, #cfaa62); border-color: #b08d4a; }
.btn.danger { color: var(--new); border-color: #ebc3c0; }
.btn.danger:hover:not(:disabled) { background: var(--new-bg); }
.btn.small { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.btn-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; flex-wrap: wrap; }

.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.toolbar input[type="text"] { max-width: 320px; }
.toolbar .count { margin-inline-start: auto; font-size: 12px; color: var(--ink-soft); }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; }
.check input { width: auto; }

/* bildirim ve mesajlar */
.msg { padding: 12px 15px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 13px; border: 1px solid; }
.msg.error   { background: var(--new-bg);  border-color: #efc6c2; color: #7d1a15; }
.msg.ok      { background: var(--ok-bg);   border-color: #bcdfca; color: #125633; }
.msg.warn    { background: var(--warn-bg); border-color: #efd8ae; color: #724406; }
.msg.info    { background: var(--info-bg); border-color: #c6dbeb; color: #154766; }
.msg ul { margin: 7px 0 0; padding-inline-start: 20px; }
.msg li { margin-bottom: 2px; }

.empty { padding: 48px 24px; text-align: center; color: var(--ink-soft); }
.empty p { margin: 0 0 14px; }

.lisans-seridi {
  background: linear-gradient(90deg, #3b2a0c, #5a3f10);
  color: var(--gold-soft);
  padding: 10px 28px;
  font-size: 13px;
  font-weight: 600;
}

/* pencere */
@keyframes arka-gir { from { opacity: 0; } to { opacity: 1; } }
@keyframes pencere-gir { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 100;
  animation: arka-gir .2s ease both;
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: pencere-gir .28s var(--ease) both;
}
.modal header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
}
.modal header h2 { font-size: 17px; }
.modal header .x {
  margin-inline-start: auto; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent;
  font-size: 20px; cursor: pointer; color: var(--ink-soft); line-height: 1; transition: background .15s;
}
.modal header .x:hover { background: var(--paper); color: var(--ink); }
.modal .body { padding: 22px; overflow-y: auto; }
.modal .body h4 { margin: 18px 0 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }

/* kısa bildirim */
@keyframes toast-gir { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.toast {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  background: var(--night-2);
  color: #fff;
  padding: 13px 18px;
  border-radius: 12px;
  border-inline-start: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-width: 400px;
  font-size: 13.5px;
  animation: toast-gir .3s var(--ease) both;
}
.toast.bad { background: #3d0f0c; border-inline-start-color: #ff6b61; }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(6, 10, 20, .25);
  border-top-color: var(--night);
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn:not(.primary) .spinner { border-color: rgba(12, 19, 34, .18); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.loading { padding: 40px; text-align: center; color: var(--ink-soft); }
.loading::before {
  content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 12px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--gold); animation: spin .7s linear infinite;
}

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--ink-soft); font-size: 13px; }
dl.kv dd { margin: 0; font-weight: 500; }

.perm-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 4px 18px; }
.perm-list .check { padding: 3px 0; }
.link { color: var(--info); text-decoration: none; font-size: 13px; }
.link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .context-bar { flex-wrap: wrap; }
  .context-bar select { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; }
  .login-hero .logo svg path, .logo-isareti svg path { stroke-dashoffset: 0; }
}

/* Fatura detayı: solda fatura, sağda muhasebe paneli */
.fatura-duzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.fatura-duzen .sag {
  position: sticky;
  top: 0;
  align-self: start;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 20px;
}
@media (max-width: 1000px) {
  .fatura-duzen { grid-template-columns: 1fr; }
  .fatura-duzen .sag { border-inline-start: 0; padding-inline-start: 0; position: static; }
}

/* Fatura detayı: Özet / PDF Önizleme geçişi */
.ozet-pdf-panel { display: flex; flex-direction: column; height: 100%; }
.ozet-pdf-gecis { display: flex; gap: 6px; margin-bottom: 12px; flex: 0 0 auto; }
.ozet-pdf-gecis .btn.active { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.ozet-pdf-govde { flex: 1 1 auto; min-height: 0; }
.pdf-onizleme { height: 100%; min-height: 70vh; }
.pdf-onizleme iframe {
  width: 100%; height: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 12px;
}
@media (max-width: 1000px) {
  .pdf-onizleme, .pdf-onizleme iframe { min-height: 60vh; }
}

/* Fatura penceresi ekrana tam otursun: iki sütun bağımsız kayar */
.modal.tam { max-width: 1500px; width: 98vw; height: 94vh; max-height: 94vh; }
.modal.tam > .body { overflow: hidden; padding: 0; }
.modal.tam .fatura-duzen { height: 100%; gap: 0; }
.modal.tam .fatura-duzen .sol,
.modal.tam .fatura-duzen .sag {
  overflow-y: auto;
  height: 100%;
  padding: 18px 22px;
  position: static;
}
.modal.tam .fatura-duzen .sag { border-inline-start: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 1000px) {
  .modal.tam { height: 96vh; }
  .modal.tam .fatura-duzen { grid-template-columns: 1fr; overflow-y: auto; }
  .modal.tam .fatura-duzen .sol,
  .modal.tam .fatura-duzen .sag { height: auto; overflow: visible; }
}

/* Yeni indirilen fatura kırmızı, daha önce indirilmiş yeşil (şartname md. 8) */
tbody tr.satir-yeni { background: #fdf6f5; box-shadow: inset 3px 0 0 var(--new); }
tbody tr.satir-yeni:hover { background: #fbeceb; }
tbody tr.satir-eski { box-shadow: inset 3px 0 0 var(--ok); }

/* Sekmeler: Fatura Merkezi (Alış | Satış | E-Arşiv), E-Arşiv (Gelen | Giden), Defter Beyan (Gider | Gelir) */
.sekmeler {
  display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px;
  background: #ecebe6; border-radius: 12px;
}
.sekmeler button {
  appearance: none; background: transparent; border: 0; border-radius: 9px; padding: 8px 16px;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.sekmeler button:hover { color: var(--ink); }
.sekmeler button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(12, 19, 34, .3); }
.sekmeler .n { margin-inline-start: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 500; }
tr.cift-tik { cursor: pointer; }

/* ===================================================================
   MOBİL UYUM
   Telefonda: kenar çubuğu açılır menüye döner, tablolar kart olur,
   dokunma hedefleri büyür, yazı boyutu 16px'e çıkar.
   =================================================================== */

.menu-dugmesi { display: none; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .shell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    width: 272px;
    height: 100vh;
    z-index: 120;
    transform: translateX(-102%);
    transition: transform .25s var(--ease);
    overflow-y: auto;
  }
  [dir="rtl"] .sidebar { transform: translateX(102%); }
  body.menu-acik .sidebar { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .55); }
  body.menu-acik::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 20, .55);
    backdrop-filter: blur(2px);
    z-index: 110;
  }
  .nav button { padding: 12px 12px; }

  .menu-dugmesi {
    display: inline-flex;
    width: 40px;
    height: 40px;
    font-size: 19px;
    line-height: 1;
  }

  .context-bar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .context-bar select { min-width: 0; flex: 1 1 100%; order: 3; }
  .context-bar .label { display: none; }

  .page { padding: 16px 12px 32px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head .actions { margin-inline-start: 0; justify-content: stretch; }
  .page-head .actions .btn { flex: 1 1 auto; }
  h1 { font-size: 20px; }

  .btn { padding: 10px 14px; min-height: 42px; }
  .btn.small { padding: 7px 11px; min-height: 36px; }
  input[type="text"], input[type="password"], input[type="email"], input[type="date"], input[type="tel"],
  input[type="search"], input[type="number"], input[type="file"], select, textarea {
    font-size: 16px;
    padding: 10px;
    min-height: 44px;
  }
  .check input[type="checkbox"] { width: 20px; height: 20px; }

  .toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .toolbar input[type="text"] { max-width: none; flex: 1 1 100%; }
  .toolbar .count { margin-inline-start: 0; flex-basis: 100%; }

  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat .n { font-size: 21px; }

  table.mobil-kart thead { display: none; }
  table.mobil-kart, table.mobil-kart tbody, table.mobil-kart tr, table.mobil-kart td {
    display: block;
    width: 100%;
  }
  table.mobil-kart tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 6px 4px;
    background: var(--surface);
  }
  table.mobil-kart td {
    border: 0;
    padding: 5px 12px;
    display: flex;
    gap: 10px;
    align-items: baseline;
  }
  table.mobil-kart td::before {
    content: attr(data-baslik);
    flex: 0 0 38%;
    font-size: 11px;
    color: var(--ink-soft);
  }
  table.mobil-kart td:empty { display: none; }
  table.mobil-kart td.num { text-align: start; justify-content: flex-start; }
  table.mobil-kart .row-actions { justify-content: flex-start; flex-wrap: wrap; }
  .table-scroll { max-height: none; }

  .modal-back { padding: 0; }
  .modal, .modal.tam {
    max-width: 100%;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .modal header { padding: 12px 14px; }
  .modal .body { padding: 14px; }
  .modal footer { padding: 10px 14px; position: sticky; bottom: 0; }
  .modal.tam .fatura-duzen { grid-template-columns: 1fr; overflow-y: auto; }
  .modal.tam .fatura-duzen .sol,
  .modal.tam .fatura-duzen .sag { height: auto; overflow: visible; padding: 14px; }

  .muhasebe-satir { grid-template-columns: 1fr !important; }
  .form-grid { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: 2px 0; }
  dl.kv dt { margin-top: 8px; }
  .toast { inset-inline: 12px; inset-block-end: 12px; max-width: none; }
  .sekmeler { display: flex; overflow-x: auto; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
}

/* ================================================================ 2.0 eklentileri */

/* simgeler */
.nav .ico { width: 18px; height: 18px; flex: 0 0 auto; opacity: .85; }
.nav .ico svg, .btn-ikon svg, .fs-ikon svg, .fs-ok svg, .fp-ikon svg, .fp-tik svg, .kpi-ikon svg,
.komut-ikon svg, .ko-ikon svg, .zil-ikon svg, .ka-tik svg, .kk-ikon svg, .ag-ikon svg, .is-ok svg,
.mutlu-ikon svg { width: 100%; height: 100%; display: block; }
.nav button[aria-current="page"] .ico { opacity: 1; color: var(--gold); }
.btn-ikon { width: 16px; height: 16px; flex: 0 0 auto; }
.btn.ikon-dugme { padding: 5px 8px; }
kbd {
  white-space: nowrap;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 5px; line-height: 1.4;
}
.link-dugme { border: 0; background: none; padding: 0; color: var(--gold-deep); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; }
.link-dugme:hover { text-decoration: underline; }

/* aranabilir firma seçici */
.firma-secici {
  display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 560px; flex: 0 1 560px;
  padding: 6px 12px 6px 8px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: start; cursor: pointer;
  transition: border-color .18s, box-shadow .18s;
}
.firma-secici:hover:not(:disabled) { border-color: #c9c1ae; box-shadow: 0 4px 14px -8px rgba(12, 19, 34, .3); }
.firma-secici:disabled { cursor: default; opacity: .7; }
.fs-ikon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; flex: 0 0 auto;
  background: var(--gold-tint); color: var(--gold-deep); }
.fs-metin { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.fs-metin strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-metin small { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-vkn { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-soft); }
.fs-ok { width: 16px; height: 16px; color: var(--ink-soft); flex: 0 0 auto; }

@keyframes pop-gir { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.firma-pop, .bildirim-pop {
  position: fixed; z-index: 150; width: 500px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden; animation: pop-gir .18s var(--ease) both;
}
.fp-ara { position: relative; padding: 10px; border-bottom: 1px solid var(--line); }
.fp-ara input { padding-left: 38px !important; height: 42px; }
.fp-ikon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-soft); }
.fp-liste { max-height: min(60vh, 460px); overflow-y: auto; padding: 6px; }
.fp-baslik { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }
.fp-satir {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; text-align: start; cursor: pointer;
}
.fp-satir.aktif, .fp-satir:hover { background: var(--gold-tint); }
.fp-satir.secili .fp-ad strong { color: var(--gold-deep); }
.fp-rozet { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--night-2); color: var(--gold-soft); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.fp-ad { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fp-ad strong { font-size: 13.5px; }
.fp-ad small { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-vkn { margin-inline-start: auto; font-size: 11.5px; color: var(--ink-soft); }
.fp-tik { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }
.fp-bos { padding: 28px 16px; text-align: center; color: var(--ink-soft); font-size: 13px; }

/* arama düğmesi ve bildirim zili */
.arama-dugmesi {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2);
  color: var(--ink-soft); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .18s;
}
.arama-dugmesi:hover { border-color: #c9c1ae; color: var(--ink); }
.zil {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 36px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-2);
  cursor: pointer; transition: border-color .18s;
}
.zil:hover { border-color: #c9c1ae; }
.zil-ikon { width: 18px; height: 18px; }
.zil-rozet {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--new); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--surface);
}
.zil-rozet[hidden] { display: none; }
@keyframes zil-nabiz { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .5); } 50% { box-shadow: 0 0 0 5px rgba(201, 164, 92, 0); } }
.zil.calisiyor { border-color: var(--gold); animation: zil-nabiz 1.8s ease-in-out infinite; }
.bildirim-pop { width: 400px; }
.bp-ust { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bildirim-pop ul { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.bildirim-pop li { display: flex; gap: 12px; padding: 10px; border-radius: 10px; }
.bildirim-pop li.yeni { background: var(--gold-tint); }
.bp-nokta { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: 0 0 auto; background: var(--ok); }
.bp-nokta.calisiyor { background: var(--gold); animation: zil-nabiz 1.4s infinite; }
.bp-nokta.hata { background: var(--new); }
.bp-baslik { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; }
.bp-mesaj { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.bp-zaman { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }

/* gösterge paneli */
.panel { margin-bottom: 26px; }
.panel-iskelet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@keyframes iskelet { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.iskelet, .loading::after {
  height: 104px; border-radius: var(--radius);
  background: linear-gradient(90deg, #edebe5 25%, #f6f4ef 50%, #edebe5 75%) 0 0 / 200% 100%;
  animation: iskelet 1.3s linear infinite;
}
.selam { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.selam h1 { font-size: 26px; }
.selam .sub { color: var(--ink-soft); font-size: 13.5px; margin-top: 4px; }
.selam-eylem { margin-inline-start: auto; }
.selam-eylem kbd { margin-inline-start: 4px; }
.kpi-satiri { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi {
  position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.kpi:first-child {
  background: radial-gradient(120% 90% at 100% 0%, rgba(201, 164, 92, .25), transparent 60%),
              linear-gradient(160deg, var(--night-3), var(--night));
  border-color: transparent; color: #fff;
}
.kpi:first-child .kpi-t, .kpi:first-child .kpi-alt { color: rgba(255, 255, 255, .6); }
.kpi:first-child .kpi-ikon { background: rgba(201, 164, 92, .18); color: var(--gold-soft); }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(12, 19, 34, .35); }
.kpi-ikon { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--gold-tint); color: var(--gold-deep); display: block; }
.kpi-n { margin-top: 14px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; line-height: 1; }
.kpi-t { margin-top: 6px; font-size: 12.5px; color: var(--ink-soft); }
.kpi-alt { margin-top: 2px; font-size: 11.5px; color: var(--ink-soft); }
.panel-izgara { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.panel-izgara .card { margin-bottom: 0; }
.panel-yan { display: grid; gap: 20px; align-content: start; }
.grafik-ust { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lejant { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.lejant span { display: inline-flex; align-items: center; gap: 6px; }
.lejant i, .grafik-ipucu i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.grafik-kap { position: relative; }
.ay-grafik { width: 100%; height: auto; display: block; overflow: visible; }
.ay-grafik .izgara { stroke: var(--line); stroke-width: 1; }
.ay-grafik .eksen { fill: var(--ink-soft); font-size: 11px; font-family: var(--font-sans); }
.ay-grafik .cubuk { transition: opacity .15s; }
.grafik-kap:has(.hedef:hover) .cubuk { opacity: .55; }
.grafik-ipucu {
  position: absolute; top: 0; transform: translate(-50%, -8px); pointer-events: none; opacity: 0;
  display: grid; gap: 3px; padding: 8px 10px; border-radius: 10px; font-size: 12px; white-space: nowrap;
  background: var(--night-2); color: #fff; box-shadow: var(--shadow-lg); transition: opacity .12s;
}
.grafik-ipucu.gorunur { opacity: 1; }
.grafik-ipucu span { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .8); }
.grafik-tablo th, .grafik-tablo td { padding: 7px 10px; }
.is-listesi, .oto-listesi { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.is-listesi button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: 13.5px; text-align: start; cursor: pointer;
}
.is-listesi button:hover { background: var(--surface-2); }
.is-listesi .badge { min-width: 36px; justify-content: center; }
.is-ok { width: 14px; height: 14px; margin-inline-start: auto; transform: rotate(-90deg); color: var(--ink-soft); }
.oto-listesi li { display: flex; gap: 10px; padding: 7px 4px; }
.oto-listesi strong { display: block; font-size: 13.5px; }
.oto-listesi small { color: var(--ink-soft); font-size: 12px; }
.oto-nokta { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; background: var(--ok); }
.oto-nokta.hata { background: var(--new); }
.oto-nokta.calisiyor { background: var(--gold); animation: zil-nabiz 1.4s infinite; }
.mutlu { display: flex; align-items: center; gap: 10px; color: var(--ok); font-weight: 600; font-size: 13.5px; padding: 6px 2px; }
.mutlu.soluk { color: var(--ink-soft); font-weight: 400; justify-content: space-between; }
.mutlu-ikon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ok-bg); }
.bolum-baslik { margin: 6px 0 14px; }
.bolum-baslik h2 { font-size: 18px; }
.bolum-baslik .sub { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }

/* kurulum */
.kurulum-kart { border-color: rgba(201, 164, 92, .45); background: linear-gradient(180deg, var(--gold-tint), var(--surface) 60%); }
.kk-ust { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kk-ust > div { display: flex; flex-direction: column; }
.kk-ust small { color: var(--ink-soft); font-size: 12.5px; }
.kk-ust .link-dugme { margin-inline-start: auto; color: var(--ink-soft); }
.kk-ikon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--night-2); color: var(--gold); }
.ilerleme { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 14px; }
.ilerleme span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); transition: width .6s var(--ease); }
.ki-sayi { font-size: 12.5px; color: var(--ink-soft); margin: -8px 0 12px; }
.kurulum-adim { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kurulum-adim li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.kurulum-adim li.tamam { background: var(--surface-2); }
.kurulum-adim li.tamam .ka-metin strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(12, 19, 34, .25); }
.ka-isaret { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; display: grid; place-items: center; }
.kurulum-adim li.tamam .ka-isaret { background: var(--ok); border-color: var(--ok); color: #fff; }
.ka-tik { width: 14px; height: 14px; }
.ka-metin { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ka-metin small { color: var(--ink-soft); font-size: 12px; }
.kurulum-pencere .sub { color: var(--ink-soft); margin: 0 0 14px; }

/* hızlı arama (Ctrl+K) */
.komut-back { position: fixed; inset: 0; z-index: 160; background: rgba(6, 10, 20, .45); backdrop-filter: blur(3px);
  display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: arka-gir .15s ease both; }
.komut { width: 640px; max-width: 100%; max-height: 70vh; display: flex; flex-direction: column; background: var(--surface);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pencere-gir .22s var(--ease) both; }
.komut-ust { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.komut-ust input { border: 0 !important; box-shadow: none !important; padding: 4px 0 !important; font-size: 16px; background: transparent !important; }
.komut-ikon { width: 20px; height: 20px; color: var(--gold-deep); flex: 0 0 auto; }
.komut-sonuc { overflow-y: auto; padding: 6px; }
.komut-baslik { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-deep); }
.komut-oge { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: start; cursor: pointer; }
.komut-oge.aktif { background: var(--gold-tint); }
.komut-oge small { margin-inline-start: auto; color: var(--ink-soft); }
.ko-ikon { width: 18px; height: 18px; color: var(--ink-soft); flex: 0 0 auto; }
.komut-oge.aktif .ko-ikon { color: var(--gold-deep); }
.komut-alt { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--ink-soft); }
.komut-alt kbd { margin-inline-end: 2px; }

/* tablo sıralama */
th.siralanir { cursor: pointer; user-select: none; }
th.siralanir:hover { color: var(--ink); }
th.siralanir::after { content: ""; display: inline-block; width: 8px; margin-inline-start: 6px; opacity: 0; font-size: 9px; }
th.siralanir:hover::after { content: "\2195"; opacity: .45; }
th.siralanir[data-yon="artan"]::after { content: "\25B2"; opacity: 1; color: var(--gold-deep); }
th.siralanir[data-yon="azalan"]::after { content: "\25BC"; opacity: 1; color: var(--gold-deep); }

/* yükleniyor iskeleti ve boş durum */
.loading { color: transparent; padding: 0; text-align: start; user-select: none; }
.loading::before { display: none; }
.loading::after { content: ""; display: block; height: 220px; }
.empty::before {
  content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 16px;
  background: var(--gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d5f28' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.5 5h13L22 12v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-6z'/%3E%3C/svg%3E") center / 24px no-repeat;
}

/* telefonda alt gezinme */
.alt-gezinme { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .alt-gezinme {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 105; height: 64px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 18, 34, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .alt-gezinme button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; color: rgba(255, 255, 255, .6); font: inherit; font-size: 10.5px; cursor: pointer;
  }
  .alt-gezinme button[aria-current="page"] { color: var(--gold-soft); }
  .alt-gezinme .zil { width: auto; height: auto; border: 0; background: none; border-radius: 0; animation: none; color: rgba(255, 255, 255, .6); }
  .alt-gezinme .zil-rozet { top: 6px; right: calc(50% - 20px); box-shadow: none; }
  .ag-ikon { width: 22px; height: 22px; }
  .menu-dugmesi, .context-bar .arama-dugmesi, .context-bar .zil, .context-bar > .btn.small { display: none !important; }
  .firma-secici { flex: 1 1 100%; max-width: none; }
  .fs-vkn { display: none; }
  .selam { flex-direction: column; align-items: stretch; }
  .selam-eylem { display: none; }
  .kpi-satiri { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-n { font-size: 24px; }
  .panel-izgara { grid-template-columns: 1fr; }
  .panel-iskelet { grid-template-columns: 1fr 1fr; }
  .firma-pop { left: 8px !important; right: 8px; width: auto; }
  .komut-back { padding-top: 8vh; }
  .komut-alt { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .kpi-satiri { grid-template-columns: 1fr 1fr; }
  .panel-izgara { grid-template-columns: 1fr; }
  .context-bar > .btn.small { display: none; }
}

/* ================================================================ koyu tema */

:root[data-tema="koyu"] {
  --ink: #e9edf5;
  --ink-2: #c7cfdd;
  --ink-soft: #8d97aa;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --paper: #080d19;
  --surface: #0f1728;
  --surface-2: #0c1322;
  --gold-tint: rgba(201, 164, 92, .12);
  --gold-deep: #e6cf9c;
  --ok: #5fd39a;  --ok-bg: rgba(95, 211, 154, .12);
  --new: #ff7a70; --new-bg: rgba(255, 122, 112, .12);
  --warn: #f5b857; --warn-bg: rgba(245, 184, 87, .12);
  --info: #86b0ff; --info-bg: rgba(134, 176, 255, .12);
  --pending: #e8cf6a; --pending-bg: rgba(232, 207, 106, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
:root[data-tema="koyu"] body { background: var(--paper); }
:root[data-tema="koyu"] .context-bar { background: rgba(12, 19, 34, .82); }
:root[data-tema="koyu"] input[type="text"], :root[data-tema="koyu"] input[type="password"],
:root[data-tema="koyu"] input[type="email"], :root[data-tema="koyu"] input[type="tel"],
:root[data-tema="koyu"] input[type="date"], :root[data-tema="koyu"] input[type="search"],
:root[data-tema="koyu"] input[type="number"], :root[data-tema="koyu"] input[type="file"],
:root[data-tema="koyu"] select, :root[data-tema="koyu"] textarea { background: #0b1220; color: var(--ink); }
:root[data-tema="koyu"] input[disabled], :root[data-tema="koyu"] select[disabled] { background: #111a2c; }
:root[data-tema="koyu"] input:hover, :root[data-tema="koyu"] select:hover, :root[data-tema="koyu"] textarea:hover { border-color: rgba(255, 255, 255, .22); }
:root[data-tema="koyu"] .btn { background: #131d31; color: var(--ink); }
:root[data-tema="koyu"] .btn:hover:not(:disabled) { background: #18243b; border-color: rgba(255, 255, 255, .22); }
:root[data-tema="koyu"] .btn.primary { background: linear-gradient(180deg, #d4b16c, var(--gold)); color: var(--night); }
:root[data-tema="koyu"] tbody tr:hover { background: rgba(201, 164, 92, .06); }
:root[data-tema="koyu"] tbody tr.satir-yeni { background: rgba(255, 122, 112, .07); }
:root[data-tema="koyu"] .badge.off { background: rgba(255, 255, 255, .08); }
:root[data-tema="koyu"] .msg.error { border-color: rgba(255, 122, 112, .3); color: #ffc9c3; }
:root[data-tema="koyu"] .msg.ok { border-color: rgba(95, 211, 154, .3); color: #bdf1d6; }
:root[data-tema="koyu"] .msg.warn { border-color: rgba(245, 184, 87, .3); color: #fbe0b3; }
:root[data-tema="koyu"] .msg.info { border-color: rgba(134, 176, 255, .3); color: #cddcff; }
:root[data-tema="koyu"] .sekmeler { background: #0b1220; }
:root[data-tema="koyu"] .sekmeler button[aria-selected="true"] { background: var(--surface); }
:root[data-tema="koyu"] .iskelet, :root[data-tema="koyu"] .loading::after {
  background: linear-gradient(90deg, #0f1728 25%, #16213a 50%, #0f1728 75%) 0 0 / 200% 100%;
}
:root[data-tema="koyu"] .kurulum-kart { background: linear-gradient(180deg, rgba(201, 164, 92, .1), var(--surface) 60%); }
:root[data-tema="koyu"] .fp-rozet { background: rgba(201, 164, 92, .15); }
:root[data-tema="koyu"] .kpi:first-child { background: radial-gradient(120% 90% at 100% 0%, rgba(201, 164, 92, .3), transparent 60%), linear-gradient(160deg, #1a2744, #0b1222); }
:root[data-tema="koyu"] .empty::before { background-color: rgba(201, 164, 92, .12); }
:root[data-tema="koyu"] .modal-back { background: rgba(0, 0, 0, .6); }
:root[data-tema="koyu"] .modal footer { background: var(--surface-2); }
:root[data-tema="koyu"] .kurulum-adim li.tamam .ka-metin strong { text-decoration-color: rgba(255, 255, 255, .25); }

/* WhatsApp toplu telefon girişi */
.tt-arac { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 12px; }
.tt-arac .sekmeler { margin: 0; }
.tt-sayac { display: inline-flex; gap: 6px; margin-inline-start: auto; }
.toplu-telefon td { vertical-align: middle; padding-block: 8px; }
.tt-kisa { font-size: 11.5px; color: var(--ink-soft); }
.tt-tel { display: flex; align-items: center; gap: 10px; min-width: 300px; }
.tt-tel input { max-width: 200px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tt-tel input.tt-hatali { border-color: var(--new); box-shadow: 0 0 0 3px var(--new-bg); }
.tt-tik { display: inline-block; width: 18px; height: 18px; color: var(--ok); flex: 0 0 auto; }
.tt-tik svg { width: 100%; height: 100%; display: block; }
.tt-hata { font-size: 12px; color: var(--new); }
tr.tt-degisti { background: var(--gold-tint); }
tr.tt-degisti:hover { background: var(--gold-tint); }
tr.tt-pasif td { opacity: .6; }
.tt-yapistir { margin-bottom: 4px; border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); }
.tt-yapistir summary { cursor: pointer; font-weight: 600; color: var(--gold-deep); }
.tt-yapistir-govde { margin-top: 10px; }
.tt-yapistir textarea { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
