@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;
}
.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 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;
}
.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 56px; 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; }
.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: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-beyanname { 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; }
.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; }
  .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-e-beyanname { --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-uzmana-sor, .theme-oneriler, .theme-sss, .theme-yenilikler {
  --module:#6366f1; --module-ink:#4f46e5; --module-bg:#eef2ff;
}

.theme-firmalar .btn-primary,
.theme-e-beyanname .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-beyanname .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-e-beyanname .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-uzmana-sor .pip,
.nav a.mod-oneriler .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-beyanname { background: #eadbff; color: #6d28d9; }
.mod-card.mod-firmalar:hover,
.mod-card.mod-sgk:hover,
.mod-card.mod-e-tebligat:hover,
.mod-card.mod-e-beyanname:hover { filter: brightness(0.98); }

.theme-firmalar .card,
.theme-e-beyanname .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-beyanname 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;
}
.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;
}
.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; }
}
