@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f7;
  --card: #ffffff;
  --ink: #1c2434;
  --muted: #667085;
  --line: #e6eaf0;
  --accent: #3b5bdb;
  --accent-s: #eef2ff;
  --ok: #1d7a5a;
  --ok-s: #e8f6f0;
  --warn: #b45309;
  --warn-s: #fff6eb;
  --danger: #c24141;
  --danger-s: #fff1f1;
  --info: #3b5bdb;
  --sage: #3b5bdb;
  --sage-d: #2f4ac2;
  --sage-s: #eef2ff;
  --dust: #3b5bdb;
  --dust-s: #eef2f7;
  --sand: #eef2f7;
  --terra: #c24141;
  --terra-s: #fff1f1;
  --shadow: 0 10px 28px rgba(28, 36, 52, 0.05);
  --radius: 16px;
  --sidebar: 256px;
  --top: 68px;
  --module: #3b5bdb;
  --module-ink: #2f4ac2;
  --module-bg: #eef2ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  letter-spacing: -0.015em;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; margin: 0; line-height: 1.2; }
.num { font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.ico { display: inline-block; vertical-align: -3px; flex-shrink: 0; }

.login-body { background: #f4f6fb; overflow-x: hidden; }
.login-wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}
.login-brand {
  position: relative;
  overflow: hidden;
  padding: 36px 40px 40px;
  background:
    radial-gradient(720px 480px at 22% 28%, rgba(56, 189, 248, 0.28), transparent 58%),
    radial-gradient(640px 520px at 88% 78%, rgba(99, 102, 241, 0.32), transparent 52%),
    linear-gradient(165deg, #0b3d4a 0%, #123a58 48%, #1a2c55 100%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.login-brand .muted { color: #9cb9c8; }
.login-brand .mark-badge { background: #fff; color: #123a58; }
.mark { display: flex; align-items: center; gap: 12px; }
.mark-badge {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.mark strong { display: block; font-size: 15px; }
.mark span { color: var(--muted); font-size: 12px; }

.gmc-mark-img {
  display: block;
  width: 44px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px rgba(8, 40, 140, 0.28));
}
.login-logo {
  position: relative;
  z-index: 5;
  width: min(280px, 42%);
  max-width: 280px;
  flex-shrink: 0;
}
.login-logo img {
  display: block;
  width: 83%;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 20, 80, 0.28));
}
.gmc-word {
  display: flex;
  align-items: baseline;
  letter-spacing: 0.04em;
  font-weight: 800;
  line-height: 1;
  font-size: 18px;
}
.gmc-word span { font-size: inherit; }
.gmc-word .gmc { color: #c5c9d1; }
.gmc-word .soft {
  background: linear-gradient(180deg, #7ec8ff 0%, #1a6dff 46%, #0033cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-brand .gmc-word { font-size: 22px; }
.login-brand .gmc-word .gmc { color: #d8dce3; }
.login-brand .gmc-word .soft {
  background: linear-gradient(180deg, #7ec8ff 0%, #1a6dff 46%, #0033cc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login-brand .gmc-tag {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8aa3b8;
}
.sidebar-lockup .mark-badge-logo {
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid #1e2430;
  overflow: hidden;
}
.sidebar-lockup .gmc-mark-img {
  width: 30px;
  filter: none;
}
.sidebar-lockup .gmc-word { font-size: 15px; }
.sidebar-lockup .gmc-word .gmc { color: #2b303b; }
.sidebar .sidebar-lockup > div span { color: var(--muted); letter-spacing: 0.04em; text-transform: none; font-size: 12px; }
.login-stage {
  --orbit-size: min(560px, 100%, 48vh);
  width: var(--orbit-size);
  height: var(--orbit-size);
  flex: 0 0 auto;
  position: relative;
  margin: auto;
  max-width: 100%;
}
.orbit-core {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: 128px; height: 128px;
  border-radius: 50%;
  background: #fff;
  border: 0;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(8, 24, 64, 0.35);
  display: grid;
  place-items: center;
  z-index: 4;
  overflow: hidden;
}
.orbit-core img {
  width: 78%;
  height: auto;
  display: block;
}
.ring {
  position: absolute;
  left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  pointer-events: none;
}
.ring-a { width: 75%; height: 75%; animation: spin 42s linear infinite; }
.ring-b { width: 100%; height: 100%; border-style: dashed; animation: spin 62s linear infinite reverse; }
.ring-c { width: 50%; height: 50%; animation: spin 28s linear infinite reverse; }
.sat {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
}
.bubble {
  position: absolute;
  top: 0; left: 50%;
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 24, 40, 0.28);
  display: grid; place-items: center;
  overflow: hidden;
  animation: unspin 42s linear infinite;
}
.ring-b .bubble { animation: unspin-rev 62s linear infinite; width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.ring-c .bubble { animation: unspin-rev 28s linear infinite; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.bubble svg { width: 100%; height: 100%; display: block; border-radius: 50%; overflow: hidden; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes unspin {
  from { transform: rotate(calc(var(--a) * -1)); }
  to { transform: rotate(calc(var(--a) * -1 - 360deg)); }
}
@keyframes unspin-rev {
  from { transform: rotate(calc(var(--a) * -1)); }
  to { transform: rotate(calc(var(--a) * -1 + 360deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .ring, .bubble { animation: none !important; }
}
.login-hero {
  position: relative;
  z-index: 5;
  margin-top: auto;
  flex-shrink: 0;
}
.login-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 13ch;
  margin: 0 0 12px;
  color: #fff;
}
.login-hero p { max-width: 38ch; color: #c5d7e2; line-height: 1.65; }
.login-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.pill {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: #e2eef4;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 40px 28px;
  background: #fff;
  min-width: 0;
}
.login-card {
  width: min(400px, 100%);
  background: #fff;
  padding: 8px 0;
}
.auth-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  place-items: center;
  background:
    radial-gradient(ellipse at center, rgba(40, 70, 140, .28), transparent 46%),
    rgba(4, 6, 12, .88);
  backdrop-filter: blur(26px) saturate(1.4);
}
.auth-veil.is-on { display: grid; }
.auth-stage { position: relative; text-align: center; }
.auth-glow {
  position: absolute;
  left: 50%;
  top: 92px;
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 190, 255, .55), rgba(80, 120, 255, .08) 42%, transparent 68%);
  filter: blur(6px);
  animation: auth-breathe 1.6s ease-in-out infinite;
}
.auth-orbit {
  width: 250px;
  height: 250px;
  margin: 0 auto 28px;
  position: relative;
  animation: auth-spin 1.35s cubic-bezier(.45, .05, .2, 1) forwards;
  transition: margin-bottom .8s cubic-bezier(.22, 1, .36, 1);
}
.auth-track {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(255,255,255,.95) 82%, transparent 100%);
  -webkit-mask: radial-gradient(circle, transparent 61%, #000 63% 66%, transparent 68%);
  mask: radial-gradient(circle, transparent 61%, #000 63% 66%, transparent 68%);
  opacity: .9;
  transition: opacity .45s ease;
}
.auth-key {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 74px;
  height: 74px;
  margin: -37px 0 0 -37px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #3a3d46 0%, #16181d 55%, #0c0d10 100%);
  color: #f5f5f7;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -8px 14px rgba(0,0,0,.45),
    0 10px 24px rgba(0,0,0,.35);
  transform: rotate(calc(var(--i) * 90deg)) translateY(-86px);
  transition:
    transform .85s cubic-bezier(.22, 1.05, .28, 1),
    background .45s ease .62s,
    color .45s ease .62s,
    box-shadow .45s ease .62s;
}
.auth-face {
  display: grid;
  place-items: center;
  animation: auth-spin 1.35s cubic-bezier(.45, .05, .2, 1) reverse forwards;
}
.auth-glyph {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.25));
  transform: rotate(calc(var(--i) * -90deg));
  transition: transform .85s cubic-bezier(.22, 1.05, .28, 1);
}
.auth-msg {
  margin: 0;
  min-height: 24px;
  color: rgba(255,255,255,.86);
  font-size: 20px;
  font-weight: 560;
  letter-spacing: -.03em;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.auth-veil.is-line .auth-glow { opacity: .55; animation: none; top: 92px; }
.auth-veil.is-line .auth-orbit {
  animation: none;
  margin-bottom: -58px;
}
.auth-veil.is-line .auth-track { opacity: 0; }
.auth-veil.is-line .auth-key {
  transform: translateX(calc((var(--i) - 1.5) * 92px));
}
.auth-veil.is-line .auth-face { animation: none; }
.auth-veil.is-line .auth-glyph { transform: none; }
.auth-veil.is-ok .auth-glow {
  background: radial-gradient(circle, rgba(48, 209, 88, .55), transparent 68%);
  opacity: 1;
}
.auth-veil.is-ok .auth-key {
  background: linear-gradient(160deg, #3ddc84, #148f45 60%, #0c6b32);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 8px rgba(48, 209, 88, .16), 0 12px 28px rgba(20, 143, 69, .45);
}
.auth-hello {
  margin: 8px 0 0;
  min-height: 22px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease .12s, transform .45s ease .12s;
}
.auth-hello strong {
  color: #fff;
  font-weight: 640;
  letter-spacing: -.03em;
}
.auth-veil.is-ok .auth-msg { color: #fff; }
.auth-veil.is-ok .auth-hello { opacity: 1; transform: none; }
.auth-veil.is-bad .auth-glow {
  background: radial-gradient(circle, rgba(255, 69, 58, .4), transparent 68%);
  opacity: 1;
}
.auth-veil.is-bad .auth-orbit { animation: auth-shake .55s cubic-bezier(.36, .07, .19, .97) .55s both; }
.auth-veil.is-bad .auth-key {
  background: linear-gradient(160deg, #ff6b63, #e10600 62%, #9d0600);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 0 8px rgba(255, 69, 58, .16), 0 12px 28px rgba(225, 6, 0, .4);
}
.auth-veil.is-bad .auth-msg { color: #fff; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-breathe {
  0%, 100% { transform: scale(.92); opacity: .75; }
  50% { transform: scale(1.06); opacity: 1; }
}
@keyframes auth-land {
  0% { transform: translateY(18px) scale(.72); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  16% { transform: translateX(-10px); }
  34% { transform: translateX(9px); }
  52% { transform: translateX(-6px); }
  70% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-orbit, .auth-face, .auth-glow, .auth-veil.is-bad .auth-orbit { animation: none; }
}
.login-card h2 { font-size: 24px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 700; color: #475467; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-s);
}
.alert {
  background: var(--danger-s);
  color: #9b1c1c;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
}
.demo-note {
  margin-top: 16px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 11px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2f4ac2; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-sage { background: var(--accent); color: #fff; }
.btn-soft { background: var(--accent-s); color: var(--accent); }
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }

.app { display: flex; min-height: 100vh; background: var(--bg); }
.sidebar {
  width: var(--sidebar);
  background: #fff;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar-head { padding: 20px 16px 10px; }
.nav {
  overflow: auto;
  padding: 6px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #98a2b3;
  padding: 16px 12px 8px;
  font-weight: 700;
}
.nav-label.group-mukellef360 { color: #0f766e; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 500;
  color: #475467;
  white-space: nowrap;
  background: transparent;
}
.nav a .pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: #cbd5e1; flex-shrink: 0;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active {
  background: var(--module-bg);
  color: var(--module-ink);
  font-weight: 700;
}
.nav a.active .pip { background: var(--module); }

.main { flex: 1; min-width: 0; background: var(--bg); }
.topbar {
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  height: 42px;
  max-width: 420px;
  color: var(--muted);
}
.search:focus-within { background: #fff; border-color: var(--line); }
.search input {
  border: 0; outline: 0; background: transparent; width: 100%; font-size: 14px; color: var(--ink);
}
.top-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.meta-chip, .muk-btn, .icon-btn, .profile-btn {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.muk-btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.icon-btn { width: 42px; padding: 0; justify-content: center; position: relative; }
.icon-btn .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid #fff;
}
@keyframes bell-shake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(16deg); }
  40% { transform: rotate(-14deg); }
  60% { transform: rotate(10deg); }
  80% { transform: rotate(-6deg); }
}
#notifyBtn.is-remind {
  color: #c2410c;
  background: #fff7ed;
  border-color: #fdba74;
}
#notifyBtn.is-remind .ico {
  animation: bell-shake 1s ease-in-out infinite;
  transform-origin: 50% 2px;
}
.profile-btn { padding-right: 10px; }
.avatar {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-s); color: var(--accent);
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
}
.menu-toggle { display: none; }
.content { padding: 28px 28px 96px; max-width: none; }
.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }

.grid { display: grid; gap: 16px; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-dash { grid-template-columns: 1.35fr 1fr; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pad { padding: 20px; }
.card-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--ink);
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
}
.stat.sage, .stat.dust, .stat.terra, .stat.sand { background: var(--bg); }
.stat small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.stat b { font-size: 22px; }

.kpi {
  padding: 18px 18px 16px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kpi-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-s);
  color: var(--accent);
  display: grid; place-items: center;
}
.kpi span { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi strong { font-size: 30px; line-height: 1; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }

.hero-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0 2px 6px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
}
.hero-card h1 { font-size: 30px; }
.hero-card p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  min-height: 112px;
  background: var(--bg);
}
.day.today { background: var(--accent-s); border-color: transparent; }
.day b { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.day span { font-size: 18px; }
.evt { margin-top: 8px; font-size: 11px; line-height: 1.4; color: #344054; }
.evt i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; background: var(--accent); }
.evt i.vade { background: var(--danger); }
.evt i.sgk { background: #0ea5e9; }

.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child { border-bottom: 0; }
a.list-row, a.ph-feed-row { color: inherit; text-decoration: none; cursor: pointer; }
a.list-row:hover, a.ph-feed-row:hover { background: #f4f7fa; }
.dot-type { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--accent); }
.dot-type.warn { background: var(--warn); }
.dot-type.ok { background: var(--ok); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.table-wrap { overflow: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
table.data td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:hover td { background: #f8fafc; }

.chip {
  display: inline-flex; align-items: center;
  padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--bg-soft); color: var(--muted); cursor: pointer; user-select: none;
}
.chip-ok { background: var(--ok-s); color: var(--ok); }
.chip-warn { background: var(--warn-s); color: var(--warn); }
.chip-danger { background: var(--danger-s); color: var(--danger); }
.chip-info { background: var(--accent-s); color: var(--accent); }
.chip-muted { background: var(--bg-soft); color: var(--muted); }

.overlay {
  position: fixed; inset: 0; background: rgba(28, 36, 52, .28);
  display: none; z-index: 50; align-items: flex-start; justify-content: flex-end;
}
.overlay.open { display: flex; }
.drawer {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  padding: 22px;
  box-shadow: -16px 0 40px rgba(28, 36, 52, .12);
  overflow: auto;
}
.drawer h3 { margin-bottom: 6px; }
.drawer p.muted { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px; font-size: 13px; margin: 8px 0; }
.kv span { color: var(--muted); }

.modal-layer {
  position: fixed; inset: 0; background: rgba(28, 36, 52, .28);
  display: none; place-items: center; z-index: 60; padding: 20px;
}
.modal-layer.open { display: grid; }
.modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.backdrop-nav {
  display: none;
  position: fixed; inset: 0; background: rgba(28, 36, 52, .25); z-index: 25;
}
.backdrop-nav.open { display: block; }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); font-size: 14px; line-height: 1.65; }

.timeline { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 16px; }
.timeline .item { margin-bottom: 18px; }
.timeline small { color: var(--muted); }

.muted { color: var(--muted); }
.row-actions { display: flex; gap: 6px; }
.hidden { display: none !important; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.muk-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow: auto; }
.muk-item {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px;
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  background: #fff; width: 100%; cursor: pointer; text-align: left;
}
.muk-item:hover { background: var(--bg); }
.muk-item .visit {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
}
.firm-id {
  margin-bottom: 16px;
}
.firm-id-text h1 { font-size: 28px; color: var(--ink); }
.firm-id-text p { margin: 6px 0 0; font-size: 14px; }
.info-banner,
.cred-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  margin-bottom: 16px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cred-card:hover { border-color: #c5d0ea; }
.cred-card-copy { min-width: 0; }
.cred-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.cred-card-copy > span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cred-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cred-pill {
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #8a94a6;
}
.cred-pill.on { background: #e8f6f0; color: #1d7a5a; }
.info-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  padding: 10px 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  font-weight: 700;
  flex-shrink: 0;
}
.info-meter b { font-size: 20px; }
.info-meter small { font-size: 12px; }
.info-meter.is-low {
  background: #ffe4e1;
  color: #b42318;
  border-color: #f5b7b1;
}
.info-meter.is-full {
  background: #d8f4ea;
  color: #047857;
  border-color: #9edcc6;
}
.firm-kpis { margin-bottom: 16px; }
.kpi-firm {
  text-decoration: none;
  min-height: auto;
  gap: 6px;
}
.kpi-firm small { display: block; font-size: 12px; font-weight: 700; }
.kpi-firm b { font-size: 28px; line-height: 1; color: inherit; }
.kpi-firm em { font-style: normal; font-size: 12px; opacity: .8; }
.kpi-teblig { background: #ffe4e1; color: #b42318; }
.kpi-beyan { background: #eadbff; color: #6d28d9; }
.kpi-sgk { background: #d8f4ea; color: #047857; }
.br-kpis { margin-bottom: 16px; }
.kpi-bordro-n { background: #fde2ef; color: #be185d; }
.kpi-pusula { background: #eadbff; color: #6d28d9; }
.kpi-aph { background: #dce9ff; color: #1e4ed8; }
.kpi-toplam { background: #e8edf5; color: #3f4c63; }
.br-tabs { margin-bottom: 14px; }
.br-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.br-cols {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 18px;
  border-bottom: 1px solid var(--line);
  color: #8a97ab;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.br-col-right { margin-left: auto; }
.br-expand-all {
  border: 0;
  background: none;
  color: #1d7ad9;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.br-row { border-bottom: 1px solid #eef1f6; }
.br-row.is-secili { background: #f3f7ff; }
.br-line { display: flex; align-items: stretch; }
.br-line .br-head { flex: 1; min-width: 0; }
.br-sec { display: flex; align-items: center; padding-left: 12px; }
.br-sec input { width: 16px; height: 16px; accent-color: #1d7ad9; }
.br-row:last-child { border-bottom: 0; }
.br-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.br-head:hover { background: #fafbfd; }
.br-row.is-open { background: #fcfdff; }
.br-caret {
  display: grid;
  place-items: center;
  width: 22px;
  color: #b0bac8;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.br-row.is-open .br-caret { transform: rotate(90deg); color: #1d7ad9; }
.br-ava {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.br-ava.is-sahis { background: #e7f6ef; color: #1f9d6b; }
.br-ava.is-sirket { background: #e8f1fb; color: #2b6cb0; }
.br-meta { flex: 1; min-width: 0; }
.br-meta b {
  display: block;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.br-meta small { color: var(--muted); font-size: 12px; }
.br-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 210px;
  justify-content: flex-end;
}
.br-dosya {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 12px;
  color: #7b889c;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.br-belge {
  background: #e8f4ff;
  color: #1570c2;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
  min-width: 86px;
  text-align: center;
}
.br-body { background: #f8fafc; padding: 4px 16px 10px 46px; }
.br-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #eef1f6;
}
.br-doc:last-child { border-bottom: 0; }
.br-doc div { flex: 1; }
.br-doc b { display: block; font-size: 13px; }
.br-doc small { display: block; }
.br-kind {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.br-kind-bordro { background: #e7f6ef; color: #1f9d6b; }
.br-kind-pusula { background: #eadbff; color: #6d28d9; }
.br-kind-aph { background: #dce9ff; color: #1e4ed8; }
@media (max-width: 760px) {
  .br-stats { min-width: 0; gap: 8px; }
  .br-dosya { display: none; }
  .br-belge { min-width: 0; }
}
.g-firm { grid-template-columns: 1.15fr .85fr; }
.dropzone {
  border: 1.5px dashed #d5dde8;
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  background: #f7f9fc;
  color: var(--ink);
}
.dropzone.on, .dropzone:hover { border-color: #b7c4e8; background: #eef2ff; }
.file-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.sube-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sube-chip {
  flex: 1 1 180px;
  background: #f4f7fb;
  border-radius: 12px;
  padding: 12px;
}
.sube-chip b { display: block; font-size: 13px; margin-bottom: 4px; }
.sube-chip small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.short-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.short-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  font-size: 13px; font-weight: 700;
}
.short-tile:hover { filter: brightness(0.97); }
.tile-e-Beyan { background: #eadbff; color: #6d28d9; }
.tile-e-tebligat { background: #ffe8d4; color: #c2410c; }
.tile-sgk { background: #d8f4ea; color: #047857; }
.tile-e-defter { background: #d7f3f8; color: #0e7490; }
.tile-bordro { background: #fde2ef; color: #be185d; }
.tile-faturalar { background: #dce9ff; color: #1e4ed8; }
.tile-dilekceler { background: #e8edf5; color: #3f4c63; }
.tile-odeme { background: #fef3c7; color: #b45309; }
.cred-h { font-size: 16px; margin: 0 0 4px; }
.cred-p { margin: 0 0 14px; font-size: 13px; }
.cred-actions { margin-top: 16px; }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pw-eye:hover { color: var(--ink); background: #f2f4f7; }
.pw-eye:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pw-eye .pw-eye-off { display: none; }
.pw-eye.is-open .pw-eye-on { display: none; }
.pw-eye.is-open .pw-eye-off { display: inline-flex; }
.save-ok {
  background: var(--ok-s); color: var(--ok);
  border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 13px;
  margin-bottom: 14px;
}
.comp-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.comp-dot {
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--muted);
}
.comp-dot.on { background: var(--ok-s); color: var(--ok); }
@media (max-width: 980px) {
  .g-firm { grid-template-columns: 1fr; }
  .cred-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-dash { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .2s ease, visibility .2s;
  }
  .sidebar.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .menu-toggle { display: inline-flex; }
  .search { max-width: none; }
  .meta-chip span.hide-sm { display: none; }
}
@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { min-height: auto; padding: 24px 20px 16px; }
  .login-stage { --orbit-size: min(320px, 88vw); }
  .orbit-core { width: 96px; height: 96px; }
  .bubble { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .ring-b .bubble { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .ring-c .bubble { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .ring-b { display: none; }
  .login-hero h1 { font-size: 28px; }
  .g-3, .g-2, .g-4 { grid-template-columns: 1fr; }
  .week { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 12px; }
  .content { padding: 16px 12px 40px; }
  .profile-btn span.name { display: none; }
  .search { display: none; }
  .meta-chip { display: none; }
  .meta-chip.lic-chip { display: inline-flex; }
  .hero-card { flex-direction: column; align-items: stretch; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Laptop: orbit kare kalsın, sol paneli taşırma */
@media (max-width: 1280px) and (min-width: 981px) {
  .login-brand { padding: 28px; }
  .login-logo { width: min(220px, 40%); max-width: 220px; }
  .login-stage {
    --orbit-size: min(480px, 88%, 50vh);
    margin: auto 2% auto auto;
  }
  .orbit-core { width: 116px; height: 116px; }
  .bubble { width: 54px; height: 54px; margin: -27px 0 0 -27px; }
  .ring-b .bubble { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .ring-c .bubble { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .login-hero h1 { font-size: clamp(26px, 2.6vw, 36px); }
}

@media (max-width: 980px) and (min-width: 761px) {
  .login-wrap { grid-template-columns: 1fr; min-height: auto; }
  .login-brand { min-height: auto; padding: 28px 24px 20px; }
  .login-stage { --orbit-size: min(360px, 90vw); }
  .orbit-core { width: 104px; height: 104px; }
  .ring-b { display: none; }
  .login-hero h1 { font-size: 28px; max-width: none; }
  .login-panel { padding: 28px 24px 40px; }
}

@media (max-height: 780px) and (min-width: 981px) {
  .login-brand { padding-top: 24px; padding-bottom: 24px; }
  .login-stage {
    --orbit-size: min(441px, 90%, 60vh);
    margin: auto 3% auto auto;
  }
  .orbit-core { width: 104px; height: 104px; }
  .login-pills { margin-top: 12px; }
  .login-pills .pill:nth-child(n+4) { display: none; }
}

@media (max-height: 700px) {
  .login-body { overflow-y: auto; }
  .login-wrap { min-height: auto; }
}

/* Modül renkleri — ana sayfa kartı ile sayfa teması aynı */
.theme-dashboard { --module:#3b5bdb; --module-ink:#2f4ac2; --module-bg:#eef2ff; }
.theme-firmalar { --module:#2563eb; --module-ink:#1d4ed8; --module-bg:#e8f1ff; }
.theme-mukellef360 { --module:#0d9488; --module-ink:#0f766e; --module-bg:#e6f7f4; }
.theme-e-Beyan { --module:#7c3aed; --module-ink:#6d28d9; --module-bg:#f3e8ff; }
.theme-e-tebligat { --module:#ea580c; --module-ink:#c2410c; --module-bg:#fff1e6; }
.theme-sgk { --module:#059669; --module-ink:#047857; --module-bg:#e6f7f0; }
.theme-bordro { --module:#db2777; --module-ink:#be185d; --module-bg:#fce7f3; }
.theme-e-defter { --module:#0891b2; --module-ink:#0e7490; --module-bg:#e0f7fb; }
.theme-dilekceler { --module:#4f46e5; --module-ink:#4338ca; --module-bg:#eef2ff; }
.theme-faturalar { --module:#d97706; --module-ink:#b45309; --module-bg:#fff6e5; }
.theme-raporlar { --module:#475569; --module-ink:#334155; --module-bg:#eef2f6; }
.theme-odeme { --module:#0d9488; --module-ink:#0f766e; --module-bg:#e6f7f4; }
.theme-mesai { --module:#0284c7; --module-ink:#0369a1; --module-bg:#e0f2fe; }
.theme-ayarlar, .theme-destek-taleplerim, .theme-sss, .theme-yenilikler {
  --module:#6366f1; --module-ink:#4f46e5; --module-bg:#eef2ff;
}

.theme-firmalar .btn-primary,
.theme-e-Beyan .btn-primary,
.theme-e-tebligat .btn-primary,
.theme-sgk .btn-primary,
.theme-bordro .btn-primary,
.theme-e-defter .btn-primary,
.theme-dilekceler .btn-primary,
.theme-faturalar .btn-primary,
.theme-raporlar .btn-primary,
.theme-odeme .btn-primary,
.theme-mesai .btn-primary { background: var(--module); }
.theme-firmalar .btn-soft,
.theme-e-Beyan .btn-soft,
.theme-e-tebligat .btn-soft,
.theme-sgk .btn-soft,
.theme-bordro .btn-soft,
.theme-e-defter .btn-soft,
.theme-dilekceler .btn-soft,
.theme-faturalar .btn-soft,
.theme-raporlar .btn-soft,
.theme-odeme .btn-soft,
.theme-mesai .btn-soft { background: var(--module-bg); color: var(--module-ink); }
.page-head h1 { color: var(--ink); }

.nav a.mod-firmalar .pip { background: #2563eb; }
.nav a.mod-mukellef360 .pip { background: #0d9488; }
.nav a.mod-mukellef360 .ico { color: #0f766e; }
.nav a.mod-mukellef360:hover,
.nav a.mod-mukellef360.active { background: #e6f7f4; color: #0f766e; }
.nav a.mod-e-Beyan .pip { background: #7c3aed; }
.nav a.mod-e-tebligat .pip { background: #ea580c; }
.nav a.mod-sgk .pip { background: #059669; }
.nav a.mod-bordro .pip { background: #db2777; }
.nav a.mod-e-defter .pip { background: #0891b2; }
.nav a.mod-dilekceler .pip { background: #4f46e5; }
.nav a.mod-faturalar .pip { background: #d97706; }
.nav a.mod-raporlar .pip { background: #475569; }
.nav a.mod-odeme .pip { background: #0d9488; }
.nav a.mod-mesai .pip { background: #0284c7; }
.nav a.mod-dashboard .pip { background: #3b5bdb; }
.nav a.mod-ayarlar .pip,
.nav a.mod-destek-taleplerim .pip,
.nav a.mod-sss .pip,
.nav a.mod-yenilikler .pip { background: #6366f1; }

.mod-card {
  display: block;
  padding: 18px 18px 16px;
  border: 0;
  min-height: 188px;
}
.mod-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.mod-card-head h2 { font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.mod-card-head small { display: block; font-size: 11px; opacity: .75; font-weight: 600; }
.mod-card-head .num { font-size: 30px; line-height: 1; }
.mod-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mod-pill {
  background: rgba(255,255,255,.62);
  border-radius: 12px;
  padding: 10px 10px 9px;
}
.mod-pill small { display: block; font-size: 11px; font-weight: 600; opacity: .75; margin-bottom: 4px; }
.mod-pill b { font-size: 18px; }
.mod-card.mod-firmalar { background: #dce9ff; color: #1e4ed8; }
.mod-card.mod-sgk { background: #d8f4ea; color: #047857; }
.mod-card.mod-e-tebligat { background: #ffe8d4; color: #c2410c; }
.mod-card.mod-e-Beyan { background: #eadbff; color: #6d28d9; }
.mod-card.mod-firmalar:hover,
.mod-card.mod-sgk:hover,
.mod-card.mod-e-tebligat:hover,
.mod-card.mod-e-Beyan:hover { filter: brightness(0.98); }

.theme-firmalar .card,
.theme-e-Beyan .card,
.theme-e-tebligat .card,
.theme-sgk .card,
.theme-bordro .card,
.theme-e-defter .card,
.theme-dilekceler .card,
.theme-faturalar .card,
.theme-raporlar .card,
.theme-odeme .card,
.theme-mesai .card { border-color: color-mix(in srgb, var(--module) 22%, var(--line)); }
.theme-firmalar table.data th,
.theme-e-Beyan table.data th,
.theme-e-tebligat table.data th,
.theme-sgk table.data th,
.theme-bordro table.data th,
.theme-e-defter table.data th,
.theme-dilekceler table.data th,
.theme-faturalar table.data th,
.theme-odeme table.data th,
.theme-mesai table.data th { color: var(--module-ink); }

.teblig-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4ec;
  color: #c2410c;
  font-size: 13px;
  font-weight: 700;
}
.time-spine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ts-item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 16px 18px 14px;
  cursor: pointer;
  border-right: 1px solid var(--line);
  font: inherit;
  color: inherit;
  position: relative;
}
.ts-item:last-child { border-right: 0; }
.ts-item:hover { background: #fffaf6; }
.ts-item.is-on { background: linear-gradient(180deg, #fff7f0 0%, #fff 70%); }
.ts-item.is-on::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 3px;
  background: var(--module, #ea580c);
  border-radius: 3px 3px 0 0;
}
.ts-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ts-item b {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  margin: 6px 0 2px;
}
.ts-item small { color: var(--muted); font-size: 12px; }
.ts-bar {
  display: block;
  height: 4px;
  background: #f3e7dc;
  border-radius: 99px;
  margin-top: 10px;
  overflow: hidden;
}
.ts-bar i {
  display: block;
  height: 100%;
  background: var(--module, #ea580c);
  border-radius: 99px;
}
.teblig-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}
#bordroFilters {
  flex-wrap: nowrap;
  gap: 8px;
}
#bordroFilters .teblig-search {
  flex: 0 1 180px;
  width: 180px;
  min-width: 140px;
  max-width: 180px;
  height: 36px;
  padding: 0 10px;
}
#bordroFilters .teblig-search input {
  padding: 0;
  font-size: 13px;
}
#bordroFilters select {
  flex: 0 0 auto;
  height: 36px;
  width: 168px;
  max-width: 168px;
  padding: 0 10px;
  font-size: 13px;
}
#bordroFilters #bordroSube {
  width: 200px;
  max-width: 200px;
}
#bordroFilters .btn {
  flex: 0 0 auto;
  height: 36px;
  white-space: nowrap;
}
#bordroFilters .teblig-count {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
}
#bordroFilters #bordroIslem {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.teblig-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 220px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}
.teblig-search input {
  border: 0;
  outline: 0;
  width: 100%;
  padding: 10px 0;
  background: transparent;
}
.teblig-bar select {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.seg {
  display: inline-flex;
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.seg button {
  border: 0;
  background: transparent;
  padding: 7px 11px;
  border-radius: 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.seg button.is-on {
  background: #fff;
  color: var(--module-ink, var(--ink));
  box-shadow: 0 1px 4px rgba(28, 36, 52, .08);
}
.teblig-count { margin-left: auto; font-size: 13px; }
.teblig-count b { color: var(--ink); }
table.data tr.is-unread td { background: #fffaf6; }
table.data tr.is-unread td:first-child { box-shadow: inset 3px 0 0 var(--module, #ea580c); }
.docno {
  font-size: 12px;
  background: var(--bg-soft);
  padding: 3px 7px;
  border-radius: 6px;
  font-weight: 700;
}
.teblig-empty { text-align: center; padding: 18px 0 4px; }
@media (max-width: 980px) {
  .time-spine { grid-template-columns: repeat(2, 1fr); }
  .ts-item:nth-child(1), .ts-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .ts-item:nth-child(2) { border-right: 0; }
}

/* Tüm portföy ana sayfası */
.portal-home { display: flex; flex-direction: column; gap: 16px; }
.ph-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px; align-items: center;
  padding: 4px 2px 4px;
}
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.ph-hero h1 { font-size: 30px; margin-top: 8px; }
.ph-hero p { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 46ch; }
.ph-hero p b { color: var(--ink); }
.ph-prio { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ph-prio-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px; color: var(--muted);
  transition: border-color .15s, box-shadow .15s;
}
.ph-prio-item:hover { border-color: currentColor; box-shadow: var(--shadow); }
.ph-prio-item > .ico:last-child { margin-left: auto; opacity: .5; }
.ph-prio-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-prio-text b { color: var(--ink); font-size: 15px; margin-right: 2px; }
.ph-prio-ico {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg-soft); color: var(--muted);
}
.ph-prio-item.is-danger .ph-prio-ico { background: var(--danger-s); color: var(--danger); }
.ph-prio-item.is-danger b { color: var(--danger); }
.ph-prio-item.is-warn .ph-prio-ico { background: var(--warn-s); color: var(--warn); }
.ph-prio-item.is-warn b { color: var(--warn); }
.ph-prio-item.is-info .ph-prio-ico { background: var(--accent-s); color: var(--accent); }
.ph-prio-item.is-ok .ph-prio-ico { background: var(--ok-s); color: var(--ok); }

.ph-kpis { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.ph-kpi {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px 18px;
  border-right: 1px solid var(--line);
  transition: background .15s;
}
.ph-kpi:last-child { border-right: 0; }
.ph-kpi-label::before {
  content: ''; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%; margin-right: 8px;
  background: var(--accent); vertical-align: 1px;
}
.ph-kpi:hover { background: #f8fafc; }
.ph-kpi-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.ph-kpi b { font-size: 38px; line-height: 1.05; }
.ph-kpi small { font-size: 12px; color: var(--muted); }
.ph-kpi.is-danger .ph-kpi-label::before { background: var(--danger); }
.ph-kpi.is-danger b { color: var(--danger); }
.ph-kpi.is-info b { color: var(--accent); }
.ph-kpi.is-warn .ph-kpi-label::before { background: var(--warn); }
.ph-kpi.is-warn b { color: var(--warn); }
.ph-kpi.is-ok .ph-kpi-label::before { background: var(--ok); }
.ph-kpi.is-ok b { color: var(--ok); }

.ph-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ph-col { display: grid; gap: 16px; }
.ph-title-sub { font-size: 12px; font-weight: 600; margin-left: 6px; }

.ph-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 18px; }
.ph-strip-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 4px;
  border-radius: 12px;
  background: var(--bg);
}
.ph-strip-day small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ph-strip-day b { font-size: 18px; }
.ph-load { font-size: 11px; color: var(--muted); font-weight: 600; }
.ph-strip-day.is-today { background: var(--accent); color: #fff; }
.ph-strip-day.is-today small, .ph-strip-day.is-today .ph-load { color: rgba(255, 255, 255, .85); }
.ph-strip-day.is-late:not(.is-today) { background: var(--danger-s); }
.ph-strip-day.is-late:not(.is-today) .ph-load { color: var(--danger); }

.ph-timeline { list-style: none; margin: 0; padding: 0; }
.ph-tl-day {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.ph-tl-date b { display: block; font-size: 13px; }
.ph-tl-date small { font-size: 12px; color: var(--muted); }
.ph-tl-day.is-today .ph-tl-date b { color: var(--accent); }
.ph-tl-items { display: flex; flex-direction: column; gap: 8px; }
.ph-tl-item { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.ph-tl-item > span:not(.chip) { flex: 1; min-width: 0; }
.ph-tl-item > .chip { flex-shrink: 0; }
.ph-tl-item small { display: block; font-size: 12px; }
.ph-tl-vade { padding: 8px 10px; margin: 0 -10px; border-radius: 10px; }
.ph-tl-vade:hover { background: var(--bg); }
.ph-tag { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--accent); }
.ph-tag.tag-vade { background: var(--accent); }
.ph-tag.tag-late { background: var(--danger); }
.ph-tag.tag-sgk { background: var(--ok); }
.ph-tag.tag-ofis { background: var(--muted); }
.ph-tag.tag-beyan { background: #6d28d9; }

.ph-feed .card-title { margin-bottom: 8px; }
.ph-feed-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.ph-feed-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ph-feed-row .dot-type { margin-top: 6px; flex-shrink: 0; }
.ph-feed-row span { flex: 1; }
.ph-feed-row small { white-space: nowrap; font-size: 12px; }

.ph-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-quick-tile { padding: 12px; align-items: flex-start; }
.ph-quick-tile .ico { margin-top: 1px; }
.ph-quick-tile small { display: block; font-size: 11px; font-weight: 600; opacity: .75; margin-top: 2px; }
.tile-firmalar { background: #dce9ff; color: #1e4ed8; }

.ph-firms { display: flex; flex-direction: column; }
.ph-firm {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 8px; margin: 0 -8px;
  border-radius: 12px;
}
.ph-firm + .ph-firm { border-top: 1px solid var(--line); }
.ph-firm:hover { background: var(--bg); }
.ph-firm-av {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--accent-s); color: var(--accent);
  font-weight: 800; font-size: 13px;
}
.ph-firm-main { flex: 1; min-width: 0; }
.ph-firm-main b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-firm-main small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-firm-flags { display: flex; gap: 4px; flex-shrink: 0; }

@media (max-width: 1180px) {
  .ph-hero { grid-template-columns: 1fr; gap: 16px; }
  .ph-main { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ph-hero h1 { font-size: 24px; }
  .ph-prio { grid-template-columns: 1fr; }
  .ph-kpis { grid-template-columns: repeat(2, 1fr); }
  .ph-kpi { padding: 16px; }
  .ph-kpi:nth-child(2) { border-right: 0; }
  .ph-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ph-kpi b { font-size: 30px; }
  .ph-strip { grid-template-columns: repeat(7, minmax(40px, 1fr)); overflow-x: auto; }
  .ph-tl-day { grid-template-columns: 1fr; gap: 6px; }
  .ph-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-firm-flags { flex-direction: column; align-items: flex-end; }
}

.firma-home .fh-av {
  width: 22px; height: 22px;
  border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--accent-s); color: var(--accent);
  font-size: 11px; font-weight: 800;
  margin-right: 6px;
  vertical-align: middle;
}
.firma-home .ph-eyebrow { display: inline-flex; align-items: center; }
.fh-cred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
}
.fh-cred:hover { border-color: #c5d0ea; }
.fh-cred-copy { min-width: 0; }
.fh-cred-copy strong { display: block; font-size: 15px; }
.fh-cred-copy > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.fh-todo { display: flex; flex-direction: column; }
.fh-todo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.fh-todo-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fh-todo-row:first-child { padding-top: 0; }
.fh-todo-row:not(.is-static):hover { opacity: .9; }
.fh-todo-row span { flex: 1; min-width: 0; }
.fh-todo-row b { display: block; font-size: 13px; }
.fh-todo-row small { display: block; font-size: 12px; }
.fh-todo-date {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-top: 2px;
}
.fh-todo-row .chip { flex-shrink: 0; margin-top: 1px; }
.fh-sube { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.fh-sube-chip {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.fh-sube-chip b { display: block; font-size: 13px; }
.fh-sube-chip small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fh-kv { display: grid; gap: 8px; }
.fh-kv > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.fh-kv > div:last-child { border-bottom: 0; }
.fh-kv span { color: var(--muted); }
.fh-kv b { font-weight: 700; text-align: right; }
.fh-drop { margin-top: 0; }
@media (max-width: 760px) {
  .fh-cred { flex-direction: column; align-items: flex-start; }
}

/* Firmalarım */
.firm-list .fl-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.firm-list .ph-hero p { max-width: 62ch; }
.fl-hero-actions { display: flex; gap: 8px; }

.fl-scope {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--module) 22%, var(--line));
  border-radius: 12px;
  font-size: 13px; color: var(--muted);
}
.fl-scope b { color: var(--ink); }
.fl-scope .btn { margin-left: auto; }
.fl-scope-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--module-bg); color: var(--module-ink);
}

.fl-kpis .ph-kpi {
  border: 0; border-right: 1px solid var(--line);
  background: transparent; font: inherit; color: inherit;
  text-align: left; cursor: pointer;
}
.fl-kpis .ph-kpi:last-child { border-right: 0; }
.fl-kpis .ph-kpi:focus-visible { outline: 2px solid var(--module); outline-offset: -2px; }
.fl-kpis .ph-kpi.is-on { background: color-mix(in srgb, var(--module-bg) 70%, #fff); }
.fl-kpis .ph-kpi.is-on::after {
  content: ''; position: absolute; left: 22px; right: 22px; bottom: 0;
  height: 3px; border-radius: 3px 3px 0 0; background: var(--module);
}
.fl-kpis .ph-kpi.is-info b { color: var(--module-ink); }
.fl-kpis .ph-kpi.is-info .ph-kpi-label::before { background: var(--module); }
.fl-kpis .ph-kpi.is-muted b { color: var(--muted); }
.fl-kpis .ph-kpi.is-muted .ph-kpi-label::before { background: #c3cad6; }

.fl-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-search { flex: 1 1 280px; }
.fl-search:focus-within { border-color: var(--module); box-shadow: 0 0 0 3px var(--module-bg); }
.fl-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-selects select {
  padding: 10px 30px 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; -webkit-appearance: none;
  color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer;
}
.fl-selects select:focus { outline: 0; border-color: var(--module); box-shadow: 0 0 0 3px var(--module-bg); }
.fl-view button { display: inline-flex; align-items: center; gap: 6px; }

.fl-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0 12px; font-size: 13px; min-height: 24px;
}
.fl-meta b { color: var(--ink); }
.fl-reset {
  display: inline-flex; align-items: center; gap: 5px;
  border: 0; background: transparent; padding: 4px 6px; border-radius: 8px;
  color: var(--module-ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.fl-reset:hover { background: var(--module-bg); }

.fl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fl-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  container-type: inline-size;
}
.fl-card:hover {
  border-color: color-mix(in srgb, var(--module) 35%, var(--line));
  box-shadow: 0 12px 28px rgba(28, 36, 52, .07);
  transform: translateY(-1px);
}
.fl-card.is-current { border-color: var(--module); box-shadow: 0 0 0 3px var(--module-bg); }
.fl-card.is-pasif { background: #fbfcfe; }
.fl-card.is-pasif .fl-av { filter: grayscale(1); opacity: .7; }
.fl-card-head { display: flex; align-items: flex-start; gap: 12px; }
.fl-card-head > .chip { flex-shrink: 0; }
.fl-card-name { flex: 1; min-width: 0; }
.fl-card-name b { display: block; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-card-name small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.fl-av {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 800; font-size: 15px;
  background: #e8f1ff; color: #1d4ed8;
}
.fl-av.is-sahis { background: #e6f7f0; color: #047857; }
.fl-av.sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.fl-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  margin: 0; padding: 12px;
  background: var(--bg); border-radius: 12px;
}
.fl-facts dt { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.fl-facts dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fl-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-signals .chip { cursor: default; }
.fl-clear { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ok); }
.fl-prof { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.fl-prof-bar { flex: 1; height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.fl-prof-bar i { display: block; height: 100%; border-radius: 99px; background: var(--module); }
.fl-prof b { color: var(--ink); font-size: 12px; }
.fl-card-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.fl-card-foot .btn-primary { flex: 1; }

.fl-board[data-view="cards"] .fl-table,
.fl-board[data-view="table"] .fl-grid { display: none; }
.fl-table table.data th, .fl-table table.data td { padding: 12px 10px; }
.fl-table .fl-open { padding: 7px 9px; }
.fl-counts { display: flex; gap: 4px; white-space: nowrap; }
.fl-count {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 8px; font-size: 12px;
  background: var(--bg-soft); color: var(--muted);
}
.fl-count b { font-size: 12px; }
.fl-count.is-danger { background: var(--danger-s); color: var(--danger); }
.fl-count.is-warn { background: var(--warn-s); color: var(--warn); }
.fl-count.is-info { background: var(--accent-s); color: var(--accent); }
.fl-row-name { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.fl-row-name b { display: block; font-size: 14px; }
.fl-row-name small { display: block; font-size: 12px; }
.fl-row-name:hover b { color: var(--module-ink); }
.fl-nowrap { white-space: nowrap; font-size: 13px; }
.fl-table tr.is-current td { background: color-mix(in srgb, var(--module-bg) 55%, #fff); }
.fl-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--module); }

.fl-skeleton { display: none; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.js .fl-board:not(.is-ready) .fl-skeleton { display: grid; }
.js .fl-board:not(.is-ready) .fl-results { display: none; }
.fl-skel { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.fl-skel i {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-soft) 0%, #f7f9fc 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: flShimmer 1.2s linear infinite;
}
.fl-skel i:nth-child(1) { width: 60%; height: 16px; }
.fl-skel i:nth-child(2) { height: 56px; }
.fl-skel i:nth-child(3) { width: 40%; }
@keyframes flShimmer { to { background-position: -200% 0; } }

.fl-state { text-align: center; padding: 40px 20px; }
.fl-state-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-grid; place-items: center;
  background: var(--module-bg); color: var(--module-ink);
}
.fl-state h3 { font-size: 17px; margin: 14px 0 6px; }
.fl-state p { color: var(--muted); font-size: 14px; max-width: 48ch; margin: 0 auto 16px; }
.fl-state.is-error .fl-state-ico { background: var(--danger-s); color: var(--danger); }

@media (max-width: 1180px) {
  .firm-list .fl-hero { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 980px) {
  .fl-kpis { grid-template-columns: repeat(2, 1fr); }
  .fl-kpis .ph-kpi:nth-child(2) { border-right: 0; }
  .fl-kpis .ph-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .fl-bar { flex-direction: column; align-items: stretch; }
  .fl-search { flex: 0 0 auto; min-width: 0; }
  .fl-selects { display: grid; grid-template-columns: 1fr 1fr; }
  .fl-selects select { width: 100%; }
  .fl-view { display: none; }
  .fl-board[data-view] .fl-grid { display: grid; }
  .fl-board[data-view] .fl-table { display: none; }
  .fl-grid, .fl-skeleton { grid-template-columns: 1fr; }
  .fl-scope .btn { margin-left: 0; }
  .fl-card-foot { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-card, .fl-card:hover { transition: none; transform: none; }
  .fl-skel i { animation: none; }
}

/* Dropdown */
.nav {
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 6px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-left: 34px;
  transition: max-height .25s ease, opacity .18s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
  max-height: 720px;
  opacity: 1;
}

/* Alt menüler */
.nav-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: #475467;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--ink);
}

/* Ok */
.nav-dropdown > a b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 500;
  transform: rotate(-90deg);
  transition: transform .2s ease;
}

.nav-dropdown.open > a b {
  transform: rotate(0deg);
}

/* Dijital Vergi Dairesi Buton */
.fh-cred {
  display: flex;
  align-items: center;
}

.fh-cred-main {
  flex: 1;
  min-width: 0;
}

.fh-cred-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dvv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 10px 15px;
  border: 0;
  border-radius: 12px;
  background: #eadcff;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: .2s ease;
}

.dvv-btn:hover {
  background: #e2d0ff;
  color: #5b21b6;
}

.ph-extra-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.extra-action {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: .2s ease;
}

.extra-action:hover {
  background: #e0e7ff;
  color: #4338ca;
  transform: translateY(-1px);
}

/* Hızlı Erişim */
.ph-extra-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.extra-action {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: .2s ease;
}

.extra-action-blue {
  background: #edf4ff;
  color: #2563eb;
}

.extra-action-blue:hover {
  background: #e1edff;
  color: #1d4ed8;
}

.extra-action-purple {
  background: #f0e8ff;
  color: #7c3aed;
}

.extra-action-purple:hover {
  background: #e8dcff;
  color: #6d28d9;
}

.extra-action-green {
  background: #e8f7f1;
  color: #059669;
}

.extra-action-green:hover {
  background: #d9f1e7;
  color: #047857;
}

/* =========================
   FİRMA KARTI BUTON DÜZENİ
   ========================= */

.fl-card {
  container-type: inline-size;
}

/* Firmayı aç */
.fl-card > .btn-primary {
  width: 100%;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: auto;
}

/* Alt butonlar - normalde TEK SATIR */
.fl-card-foot {
  display: flex;
  gap: 8px;
  margin-top: 0;
}

.fl-card-foot .btn {
  min-width: 0;
  white-space: nowrap;
}

.fl-card-foot .btn-primary {
  flex: 1;
}

/* SADECE kart gerçekten daralırsa */
@container (max-width: 320px) {
  .fl-card-foot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .fl-card-foot .btn-primary {
    grid-column: 1 / -1;
    width: 100%;
    flex: none;
  }

  .fl-card-foot .btn {
    width: 100%;
  }
}

.fl-card-foot .btn-primary {
  background: #E8F7F1;
  color: #059669;
  border-color: #CDEFE1;
}

.fl-card-foot .btn-primary:hover {
  background: #D9F1E7;
  color: #047857;
  border-color: #B8E6D2;
}

.ph-strip-day {
  border: 0;
  font: inherit;
  cursor: pointer;
  width: 100%;
  transition: .15s ease;
}

.ph-strip-day:hover {
  background: var(--bg-soft);
}

.ph-strip-day.is-selected:not(.is-today) {
  background: var(--module-bg);
  color: var(--module-ink);
}

.ph-strip-day.is-selected:not(.is-today) small,
.ph-strip-day.is-selected:not(.is-today) .ph-load {
  color: var(--module-ink);
}

/* DİLEKÇELER */
.dilekce-filter-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}
.dilekce-filter-box {
    min-width: 0;
    padding: 20px;
    border: 1px solid #b9c7ff;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.dilekce-filter-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.dilekce-filter-title h3 {
    margin: 0;
    font-size: 15px;
    color: var(--ink);
}
.dilekce-filter-title p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}
.dilekce-filter-title > svg {
    color: #4f46e5;
}
.dilekce-time-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 10px;
    height: 220px;
}
.dilekce-document-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.dilekce-filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: .2s ease;
}
.dilekce-filter-option:hover {
    transform: translateY(-1px);
}
.dilekce-filter-option > span:last-child {
    min-width: 0;
}
.dilekce-filter-option strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}
.dilekce-filter-option small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: var(--muted);
}
.time-option-text,
.document-option-text {
    min-width: 0;
}
.time-option-icon,
.document-option-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
}
.time-today {
    height: 100%;
    border: 1px solid #9eb3ff;
    background: #fff;
    color: #3158d8;
}
.time-today .time-option-icon {
    background: #eef3ff;
}
.time-today.active {
    border-color: #4f46e5;
    background: #fafbff;
}
.time-week {
    height: 100%;
    border: 1px solid #b9a1ef;
    background: #fff;
    color: #7040d6;
}
.time-week .time-option-icon {
    background: #f3efff;
}
.time-week.active {
    border-color: #7040d6;
    background: #fcfaff;
}
.time-month {
    height: 100%;
    border: 1px solid #8fd4b6;
    background: #fff;
    color: #16845d;
}
.time-month .time-option-icon {
    background: #ebf8f2;
}
.time-month.active {
    border-color: #16845d;
    background: #f9fdfb;
}
.time-year {
    height: 100%;
    border: 1px solid #e5b873;
    background: #fff;
    color: #c87916;
}
.time-year .time-option-icon {
    background: #fff7e9;
}
.time-year.active {
    border-color: #c87916;
    background: #fffdf9;
}
.document-blue {
    min-height: 58px;
    border: 1px solid #c5d5ff;
    background: #e9f0ff;
    color: #3158d8;
}
.document-blue .document-option-icon {
    background: #d5e0ff;
}
.document-purple {
    min-height: 58px;
    border: 1px solid #ddccff;
    background: #eee5ff;
    color: #7040d6;
}
.document-purple .document-option-icon {
    background: #dfd0ff;
}
.document-pink {
    min-height: 58px;
    border: 1px solid #ffd0df;
    background: #ffe8f1;
    color: #c53d70;
}
.document-pink .document-option-icon {
    background: #ffd8e5;
}
.document-green {
    min-height: 58px;
    border: 1px solid #c3ead7;
    background: #e2f6ed;
    color: #16845d;
}
.document-green .document-option-icon {
    background: #cceede;
}
.document-orange {
    min-height: 58px;
    border: 1px solid #ffdfb3;
    background: #fff0db;
    color: #c87916;
}
.document-orange .document-option-icon {
    background: #ffe3bd;
}
.document-red {
    min-height: 58px;
    border: 1px solid #ffd0d0;
    background: #ffe7e7;
    color: #c83b3b;
}
.document-red .document-option-icon {
    background: #ffd5d5;
}
.document-cyan {
    min-height: 58px;
    border: 1px solid #c7e7ea;
    background: #e3f5f7;
    color: #147b86;
}
.document-cyan .document-option-icon {
    background: #cdebed;
}
.document-blue.active {
    border-color: #4f46e5;
}
.document-purple.active {
    border-color: #7040d6;
}
.document-pink.active {
    border-color: #c53d70;
}
.document-green.active {
    border-color: #16845d;
}
.document-orange.active {
    border-color: #c87916;
}
.document-red.active {
    border-color: #c83b3b;
}
.document-cyan.active {
    border-color: #147b86;
}
@media (max-width: 900px) {
    .dilekce-filter-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .dilekce-time-options,
    .dilekce-document-options {
        grid-template-columns: 1fr;
    }
    .dilekce-time-options {
        height: auto;
    }
    .dilekce-time-options .dilekce-filter-option {
        height: 65px;
    }
}
/* ========== e-Defter (.ed-) ========== */
.ed {
  --ed-bg: #f5f7fb;
  --ed-surface: #ffffff;
  --ed-cyan: #0e7490;
  --ed-cyan-s: #e0f7fb;
  --ed-sage: #4d7c6f;
  --ed-sage-s: #e8f2ee;
  --ed-amber: #b45309;
  --ed-amber-s: #fff6eb;
  --ed-rose: #b54a5a;
  --ed-rose-s: #fceef0;
  --ed-mute: #9aa3b2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.theme-e-defter .content {
  background: #f5f7fb;
}

.ed-bc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.ed-bc a { color: var(--muted); font-weight: 500; }
.ed-bc a:hover { color: var(--ed-cyan); }
.ed-bc [aria-current="page"] { color: var(--ink); font-weight: 600; }
.ed-bc-sep { opacity: .45; }

.ed-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0;
}
.ed-hero-copy { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ed-hero h1 { font-size: 22px; letter-spacing: -0.03em; margin: 0; }
.ed-hero p { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.ed-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-btn-export,
.ed-btn-create {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
}
.ed-btn-export {
  background: #fff;
  color: #0f172a;
  border: 1px solid #c5d0de;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}
.ed-btn-export:hover { background: #f8fafc; border-color: #94a3b8; }
.ed-btn-create {
  background: #0e7490;
  color: #fff;
  box-shadow: 0 1px 2px rgba(14, 116, 144, .28);
}
.ed-btn-create:hover { background: #0c647c; }
.theme-e-defter .ed-btn-create { background: #0e7490; color: #fff; }
.theme-e-defter .ed-btn-create:hover { background: #0c647c; }

.ed-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ed-kpi {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--ed-surface);
  border-radius: 15px;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s;
  font: inherit;
  color: inherit;
}
.ed-kpi:hover { border-color: color-mix(in srgb, var(--ed-cyan) 28%, var(--line)); }
.ed-kpi.is-on {
  border-color: color-mix(in srgb, var(--ed-cyan) 45%, var(--line));
  background: #f3fbfd;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ed-cyan) 18%, transparent);
}
.ed-kpi-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ed-kpi-label::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ed-cyan);
  flex-shrink: 0;
}
.ed-kpi.is-sage .ed-kpi-label::before { background: var(--ed-sage); }
.ed-kpi.is-amber .ed-kpi-label::before { background: var(--ed-amber); }
.ed-kpi.is-ok .ed-kpi-label::before { background: var(--ok); }
.ed-kpi b { font-size: 30px; line-height: 1.1; letter-spacing: -0.04em; }
.ed-kpi.is-sage b { color: var(--ed-sage); }
.ed-kpi.is-amber b { color: var(--ed-amber); }
.ed-kpi.is-ok b { color: var(--ok); }
.ed-kpi.is-cyan b { color: var(--ed-cyan); }
.ed-kpi small { font-size: 12px; color: var(--muted); }

.ed-filters { background: var(--ed-surface); }
.ed-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.ed-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
}
.ed-search:focus-within { border-color: color-mix(in srgb, var(--ed-cyan) 40%, var(--line)); }
.ed-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.ed-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 118px;
}
.ed-field span {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ed-field select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0 10px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
}
.ed-field select:focus {
  border-color: color-mix(in srgb, var(--ed-cyan) 40%, var(--line));
}
.ed-advisor {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 13px;
}
.ed-advisor b { color: var(--ink); font-weight: 600; }

.ed-selbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--ed-cyan) 22%, var(--line));
  background: var(--ed-cyan-s);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ed-cyan);
}
.ed-selbar[hidden],
.ed-empty[hidden] { display: none !important; }

.ed-list-wrap {
  background: #fff;
  overflow: hidden;
}
.ed-list-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  background: #fff;
}
.ed-list-meta { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.ed-list-meta .ico { vertical-align: -2px; }
.ed-scroll {
  max-height: min(68vh, 760px);
  overflow: auto;
}
.ed-thead,
.ed-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) 96px 96px minmax(240px, 2fr) 52px;
  align-items: center;
  column-gap: 10px;
  padding: 0 14px;
}
.ed-thead {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 34px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
}
.ed-thead-months,
.ed-months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2px;
}
.ed-thead-months { text-align: center; font-size: 10px; letter-spacing: 0; text-transform: none; }
.ed-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}
.ed-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ed-cyan);
  cursor: pointer;
}

.ed-scroll.is-filtered-empty .ed-row { display: none; }

.ed-row {
  min-height: 48px;
  border-bottom: 1px solid #eef2f6;
  background: #fff;
}
.ed-row:hover { background: #f8fafc; }
.ed-firm { min-width: 0; }
.ed-firm-title {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ed-firm-title b {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ed-firm .chip { padding: 1px 6px; font-size: 10.5px; }
.ed-col {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}
.ed-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.ed-badge.is-tuzel {
  background: #e8f1f8;
  color: #3a6d8c;
}
.ed-badge.is-gercek {
  background: #eef6f0;
  color: #4d7c6f;
}
.ed-firm-meta {
  margin-top: 1px;
  font-size: 11.5px;
  color: var(--muted);
}
.ed-sep { opacity: .4; }
.ed-pill {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 7px;
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 11.5px;
}
.ed-prog-text {
  justify-self: end;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ed-sage);
}
.ed-prog-text.is-beklemede { color: var(--ed-amber); background: transparent; border: 0; }
.ed-prog-text.is-eksik { color: var(--ed-rose); background: transparent; border: 0; }

.ed-month {
  display: grid;
  place-items: center;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-width: 0;
}
.ed-month-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .02em;
}
.ed-month-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.ed-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}
.ed-dash {
  font-size: 11px;
  font-weight: 600;
  color: var(--ed-mute);
  line-height: 1;
}

.ed-month.is-tamam .ed-month-mark {
  background: #e7f3ee;
  color: var(--ed-sage);
}
.ed-month.is-beklemede .ed-month-mark {
  background: #fff4e8;
  color: var(--ed-amber);
}
.ed-month.is-eksik .ed-month-mark {
  background: #fdecee;
  color: var(--ed-rose);
}
.ed-month.is-gelecek .ed-month-mark {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #d7dce5;
}
.ed-month.is-donem_disi { pointer-events: none; }
.ed-month.is-donem_disi .ed-month-mark {
  background: transparent;
  color: #d5dbe3;
  opacity: 1;
}

.ed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.ed-leg {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
}
.ed-leg.is-tamam { background: var(--ed-sage); }
.ed-leg.is-beklemede { background: var(--ed-amber); }
.ed-leg.is-eksik { background: var(--ed-rose); }
.ed-leg.is-gelecek {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #c5ccd8;
}
.ed-leg.is-donem_disi {
  background: #e5e8ee;
  opacity: .7;
}

.ed-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}
.ed-empty-ico {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--ed-cyan-s);
  color: var(--ed-cyan);
  margin-bottom: 12px;
}
.ed-empty h3 {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 6px;
}
.ed-empty p {
  margin: 0 auto;
  max-width: 36ch;
  font-size: 14px;
}

.ed-berat {
  background: #fff;
}
.ed-berat .card-title { margin-bottom: 12px; }
.ed-berat-table { font-size: 13.5px; }
.ed-berat-table th {
  font-size: 11.5px;
  letter-spacing: .03em;
  color: var(--muted);
}

/* e-Defter: GİB senkron kartı, gerçek durumlar, dönem ayrıntısı */
.ed-sync { display: grid; gap: 6px; font-size: 13px; }
.ed-sync-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ed-sync-line .ico { flex: none; }
.ed-sync-line.is-warn { color: var(--ed-amber); }
.ed-sync-line.is-err { color: var(--ed-rose); }
.ed-sync-note { margin: 0; font-size: 12px; }
.ed-spin {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid color-mix(in srgb, var(--ed-cyan) 25%, transparent);
  border-top-color: var(--ed-cyan);
  border-radius: 50%;
  animation: ed-spin .8s linear infinite;
  vertical-align: -1px;
}
@keyframes ed-spin { to { transform: rotate(360deg); } }
.ed-kpi.is-rose b { color: var(--ed-rose); }
.ed-kpi.is-rose .ed-kpi-label::before { background: var(--ed-rose); }
.ed-kpi.is-mute b { color: var(--muted); }
.ed-kpi.is-mute .ed-kpi-label::before { background: var(--ed-mute); }
.ed-muv { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; }
.ed-muv.is-var { color: var(--ed-sage); }
.ed-muv.is-yok { color: var(--ed-mute); }
.ed-muv.is-hata { color: var(--ed-rose); cursor: help; }
.ed-muv.is-sirada { color: var(--ed-mute); cursor: help; }
.ed-liste-ilerleme { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ed-liste-ilerleme[hidden] { display: none; }
.ed-liste-ilerleme.is-warn { color: var(--ed-amber); }
.ed-liste-bar { flex: 0 0 160px; height: 6px; border-radius: 999px; background: var(--line, rgba(127, 127, 127, .2)); overflow: hidden; }
.ed-liste-bar i { display: block; height: 100%; background: var(--ed-sage); transition: width .4s ease; }
.ed-liste-ilerleme.is-live .ed-liste-bar i { background: var(--ed-cyan, var(--ed-sage)); }
.ed-liste-ilerleme.is-warn .ed-liste-bar i { background: var(--ed-amber); }
.ed-link { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ed-link.is-on { font-weight: 700; }
.ed-tercih {
  width: 100%;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 0 6px;
  font-size: 12px;
  color: var(--ink);
}
.ed-tercih:disabled { background: var(--bg-soft); color: var(--muted); }
button.ed-month { cursor: pointer; }
button.ed-month:focus-visible .ed-month-mark { outline: 2px solid var(--ed-cyan); outline-offset: 1px; }
.ed-ex { font-size: 11px; font-weight: 800; line-height: 1; }
.ed-month.is-yuklendi .ed-month-mark { background: #e7f3ee; color: var(--ed-sage); }
.ed-month.is-islemde .ed-month-mark,
.ed-month.is-bekliyor .ed-month-mark { background: transparent; color: var(--ed-amber); box-shadow: inset 0 0 0 1.5px #f1c99a; }
.ed-month.is-islemde .ed-month-mark { background: #fff4e8; }
.ed-month.is-riskli .ed-month-mark { background: #fff4e8; color: var(--ed-amber); box-shadow: inset 0 0 0 1.5px var(--ed-amber); }
.ed-month.is-gecikti .ed-month-mark { background: #fdecee; color: var(--ed-rose); }
.ed-month.is-hatali .ed-month-mark { background: transparent; color: var(--ed-rose); box-shadow: inset 0 0 0 1.5px #e7a9b3; }
.ed-month.is-sorgulanmadi .ed-month-mark { background: transparent; border: 1.5px dashed #c5ccd8; box-sizing: border-box; }
.ed-month.is-izlenmiyor .ed-month-mark { background: #f1f3f7; color: var(--ed-mute); }
.ed-month.is-kapsam_disi .ed-month-mark { background: transparent; color: #d5dbe3; }
.ed-leg.is-yuklendi { background: var(--ed-sage); }
.ed-leg.is-islemde { background: #f6d2a8; }
.ed-leg.is-bekliyor { background: transparent; box-shadow: inset 0 0 0 1.5px #f1c99a; }
.ed-leg.is-riskli { background: #fff4e8; box-shadow: inset 0 0 0 1.5px var(--ed-amber); }
.ed-leg.is-gecikti { background: var(--ed-rose); }
.ed-leg.is-hatali { background: transparent; box-shadow: inset 0 0 0 1.5px #e7a9b3; }
.ed-leg.is-sorgulanmadi { background: transparent; border: 1.5px dashed #c5ccd8; width: 10px; height: 10px; box-sizing: border-box; }
.ed-leg.is-izlenmiyor { background: #e5e8ee; }
.ed-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}
.ed-dialog::backdrop { background: rgba(15, 23, 42, .35); }
.ed-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.ed-dialog-head h3 { margin: 0; font-size: 15px; }
.ed-dialog-body { padding: 14px 16px 18px; overflow: auto; font-size: 13.5px; }
.ed-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; }
.ed-dl dt { color: var(--muted); font-weight: 600; }
.ed-dl dd { margin: 0; }
.ed-paket-table { font-size: 13px; }
.ed-paket-table tr.is-pasif td { color: var(--muted); }

@media (max-width: 1100px) {
  .ed-thead { display: none; }
  .ed-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    row-gap: 6px;
    padding: 8px 12px;
  }
  .ed-col { display: none; }
  .ed-col:has(.ed-tercih) { display: block; grid-column: 2; grid-row: 1; }
  .ed-months { grid-column: 1 / -1; }
  .ed-prog-text { grid-column: 3; grid-row: 1; }
}

@media (max-width: 720px) {
  .ed-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-hero h1 { font-size: 20px; }
  .ed-hero p { display: none; }
  .ed-filter-row { flex-direction: column; align-items: stretch; }
  .ed-field { min-width: 0; }
  .ed-search { flex: 0 0 auto; width: 100%; min-height: 42px; }
  .ed-field select,
  .ed-btn-ara { width: 100%; }
  .ed-list-head { flex-wrap: wrap; }
  .ed-list-meta { margin-left: 0; }
}

.alert-ok {
  background: #ecfdf3;
  color: #067647;
}
.fl-new-modal { width: min(860px, 100%); max-height: min(92vh, 920px); overflow: auto; }
.fl-form-title {
  margin: 16px 0 8px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #667085);
}
.fl-tax-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fl-tax {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.fl-tax span { font-size: 12px; font-weight: 700; color: #475467; }
.fl-tax select,
.fl-new-modal .field select {
  width: 100%;
  border: 1px solid var(--line);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475467' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border-radius: 12px;
  padding: 12px 36px 12px 14px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  appearance: none;
}
.fl-tax select:focus,
.fl-new-modal .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-s);
}
.fl-new-modal select.fl-duty.is-no {
  color: #b42318;
  background-color: #fef3f2;
  border-color: #fecdca;
  font-weight: 650;
}
.fl-new-modal select.fl-duty.is-yes {
  color: #067647;
  background-color: #ecfdf3;
  border-color: #abefc6;
  font-weight: 650;
}
.fl-new-modal select.fl-duty.is-no:focus { box-shadow: 0 0 0 4px #fee4e2; border-color: #f04438; }
.fl-new-modal select.fl-duty.is-yes:focus { box-shadow: 0 0 0 4px #dcfae6; border-color: #17b26a; }
.select2-container { z-index: 80; width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding-left: 14px;
  color: var(--ink);
  font-size: 14px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-s);
}
.select2-dropdown { border-color: var(--line); border-radius: 12px; overflow: hidden; }
.select2-results__option { font-size: 14px; padding: 8px 12px; }
.fl-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.fl-form-grid .fl-span-2 { grid-column: 1 / -1; }
.fl-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .fl-form-grid { grid-template-columns: 1fr; }
  .fl-form-grid .fl-span-2 { grid-column: auto; }
  .fl-tax-grid { grid-template-columns: 1fr; }
}

.theme-yonetim {
  --accent: #0f3d5e;
  --accent-s: #e7f1f8;
  --module: #0f3d5e;
  --module-ink: #0c334d;
  --module-bg: #e7f1f8;
  --sage: #0f3d5e;
  --sage-d: #0c334d;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #a32f2f; }
.btn-warn { background: var(--warn); color: #fff; }
.btn-warn:hover { background: #92400e; }
.alert-ok { background: var(--ok-s); color: var(--ok); }
.announce {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid transparent;
  font-size: 14px;
}
.announce b { font-size: 14px; }
.announce span { color: #344054; font-size: 13px; }
.announce.bilgi { background: var(--accent-s); }
.announce.uyari { background: var(--warn-s); }
.announce.kritik { background: var(--danger-s); }
.sv-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.sv-kpis .kpi { min-height: 0; }
.sv-kpis .kpi strong { font-size: 26px; }
.sv-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sv-span-2 { grid-column: 1 / -1; }
.sv-detail { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr); align-items: start; }
.sv-modal { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto; }
.sv-statline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.sv-select {
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
}
.sv-check { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin: 4px 0 12px; }
.sv-danger { border-color: #fecaca; }
.row-actions form { display: inline; }
.lic-bar { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: 8px 0 4px; }
.lic-bar span { display: block; height: 100%; background: var(--ok); width: 0; }
.lic-wrap { position: relative; }
.lic-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(300px, 78vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .12);
  padding: 14px 14px 12px;
  z-index: 40;
}
.lic-pop-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lic-pop-head strong { font-size: 14px; }
.lic-kalan { color: var(--ink); font-size: 13px; }
.lic-pop .lic-bar { height: 10px; margin: 12px 0; }
.lic-bar.lic-ok span { background: var(--ok); }
.lic-bar.lic-warn span { background: var(--warn); }
.lic-bar.lic-danger span { background: var(--danger); }
.lic-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12px; color: var(--muted); }
.lic-meta b { color: var(--ink); font-size: 13px; }
.gate-body { min-height: 100vh; margin: 0; display: grid; place-items: center; background: #0e1726; }
.gate-card { width: min(400px, calc(100% - 32px)); background: #fff; border-radius: 18px; padding: 28px 22px 22px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.gate-card > img { height: 34px; width: auto; display: block; margin: 0 auto 18px; }
.gate-card .field { margin-bottom: 12px; }
.gate-qr { display: flex; justify-content: center; margin-bottom: 8px; }
.gate-qr svg { width: 168px; height: 168px; }
.gate-key { margin: 0 0 14px; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .06em; color: var(--ink); }
.gate-wait { text-align: center; margin: 8px 0 8px; font-weight: 650; }
.gate-hint { text-align: center; margin: 0 0 16px; font-size: 13px; color: #667085; line-height: 1.4; }
.gate-back { margin-top: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); }
.sv-mix { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--bg-soft); }
.sv-mix span { display: block; height: 100%; }
.sv-mix-saglam, .sv-legend i.sv-mix-saglam { background: var(--ok); }
.sv-mix-yaklasan, .sv-legend i.sv-mix-yaklasan { background: var(--warn); }
.sv-mix-dolmus, .sv-legend i.sv-mix-dolmus { background: var(--danger); }
.sv-mix-banli, .sv-legend i.sv-mix-banli { background: #98a2b3; }
.sv-legend { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.sv-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.sv-bar-row { display: grid; grid-template-columns: 120px 1fr 28px; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.sv-bar-row .lic-bar { margin: 0; }
.sv-bar-row .lic-bar span { background: var(--accent); }
@media (max-width: 1200px) {
  .sv-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .sv-detail, .sv-statline { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sv-kpis, .sv-split { grid-template-columns: 1fr; }
  .sv-span-2 { grid-column: auto; }
  .sv-bar-row { grid-template-columns: 88px 1fr 24px; }
}

/* Canlı danışma + destek talepleri */
.ls-root {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: inherit;
}
.ls-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #6d7cff 0%, #5464f0 100%);
  box-shadow: 0 10px 28px rgba(79, 90, 220, .32), 0 0 0 1px rgba(255,255,255,.18) inset;
  animation: lsFabIn .55s cubic-bezier(.22, 1.2, .36, 1);
  transition: transform .2s ease, box-shadow .2s ease, padding .2s ease;
}
.ls-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(79, 90, 220, .4); }
.ls-fab.is-open { padding: 0 16px; }
.ls-fab-ico { display: grid; place-items: center; }
.ls-fab-txt { font-size: 13.5px; font-weight: 750; letter-spacing: .01em; }
.ls-fab-ring {
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  border: 2px solid rgba(109, 124, 255, .35);
  animation: lsRing 2.4s ease-out infinite;
  pointer-events: none;
}
.ls-fab.is-open .ls-fab-ring { animation: none; opacity: 0; }
@keyframes lsFabIn {
  from { transform: translateY(18px) scale(.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes lsRing {
  0% { transform: scale(.92); opacity: .7; }
  100% { transform: scale(1.18); opacity: 0; }
}
.ls-panel {
  width: min(380px, calc(100vw - 28px));
  height: min(560px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
  overflow: hidden;
  transform-origin: 88% 100%;
  animation: lsPanelIn .38s cubic-bezier(.22, 1.15, .36, 1);
}
.ls-panel[hidden] { display: none; }
@keyframes lsPanelIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.ls-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px 14px;
  background: linear-gradient(180deg, #f7f8ff, #fff);
  border-bottom: 1px solid var(--line);
}
.ls-head-ava {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #4f46e5;
  background: #eef2ff;
  flex-shrink: 0;
}
.ls-pulse {
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(99, 102, 241, .28);
  animation: lsRing 2s ease-out infinite;
}
.ls-head-copy { flex: 1; min-width: 0; }
.ls-head-copy strong { display: block; font-size: 14px; }
.ls-head-copy span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.ls-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .16);
  animation: lsDot 1.6s ease-in-out infinite;
}
@keyframes lsDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.16); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,.08); }
}
.ls-icon {
  width: 34px; height: 34px;
  border: 0; background: transparent;
  border-radius: 10px; cursor: pointer; color: var(--muted);
}
.ls-icon:hover { background: var(--bg-soft); color: var(--ink); }
.ls-thread {
  flex: 1;
  overflow: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background:
    radial-gradient(120px 80px at 10% 0%, rgba(99,102,241,.06), transparent),
    #fbfbfe;
}
.ls-msg {
  max-width: 86%;
  animation: lsMsg .28s ease;
}
.ls-msg p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.ls-msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; padding: 0 4px; }
.ls-msg.is-them { align-self: flex-start; }
.ls-msg.is-them p { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.ls-msg.is-me { align-self: flex-end; }
.ls-msg.is-me p { background: #4f46e5; color: #fff; border-bottom-right-radius: 6px; }
.ls-msg.is-me time { text-align: right; }
.ls-hello {
  align-self: stretch;
  background: #fff;
  border: 1px dashed #e4e8f4;
  border-radius: 16px;
  padding: 12px 13px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.ls-hello b { color: var(--ink); display: block; margin-bottom: 4px; }
@keyframes lsMsg {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.ls-typing { display: flex; gap: 4px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; width: fit-content; }
.ls-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #94a3b8;
  animation: lsType 1s ease-in-out infinite;
}
.ls-typing i:nth-child(2) { animation-delay: .15s; }
.ls-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lsType {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.ls-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px 0;
}
.ls-chips[hidden] { display: none; }
.ls-chips button {
  border: 1px solid #e4e8f4;
  background: #fff;
  color: #4338ca;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.ls-chips button:hover { background: #eef2ff; transform: translateY(-1px); }
.ls-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 8px;
  align-items: center;
}
.ls-form input {
  flex: 1;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
}
.ls-form input:focus { outline: none; border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.ls-send {
  width: 42px; height: 42px;
  border: 0; border-radius: 14px;
  background: #4f46e5; color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s;
}
.ls-send:hover { transform: scale(1.05); }
.ls-send:disabled { opacity: .5; cursor: wait; }
.ls-foot {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 650;
  color: #6366f1;
  padding: 0 12px 12px;
  text-decoration: none;
}
.ls-foot:hover { text-decoration: underline; }
.dt-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 14px;
  align-items: start;
}
.dt-list { display: flex; flex-direction: column; gap: 8px; max-height: min(70vh, 720px); overflow: auto; }
.dt-item {
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dt-item:hover, .dt-item.is-on { border-color: #c7d2fe; background: #f8f9ff; }
.dt-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.dt-thread-wrap { min-height: 420px; }
.dt-thread { display: flex; flex-direction: column; gap: 10px; max-height: min(68vh, 680px); overflow: auto; }
@media (max-width: 860px) {
  .dt-layout { grid-template-columns: 1fr; }
  .ls-root { right: 14px; bottom: 14px; }
  .ls-fab-txt { display: none; }
  .ls-fab { width: 52px; padding: 0; justify-content: center; }
}

/* e-Beyan modülü */
.eb-head .eb-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:650;color:#6d28d9;margin-bottom:6px}
.eb-live-dot{width:7px;height:7px;border-radius:50%;background:#7c3aed;box-shadow:0 0 0 4px rgba(124,58,237,.15);animation:ebPulse 2s ease infinite}
@keyframes ebPulse{0%,100%{opacity:1}50%{opacity:.45}}
.eb-overview{display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin-bottom:16px;border:1px solid #e8e0f5;border-radius:18px;background:linear-gradient(115deg,#fff 0%,#f9f5ff 100%);overflow:hidden;box-shadow:0 8px 28px rgba(109,40,217,.05)}
.eb-overview-compact .eb-stats{display:none}
.eb-overview-main{display:flex;align-items:center;gap:16px;padding:22px 24px;flex-wrap:wrap}
.eb-hero-icon{display:grid;place-items:center;flex:0 0 52px;height:52px;border-radius:16px;background:#f3e8ff;color:#7c3aed}
.eb-overview-copy{display:grid;gap:4px;min-width:0;flex:1}
.eb-overview-label{color:#728091;font-size:12px;font-weight:650}
.eb-overview-copy strong{font-size:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.eb-overview-copy small,.eb-sync-meta small{color:#778394;font-size:12px}
.eb-sync-meta{margin-left:auto;display:grid;justify-items:end;gap:8px;text-align:right}
.eb-sync-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:99px;background:#f3e8ff;color:#6d28d9;font-size:11px;font-weight:700}
a.eb-muk{color:#1e293b;font-weight:650;text-decoration:none}
a.eb-muk:hover{color:#6d28d9;text-decoration:underline}
a.eb-muk:focus-visible{outline:2px solid #c4b5fd;outline-offset:2px;border-radius:4px}
.eb-sync-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}
.eb-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;border-top:1px solid #ece6f8}
.eb-stat{padding:14px 18px;border-right:1px solid #ece6f8;display:grid;gap:4px}
.eb-stat:last-child{border-right:0}
.eb-stat span{font-size:11px;color:#778394;font-weight:650}
.eb-stat strong{font-size:20px;color:#1e293b}
.eb-stat.is-warn strong{color:#b45309}
.eb-stat.is-ok strong{color:#13795b}
.eb-stat.is-danger strong{color:#b91c1c}
.eb-filters{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin-bottom:16px}
.eb-filter-field{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:200px}
.eb-filter-field select,.eb-filter-field input{padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;font:inherit;color:inherit}
.eb-date-grid{display:flex;flex-wrap:wrap;gap:12px 14px;align-items:flex-end;width:100%}
.eb-date-grid .eb-filter-field{min-width:180px;flex:1 1 180px}
.eb-date-actions{display:flex;gap:8px;align-items:center;padding-bottom:1px}
.eb-date-summary{margin:-4px 0 14px;color:#64748b;font-size:13px}
.eb-checklist{list-style:none;padding:0;margin:12px 0;display:grid;gap:8px}
.eb-checklist li{padding-left:22px;position:relative;font-size:13px}
.eb-checklist li::before{content:'';position:absolute;left:0;top:6px;width:10px;height:10px;border-radius:50%}
.eb-checklist li.ok::before{background:#22c55e}
.eb-checklist li.warn::before{background:#f59e0b}
.eb-checklist li.muted::before{background:#cbd5e1}
.chip.is-active{background:#7c3aed;color:#fff;border-color:#7c3aed}
.nav-dropdown-menu a.active{font-weight:700;color:#6d28d9;margin-top: 5px;}
.theme-dilekceler .nav-dropdown-menu a.active,
.theme-dilekceler .nav-dropdown-menu a.active:hover{
  background:var(--module-bg);
  color:var(--module-ink);
  font-weight:700;
  border-radius:11px;
}
.list-row.is-unread{background:#faf5ff}
@media (max-width:900px){
  .eb-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eb-stat:nth-child(2n){border-right:0}
  .eb-stats .eb-stat:last-child:nth-child(odd){grid-column:1 / -1}
}

/* e-Beyan tek sıra filtre ve mükellef bildirimi */
.eb-bar.eb-bar-matris { flex-wrap: wrap; overflow: visible; }
.eb-bar.eb-bar-matris .eb-bar-chips {
  flex: 1 1 auto;
  min-width: min(520px, 100%);
  flex-wrap: wrap;
  height: auto;
}
.eb-bar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  padding: 5px 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}
.eb-bar-firma,
.eb-bar-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.eb-bar-firma > span,
.eb-bar-date > span {
  font-size: 11px;
  line-height: 12px;
  font-weight: 700;
  color: #667085;
}
.eb-bar-firma {
  flex: 0 0 200px;
  width: 200px;
  min-width: 200px;
  max-width: 200px;
}
.eb-bar-firma select {
  width: 100%;
  height: 40px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 13px;
  color: #1c2434;
  background: #fff;
  outline: none;
}
.eb-bar .select2-container {
  width: 200px !important;
  z-index: 20;
}
.eb-bar .select2-container--open {
  z-index: 4000 !important;
}
.eb-bar .select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  display: flex;
  align-items: center;
  background: #fff;
}
.eb-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 12px;
  padding-right: 28px;
  color: #1c2434;
  font-size: 13px;
}
.eb-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
  right: 6px;
}
.eb-bar .select2-container--default.select2-container--focus .select2-selection--single,
.eb-bar .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.eb-bar .select2-dropdown {
  z-index: 4000;
  border-color: #e6e8ec;
  border-radius: 10px;
  overflow: hidden;
}
.eb-bar .select2-results__option {
  font-size: 13px;
  padding: 7px 12px;
}
.eb-bar-chips {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f8;
  border-radius: 12px;
  padding: 3px;
  flex: 0 0 auto;
  margin-bottom: 1px;
}
.eb-bar-chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.eb-bar-chip:hover { color: #6d28d9; }
.eb-bar-chip.is-active {
  background: #fff;
  color: #6d28d9;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.eb-bar-chip:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}
.eb-bar-date {
  display: grid;
  grid-template-columns: 112px 112px;
  column-gap: 6px;
  row-gap: 2px;
  flex: 0 0 auto;
  min-width: max-content;
}
.eb-bar-date > span { grid-column: 1 / -1; }
.eb-bar-date input {
  width: 112px;
  height: 40px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 13px;
  color: #1c2434;
  background: #fff;
  outline: none;
}
.eb-bar-date input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.eb-bar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex: 0 0 auto;
  height: 40px;
}
.eb-bar-actions .btn {
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}
.eb-bar .btn-primary {
  background: #6d28d9;
  color: #fff;
}
.eb-bar .btn-primary:hover { background: #7c3aed; }
.eb-bar-ay { grid-template-columns: 140px; }
.eb-bar-ay select,
.eb-bar-eksik select {
  width: 140px;
  height: 40px;
  border: 1px solid #e6e8ec;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 650;
  color: #1c2434;
  background: #fff;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23667085' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 28px;
  cursor: pointer;
}
.eb-bar-ay select:focus,
.eb-bar-eksik select:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.eb-bar-eksik { grid-template-columns: minmax(200px, 280px); }
.eb-bar.eb-bar-matris .eb-bar-chips {
  align-self: flex-end;
  margin-bottom: 0;
}
.eb-bar.eb-bar-matris .eb-bar-chip {
  text-decoration: none;
}
a.eb-stat { text-decoration: none; color: inherit; }
a.eb-stat:hover { background: #faf8ff; }
a.eb-stat.is-active { background: #f5f3ff; box-shadow: inset 0 -2px 0 #7c3aed; }
a.eb-stat.is-active strong { color: #6d28d9; }
.eb-matris-card { overflow: hidden; }
.eb-matris-card .table-wrap { overflow-x: auto; }
.eb-matris { width: 100%; border-collapse: separate; border-spacing: 0; }
.eb-matris thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #475467;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px 8px;
  border-bottom: 1px solid #eaecf0;
  white-space: nowrap;
}
.eb-matris thead th:nth-child(n+3),
.eb-matris td.eb-m-cell {
  width: 132px;
  min-width: 132px;
  max-width: 132px;
}
.eb-matris thead th:first-child,
.eb-matris td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 240px;
  background: #fff;
  box-shadow: 1px 0 0 #eaecf0;
}
.eb-matris thead th:first-child { z-index: 4; background: #f8fafc; }
.eb-matris tbody tr:hover td:first-child { background: #faf8ff; }
.eb-bar-eksik select { width: 280px; }
.eb-matris thead th:first-child { text-align: left; padding-left: 16px; }
.eb-matris tbody td {
  padding: 10px 8px;
  border-bottom: 1px solid #f2f4f7;
  vertical-align: middle;
}
.eb-matris tbody tr:last-child td { border-bottom: 0; }
.eb-matris tbody tr:hover { background: #faf8ff; }
.eb-matris td:first-child { padding-left: 16px; }
.eb-m-firma { display: grid; gap: 2px; min-width: 180px; }
.eb-m-firma small { color: #98a2b3; font-size: 12px; font-weight: 600; }
.eb-m-donem { font-weight: 750; color: #344054; white-space: nowrap; text-align: center; font-variant-numeric: tabular-nums; }
.eb-m-cell { text-align: center; }
.eb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-width: 112px;
  height: 26px;
  padding: 0 8px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
  font-style: normal;
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1;
}
button.eb-pill {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.eb-pill.is-ok { background: #ecfdf3; color: #067647; border-color: #abefc6; }
.eb-pill.is-wait { background: #fffaeb; color: #b54708; border-color: #fedf89; }
.eb-pill.is-err { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.eb-pill.is-draft { background: #f4f3ff; color: #5925dc; border-color: #d9d6fe; }
.eb-pill.is-no { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.eb-pill.is-pending { background: #eff8ff; color: #175cd3; border-color: #b2ddff; }
.eb-pill.is-muaf {
  background: #f8fafc;
  color: #98a2b3;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  border-color: #e4e7ec;
  border-style: dashed;
}
.eb-pill.is-na {
  background: #f2f4f7;
  color: #667085;
  border-color: #d0d5dd;
  border-style: dashed;
  font-size: 11px;
}
.eb-pill.is-pdf {
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.eb-pill.is-pdf:hover,
.eb-pill.is-pdf:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .12);
  filter: brightness(0.98);
  outline: none;
}
.eb-pill.is-pdf.is-ok:hover { box-shadow: 0 4px 12px rgba(6, 118, 71, .18); }
.eb-pill.is-pdf.is-wait:hover { box-shadow: 0 4px 12px rgba(181, 71, 8, .16); }
.eb-pill.is-pdf.is-err:hover { box-shadow: 0 4px 12px rgba(180, 35, 24, .16); }
.eb-matris-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #eaecf0;
  background: linear-gradient(180deg, #fcfcfd 0%, #f8fafc 100%);
}
.eb-matris-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.eb-matris-legend .eb-pill {
  width: auto;
  min-width: 0;
  height: 22px;
  font-size: 11px;
  pointer-events: none;
}
.eb-matris-legend-pdf {
  margin-left: auto;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}
.eb-matris-card .table-wrap {
  max-height: min(70vh, 820px);
  overflow: auto;
}

.ebn-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ebn-filters {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f4f6f8;
  border-radius: 12px;
  padding: 3px;
}
.ebn-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.ebn-filter b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.ebn-filter.is-on {
  background: #fff;
  color: #6d28d9;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}
.ebn-filter.is-on b { background: #f3e8ff; color: #6d28d9; }
.ebn-bulk {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 14px;
}
.ebn-sec-say {
  font-size: 13px;
  font-weight: 700;
  color: #344054;
}
.ebn-bulk-kanal,
.ebn-taslak {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.ebn-taslak { margin: 0 0 12px; }
.ebn-bulk-note {
  margin: 0 0 10px;
  font-size: 13px;
  color: #475467;
}
.ebn-bulk-note.is-bad { color: #b45309; }
.ebn-note.is-bad { color: #b45309; }
.ebn-search {
  flex: 1 1 auto;
  max-width: 420px;
  min-width: 0;
}
.ebn-search input {
  width: 100%;
  height: 40px;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px;
  color: #1c2434;
  background: #fff;
  outline: none;
}
.ebn-search input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.ebn-count {
  margin: 0;
  font-size: 13px;
  color: #667085;
  white-space: nowrap;
}
.ebn-count b {
  color: #1c2434;
  font-weight: 800;
}
.ebn-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ebn-firm {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.ebn-firm:hover,
.ebn-firm.is-open { border-color: #c4b5fd; }
.ebn-firm-top {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-left: 12px;
}
.ebn-firm-top .ebn-firm-btn { flex: 1; padding-left: 6px; }
.ebn-check {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.ebn-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #6d28d9;
  cursor: pointer;
}
.ebn-firm-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ebn-firm-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: -2px;
}
.ebn-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #f3e8ff;
  color: #6d28d9;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}
.ebn-firm-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ebn-firm-copy b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ebn-firm-copy small {
  font-size: 12px;
  line-height: 1.3;
  color: #667085;
}
.ebn-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ebn-pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.ebn-pill.is-wait { background: #fff6eb; color: #b45309; }
.ebn-pill.is-ok { background: #e8f6f0; color: #13795b; }
.ebn-chev {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #98a2b3;
  transition: transform .18s ease;
}
.ebn-state:not(.is-no):not(.is-yes) { background: #eef2f6; color: #667085; }
.ebn-firm.is-open .ebn-chev {
  transform: rotate(180deg);
  color: #6d28d9;
}
.ebn-firm:not(.is-open) .ebn-panel { display: none; }
.ebn-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #e6e8ec;
  padding: 4px 12px 12px;
}
.ebn-panel[hidden] { display: none; }
.ebn-doc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
}
.ebn-doc.is-busy {
  opacity: .6;
  pointer-events: none;
}
.ebn-doc-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.ebn-doc-main b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}
.ebn-doc-main span {
  font-size: 12px;
  color: #667085;
  line-height: 1.3;
}
.ebn-doc-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.ebn-state {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.ebn-state.is-no { background: #fff6eb; color: #b45309; }
.ebn-state.is-yes { background: #e8f6f0; color: #13795b; }
.ebn-kanallar {
  font-size: 11px;
  line-height: 1.3;
  color: #667085;
  font-weight: 600;
}
.ebn .btn-primary {
  background: #6d28d9;
  color: #fff;
}
.ebn .btn-primary:hover { background: #7c3aed; }
.ebn-bildir {
  height: 32px;
  border-radius: 9px;
  font-weight: 700;
}
.ebn-menu { display: none; }
.ebn-menu.is-open {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 0 100%;
  justify-content: flex-end;
}
.ebn-kanal,
.ebn-toplu {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #e6e8ec;
  border-radius: 9px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ebn-kanal:hover,
.ebn-toplu:hover { border-color: #c4b5fd; color: #6d28d9; }
.ebn-toplu:disabled,
.ebn-toplu:disabled:hover {
  opacity: .45;
  cursor: default;
}
.ebn-kanal[data-kanal="whatsapp"],
.ebn-toplu[data-kanal="whatsapp"] {
  background: #128C7E;
  border-color: #128C7E;
  color: #fff;
}
.ebn-kanal[data-kanal="whatsapp"]:hover,
.ebn-toplu[data-kanal="whatsapp"]:hover {
  background: #0e6f63;
  border-color: #0e6f63;
  color: #fff;
}
.ebn-kanal.is-all,
.ebn-toplu.is-all {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #fff;
}
.ebn-kanal.is-all:hover,
.ebn-toplu.is-all:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #fff;
}
.ebn-kanal:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}
.ebn-note {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #667085;
}
.ebn-empty {
  margin: 0;
  padding: 28px;
  text-align: center;
  color: #667085;
  font-size: 13px;
}
@media (max-width: 760px) {
  .ebn-doc {
    flex-direction: column;
    align-items: stretch;
  }
  .ebn-doc-side,
  .ebn-menu.is-open { justify-content: flex-start; }
  .ebn-search { max-width: none; }
}
@media (max-width: 720px) {
  .eb-bar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
  }
  .eb-bar-firma,
  .eb-bar-chips,
  .eb-bar-date,
  .eb-bar-actions {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
    margin-left: 0;
    height: auto;
  }
  .eb-bar-firma { flex-basis: auto; }
  .eb-bar-date { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .eb-bar-date input { width: 100%; }
  .eb-bar-ay, .eb-bar-eksik { grid-template-columns: minmax(0, 1fr); }
  .eb-bar-ay select, .eb-bar-eksik select { width: 100%; }
  .eb-bar-chips { overflow-x: auto; }
  .eb-bar-actions .btn { flex: 1; }
}

.altos-modal { width: min(440px, 100%); }
.altos-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.altos-modal h3 { margin: 0 0 8px; font-size: 22px; }
.altos-firma {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.altos-track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}
.altos-track span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  transition: width .35s ease;
}
.altos-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.altos-meta b { color: var(--ink); }
.altos-not { margin: 12px 0 0; font-size: 13px; line-height: 1.45; }
.altos-kapat { margin-top: 16px; }

@property --et-p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@keyframes etSyncRise {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes etSyncDockIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes etSyncShimmer {
  from { transform: translateX(-130%); }
  to { transform: translateX(280%); }
}

.et-sync-layer {
  position: fixed;
  inset: 0;
  z-index: 1190;
  display: none;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 31, 43, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.et-sync-layer.is-open {
  display: flex;
  pointer-events: auto;
}

.et-sync-card {
  --et-ring: #dc5b14;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 22px;
  overflow: auto;
  background: #fff;
  color: #1f2d3a;
  border: 1px solid #e8edf2;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(12, 27, 43, .22);
  animation: etSyncRise 280ms ease;
}
.et-sync-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
  color: #dc5b14;
}
.et-sync-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #1f2d3a;
}
.et-sync-firma {
  margin: 4px 0 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: #778394;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@property --et-p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.et-sync-ring {
  --et-p: 0;
  position: relative;
  width: 72px;
  height: 72px;
  margin: 16px auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #1f2d3a;
  transition: --et-p 400ms ease;
}
.et-sync-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(closest-side, #fff 78%, transparent 79%),
    conic-gradient(from -90deg, var(--et-ring, #dc5b14) calc(var(--et-p) * 1turn), #e6edf2 0);
}

.et-sync-track {
  height: 8px;
  border-radius: 99px;
  background: #e7eef3;
  overflow: hidden;
}
.et-sync-fill {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--et-ring, #dc5b14);
  overflow: hidden;
  transition: width .45s ease;
}
.et-sync-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
  animation: etSyncShimmer 1.8s ease-in-out infinite;
}
.et-sync-card .et-sync-meta,
.et-sync-dock .et-sync-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  margin: 8px 0 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #778394;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
.et-sync-card .et-sync-meta b,
.et-sync-card .et-sync-meta strong,
.et-sync-dock .et-sync-meta b,
.et-sync-dock .et-sync-meta strong {
  color: #1f2d3a;
  font-weight: 700;
}
.et-sync-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.et-sync-dock {
  --et-ring: #dc5b14;
  position: fixed;
  z-index: 1200;
  left: 0;
  right: 0;
  bottom: 18px;
  display: none;
  width: min(520px, calc(100% - 36px));
  height: 64px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  background: #fff;
  color: #1f2d3a;
  font: inherit;
  text-align: left;
  appearance: none;
  box-shadow: 0 12px 32px rgba(20, 31, 43, .14);
  pointer-events: none;
  cursor: pointer;
}
.et-sync-dock.is-on {
  display: flex;
  pointer-events: auto;
  animation: etSyncDockIn 240ms ease;
}
.et-sync-dock.is-on:hover {
  border-color: #f0d2c2;
  box-shadow: 0 16px 36px rgba(20, 31, 43, .16);
}
.et-sync-dock.is-on:focus-visible {
  outline: 2px solid #dc5b14;
  outline-offset: 3px;
}
.et-sync-dock .et-sync-firma {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #1f2d3a;
}
.et-sync-dock .et-sync-track {
  flex: 1 1 42%;
  height: 6px;
  min-width: 72px;
}
.et-sync-dock .et-sync-meta {
  flex: none;
  margin: 0;
}
.et-sync-dock > b,
.et-sync-dock > strong {
  flex: none;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #1f2d3a;
}

.et-sync-card.is-done,
.et-sync-dock.is-done {
  --et-ring: #13795b;
}
.et-sync-card.is-done {
  border-color: #cfe8df;
  box-shadow: 0 24px 70px rgba(19, 121, 91, .16);
}
.et-sync-card.is-done .et-sync-kicker,
.et-sync-dock.is-done .et-sync-kicker,
.et-sync-card.is-done .et-sync-meta b,
.et-sync-card.is-done .et-sync-meta strong,
.et-sync-dock.is-done .et-sync-meta,
.et-sync-dock.is-done .et-sync-meta b,
.et-sync-dock.is-done > b,
.et-sync-dock.is-done > strong {
  color: #13795b;
}
.et-sync-dock.is-done {
  border-color: #cfe8df;
  box-shadow: 0 12px 32px rgba(19, 121, 91, .16);
}
.et-sync-card.is-done .et-sync-fill::after,
.et-sync-card.is-error .et-sync-fill::after,
.et-sync-dock.is-done .et-sync-fill::after {
  animation: none;
  opacity: 0;
}
.et-sync-card.is-error {
  border-color: #f3d0cc;
}
.et-sync-card.is-error > p:not(.et-sync-kicker):not(.et-sync-firma),
.et-sync-card.is-error .et-message {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 650px) {
  .et-sync-layer { padding: 10px; }
  .et-sync-card {
    width: min(440px, calc(100% - 8px));
    padding: 18px;
  }
  .et-sync-dock,
  .et-sync-dock.is-on {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .et-sync-card,
  .et-sync-dock.is-on {
    animation-duration: 0.01ms;
  }
  .et-sync-ring,
  .et-sync-fill {
    transition-duration: 0.01ms;
  }
  .et-sync-fill::after { animation: none; }
}

/* ===== e-Belge mükellefiyetleri (anasayfa + ebelge-mukellefler) ===== */
.eb-efatura { --eb: #3b5bdb; --eb-s: #eef2ff; }
.eb-gibearsiv { --eb: #d97706; --eb-s: #fff6e5; }
.eb-eirsaliye { --eb: #0e8576; --eb-s: #e6f6f3; }
.eb-esmm { --eb: #7c3aed; --eb-s: #f3edff; }
.eb-emustahsil { --eb: #4d7c0f; --eb-s: #f0f7e4; }

.ph-ebelge-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 10px; }
.ph-ebelge-head h2 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.ph-ebelge-head small { font-size: 12px; }
.ph-ebelge-head .btn svg { vertical-align: -2px; }
.ph-ebelge-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ph-eb-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: var(--ink); text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.ph-eb-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--eb); }
.ph-eb-card:hover { transform: translateY(-2px); border-color: var(--eb); box-shadow: 0 14px 30px rgba(28, 36, 52, 0.09); }
.ph-eb-card:focus-visible { outline: 2px solid var(--eb); outline-offset: 2px; }
.ph-eb-top { display: flex; align-items: center; gap: 10px; }
.ph-eb-top > svg:last-child { margin-left: auto; color: var(--muted); transition: transform .15s; }
.ph-eb-card:hover .ph-eb-top > svg:last-child { transform: translateX(3px); color: var(--eb); }
.ph-eb-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--eb-s); color: var(--eb); flex: none; }
.ph-eb-name { font-size: 14px; font-weight: 700; }
.ph-eb-num b { font-size: 34px; line-height: 1; color: var(--eb); }
.ph-eb-num small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ph-eb-bar { display: block; height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.ph-eb-bar i { display: block; height: 100%; border-radius: inherit; background: var(--eb); transition: width .4s; }
.ph-eb-sub { font-size: 12px; color: var(--muted); }

.eb-head-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eb-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.eb-guncelle.is-busy svg { animation: eb-nabiz 1s ease-in-out infinite; }
@keyframes eb-nabiz { 50% { opacity: .35; } }
.eb-progress { height: 4px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin: -10px 0 16px; }
.eb-progress[hidden] { display: none; }
.eb-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s; }
.eb-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.eb-tab {
  --eb: var(--ink); --eb-s: var(--bg-soft);
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.eb-efatura.eb-tab { --eb: #3b5bdb; --eb-s: #eef2ff; }
.eb-gibearsiv.eb-tab { --eb: #d97706; --eb-s: #fff6e5; }
.eb-eirsaliye.eb-tab { --eb: #0e8576; --eb-s: #e6f6f3; }
.eb-esmm.eb-tab { --eb: #7c3aed; --eb-s: #f3edff; }
.eb-emustahsil.eb-tab { --eb: #4d7c0f; --eb-s: #f0f7e4; }
.eb-tab:hover { border-color: var(--eb); }
.eb-tab.is-active { border-color: var(--eb); background: var(--eb-s); box-shadow: inset 0 0 0 1px var(--eb); }
.eb-tab-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--eb-s); color: var(--eb); flex: none; }
.eb-tab.is-active .eb-tab-ico { background: var(--eb); color: #fff; }
.eb-tab-text { display: flex; flex-direction: column; min-width: 0; }
.eb-tab-text > b { font-size: 14px; }
.eb-tab-text small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eb-tab-text small b { color: var(--eb); }

.eb-summary { display: flex; align-items: center; gap: 20px; padding: 18px 20px; margin-bottom: 16px; flex-wrap: wrap; }
.eb-ring {
  --p: 0;
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  display: grid; place-content: center; text-align: center;
  background: radial-gradient(closest-side, var(--card) 76%, transparent 77% 100%), conic-gradient(var(--eb) calc(var(--p) * 1%), var(--bg-soft) 0);
}
.eb-ring b { font-size: 20px; line-height: 1; color: var(--eb); }
.eb-ring small { font-size: 11px; color: var(--muted); font-weight: 600; }
.eb-summary-copy { display: flex; flex-direction: column; gap: 3px; min-width: 200px; flex: 1; }
.eb-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--eb); }
.eb-summary-copy strong { font-size: 18px; color: var(--ink); }
.eb-source { font-size: 13px; text-decoration: none; }
.eb-source:hover { color: var(--eb); text-decoration: underline; }
.eb-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.eb-filter {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 13px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s;
}
.eb-filter span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.eb-filter:hover { border-color: var(--eb); }
.eb-filter.is-active { background: var(--eb); border-color: var(--eb); color: #fff; }
.eb-filter.is-active span { color: rgba(255, 255, 255, .85); }

.eb-list { padding: 0; overflow: hidden; }
.eb-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.eb-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; min-width: 260px; flex: 0 1 360px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted);
}
.eb-search:focus-within { border-color: var(--accent); background: var(--card); }
.eb-search input { border: 0; outline: 0; background: transparent; width: 100%; font: inherit; font-size: 14px; color: var(--ink); }
.eb-table td { padding-top: 11px; padding-bottom: 11px; }
.eb-table th.eb-c, .eb-table td.eb-c { text-align: center; width: 110px; }
.eb-firm { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 220px; }
.eb-firm > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.eb-firm b { font-size: 14px; }
.eb-firm small { font-size: 12px; }
.eb-firm:hover b { color: var(--accent); }
.eb-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bg-soft); color: var(--ink); font-weight: 800; font-size: 13px; flex: none; }
.eb-dot {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  vertical-align: middle; font-style: normal;
}
.eb-dot.is-kayitli { background: var(--ok); color: #fff; }
.eb-dot.is-kayitsiz { background: var(--bg-soft); color: var(--muted); }
.eb-dot.is-bekleyen { background: transparent; border: 2px dashed #cbd2dc; }
.eb-dot.is-hata { background: var(--danger-s); color: var(--danger); font-weight: 800; font-size: 12px; }
.eb-live { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.is-live > .eb-live { display: inline-block; animation: eb-nabiz 1.2s ease-in-out infinite; }
.is-live > svg { display: none; }
.ph-eb-durum { display: inline-flex; align-items: center; gap: 6px; }
.eb-err { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--danger); }
.eb-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 44px 16px; color: var(--muted); text-align: center; }
.eb-empty b { color: var(--ink); }
.eb-empty[hidden] { display: none; }
.eb-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.eb-legend span { display: inline-flex; align-items: center; gap: 6px; }
.eb-legend .eb-dot { width: 18px; height: 18px; }

@media (max-width: 1180px) {
  .ph-ebelge-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eb-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ph-ebelge-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ph-eb-card { padding: 14px; }
  .ph-eb-num b { font-size: 28px; }
  .eb-tabs { grid-template-columns: 1fr 1fr; }
  .eb-search { min-width: 0; flex: 1 1 100%; }
  .eb-summary { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .ph-eb-card, .ph-eb-bar i, .ph-eb-top > svg:last-child, .eb-progress i { transition: none; }
  .eb-guncelle.is-busy svg, .is-live > .eb-live { animation: none; }
  .ph-eb-card:hover { transform: none; }
}

/* e-Belge: sorgu kimliği etiketi, genel bakış özeti */
.eb-kimlik { white-space: nowrap; }
.eb-kimlik .num { margin-right: 8px; }
.eb-kimlik-tur {
  display: inline-block; padding: 2px 7px; border-radius: 6px; vertical-align: 1px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
}
.eb-kimlik-tur.is-tckn { background: var(--sage-s); color: var(--accent); }
.eb-kimlik-tur.is-vkn { background: var(--bg-soft); color: var(--muted); }
.eb-genel { --eb: var(--ink); --eb-s: var(--bg-soft); }
.eb-genel .eb-summary-copy { min-width: 260px; }
.eb-not { display: flex; align-items: flex-start; gap: 6px; margin-top: 4px; font-size: 12px; line-height: 1.45; max-width: 640px; }
.eb-not svg { flex: none; margin-top: 2px; }
