:root {
  --navy-950: #07162b;
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #17365e;
  --teal-600: #0f766e;
  --teal-500: #0d9488;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --amber-500: #f59e0b;
  --amber-100: #fef3c7;
  --red-600: #dc2626;
  --red-100: #fee2e2;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --bg: #f3f6fa;
  --card: #ffffff;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --success: #047857;
  --success-bg: #d1fae5;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 35px rgba(15, 23, 42, .07);
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, .05);
  --font: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14.5px;
  line-height: 1.55;
}
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 30px; }
.mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.flex-wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 9px 15px;
  background: var(--navy-900); color: #fff; font-weight: 600; font-size: 13.5px;
  transition: .16s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.16); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(135deg, var(--teal-600), var(--emerald-500)); }
.btn-soft { background: #e8f7f2; color: var(--teal-600); }
.btn-soft:hover { background: #d7f2e9; }
.btn-light { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn-light:hover { background: #f8fafc; }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--amber-500); color: #422006; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: #eef2f7; box-shadow: none; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 9px; }
.btn .ico { font-size: 15px; line-height: 1; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; color: var(--muted); transition: .15s;
}
.icon-btn:hover { color: var(--text); background: #f8fafc; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #eef2f7; color: var(--text-2);
  white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-neutral { background: #eef2f7; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--muted); }
input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="date"],
input[type="tel"], input[type="search"], select, textarea {
  width: 100%; border: 1px solid var(--border-2); border-radius: 10px; background: #fff;
  padding: 9px 12px; color: var(--text); outline: none; transition: .15s; min-height: 40px;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(13,148,136,.12); }
textarea { min-height: 90px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
select { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.checkbox input { width: 16px; height: 16px; accent-color: var(--teal-600); }

/* Landing */
.landing { background: #fff; }
.landing-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}
.landing-nav .inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy-900); font-weight: 800; letter-spacing: -.03em; }
.brand img { height: 38px; width: auto; max-width: 210px; object-fit: contain; }
.brand .brand-logo { height: 42px; }
.brand .name { font-size: 20px; line-height: 1; }
.brand .sub { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.landing-nav nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.landing-nav nav a { color: var(--text-2); font-size: 13.5px; font-weight: 600; }
.landing-nav nav a:hover { color: var(--teal-600); text-decoration: none; }
.hero {
  position: relative; overflow: hidden; background:
    radial-gradient(900px 500px at 85% -10%, rgba(16,185,129,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(37,99,235,.12), transparent 60%),
    linear-gradient(145deg, var(--navy-950), var(--navy-900) 55%, #0d2b3e);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .4; pointer-events: none;
}
.hero .inner {
  position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 70px 24px 80px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(16,185,129,.14); border: 1px solid rgba(52,211,153,.32); color: #a7f3d0;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.045em; line-height: 1.03; }
.hero h1 .accent { color: var(--emerald-400); }
.hero .lead { margin-top: 20px; font-size: 17px; line-height: 1.65; color: #cbd5e1; max-width: 610px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .btn { padding: 12px 20px; font-size: 14px; }
.hero-stats { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .num { font-size: 23px; font-weight: 800; color: #fff; }
.hero-stats .lbl { font-size: 11.5px; color: #94a3b8; }
.login-card {
  background: #fff; color: var(--text); border-radius: 22px; padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.4);
}
.login-card h2 { font-size: 23px; }
.login-card .sub { color: var(--muted); font-size: 13px; margin-top: 5px; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.demo-chip {
  border: 1px solid var(--border); background: #f8fafc; color: var(--text-2); border-radius: 8px;
  font-size: 11.5px; padding: 5px 9px; font-weight: 600; transition: .15s;
}
.demo-chip:hover { border-color: var(--teal-500); color: var(--teal-600); background: #ecfdf5; }
.section { max-width: 1180px; margin: 0 auto; padding: 76px 24px; }
.section.tight { padding-top: 50px; padding-bottom: 50px; }
.section-head { max-width: 760px; }
.section-head .kicker { color: var(--teal-600); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); margin-top: 8px; letter-spacing: -.035em; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.feature {
  border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: #fff;
  transition: .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c7e9df; }
.feature .fi {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5); color: var(--teal-600); font-size: 20px; margin-bottom: 14px;
}
.feature h3 { font-size: 16px; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.module-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 34px; }
.module-item {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg);
  border-radius: 12px; font-weight: 600; font-size: 13px; color: var(--text-2);
}
.module-item .num { color: var(--teal-600); font-weight: 800; font-size: 11px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.price-card { border: 1px solid var(--border); border-radius: 18px; padding: 26px; background: #fff; position: relative; }
.price-card.featured { border-color: var(--teal-500); box-shadow: 0 18px 45px rgba(13,148,136,.13); }
.price-card .tag { position: absolute; top: -11px; right: 20px; background: var(--teal-600); color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price-card h3 { font-size: 17px; }
.price-card .price { font-size: 34px; font-weight: 800; margin-top: 12px; letter-spacing: -.04em; }
.price-card .price small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 9px; }
.price-card li { font-size: 13px; color: var(--text-2); display: flex; gap: 8px; }
.price-card li::before { content: "✓"; color: var(--teal-600); font-weight: 800; }
.cta-band {
  background: linear-gradient(135deg, var(--navy-900), #0f3b4c); color: #fff; border-radius: 24px;
  padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 30px; letter-spacing: -.03em; }
.cta-band p { color: #cbd5e1; margin-top: 8px; }
.footer { border-top: 1px solid var(--border); padding: 30px 24px; color: var(--muted); font-size: 12.5px; }
.footer .inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Login page (standalone) */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { background: linear-gradient(150deg, var(--navy-950), #0e3d4a); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual h1 { font-size: 42px; max-width: 460px; letter-spacing: -.04em; margin-top: 40px; }
.auth-visual p { color: #cbd5e1; max-width: 430px; margin-top: 16px; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card h2 { font-size: 28px; }
.auth-card .sub { color: var(--muted); margin-top: 6px; }

/* App shell — üst menü (website tarzı) */
:root { --header-h: 82px; } /* iki satır: marka + menü şeridi */
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(90deg, var(--navy-950), var(--navy-900) 55%, #0a2333);
  color: #cbd5e1; box-shadow: 0 6px 20px rgba(7,22,43,.28);
}
.site-header-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px; min-height: 54px; flex-wrap: wrap; row-gap: 0;
}
.site-brand { order: 1; display: flex; align-items: center; background: #fff; border-radius: 11px; padding: 7px 11px; flex-shrink: 0; }
.site-brand:hover { text-decoration: none; transform: translateY(-1px); transition: .15s; }
.site-brand img { height: 28px; width: auto; max-width: 100%; object-fit: contain; }
.topnav {
  order: 3; display: flex; align-items: center; gap: 3px; flex: 1 1 100%; min-width: 0;
  padding: 2px 0 4px; border-top: 1px solid rgba(255,255,255,.07); flex-wrap: wrap; row-gap: 2px;
}
.nav-dd { position: relative; }
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px;
  border: 0; background: none; color: #b6c6d6; font-size: 12.5px; font-weight: 650;
  border-radius: 9px; cursor: pointer; white-space: nowrap; transition: .14s;
}
.nav-dd-btn .caret { font-size: 9px; opacity: .65; transition: .18s; }
.nav-dd-btn:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-dd-btn.active { background: rgba(16,185,129,.18); color: #fff; }
.nav-dd.open > .nav-dd-btn { background: rgba(255,255,255,.1); color: #fff; }
.nav-dd.open > .nav-dd-btn .caret { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 235px;
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 22px 48px rgba(7,22,43,.22); padding: 6px; display: none; z-index: 60;
}
.nav-dd-menu::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { display: block; }
.nav-dd:last-child .nav-dd-menu { left: auto; right: 0; }
.nav-dd-menu .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 2px;
  border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer;
  transition: .14s; border: 0; background: none; width: 100%; text-align: left;
}
.nav-dd-menu .nav-item:last-child { margin-bottom: 0; }
.nav-dd-menu .nav-item:hover { background: #f1f5f9; color: var(--text); text-decoration: none; }
.nav-dd-menu .nav-item.active { background: linear-gradient(90deg, rgba(16,185,129,.16), rgba(16,185,129,.05)); color: var(--teal-600); box-shadow: inset 2px 0 0 var(--emerald-500); font-weight: 650; }

/* Flyout submenus (sağa açılır) */
.nav-flyout { position: relative; }
.nav-flyout-trigger { justify-content: flex-start; }
.nav-flyout-trigger .fly-caret { margin-left: auto; font-size: 14px; opacity: .7; line-height: 1; }
.nav-flyout-menu {
  position: absolute; top: -6px; left: 100%; margin-left: 6px; min-width: 250px;
  background: #fff; border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 22px 48px rgba(7,22,43,.22); padding: 6px; display: none; z-index: 70;
}
.nav-flyout-menu::before { content: ""; position: absolute; top: 0; left: -10px; width: 10px; bottom: 0; }
.nav-flyout:hover > .nav-flyout-menu, .nav-flyout.open > .nav-flyout-menu { display: block; }
.nav-flyout-menu .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; margin-bottom: 2px;
  border-radius: 9px; color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer;
  transition: .14s; border: 0; background: none; width: 100%; text-align: left;
}
.nav-flyout-menu .nav-item:hover { background: #f1f5f9; color: var(--text); }
.nav-flyout-menu .nav-item.active { background: linear-gradient(90deg, rgba(16,185,129,.16), rgba(16,185,129,.05)); color: var(--teal-600); box-shadow: inset 2px 0 0 var(--emerald-500); font-weight: 650; }
.nav-item .ni { width: 18px; text-align: center; font-size: 15px; opacity: .9; }
.nav-item .count { margin-left: auto; background: var(--red-600); color: #fff; border-radius: 999px; font-size: 10px; padding: 1px 6px; font-weight: 700; }
.site-tools { order: 2; display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
#site-switch {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff;
  border-radius: 9px; padding: 6px 8px; min-height: 34px; font-weight: 600; font-size: 12.5px; max-width: 170px;
}
#site-switch option { color: var(--text); background: #fff; }
.site-meta { font-size: 11px; color: #7c93a8; white-space: nowrap; }
.site-user { display: flex; align-items: center; gap: 9px; }
.site-user .nm { font-size: 12.5px; font-weight: 700; color: #fff; white-space: nowrap; }
.site-user .rl { font-size: 10.5px; color: #7c93a8; white-space: nowrap; }
.su-text { line-height: 1.3; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600)); color: #fff; font-size: 13px; flex-shrink: 0;
}
.menu-toggle { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: var(--header-h); z-index: 30; background: rgba(243,246,250,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); padding: 12px 26px; display: flex; align-items: center; gap: 16px;
}
.topbar h1 { font-size: 17px; font-weight: 750; letter-spacing: -.025em; }
.topbar .crumb { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }
.topbar-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border);
  background: #fff; border-radius: 999px; font-size: 11.5px; color: var(--muted); font-weight: 600;
}
.view { padding: 24px 26px 50px; max-width: 1500px; margin: 0 auto; min-width: 0; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 25px; letter-spacing: -.035em; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Cards, stats */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { padding: 17px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 15px; letter-spacing: -.015em; }
.card-head .sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); }
.stat-card .top { display: flex; justify-content: space-between; gap: 10px; }
.stat-card .lbl { font-size: 12px; color: var(--muted); font-weight: 600; }
.stat-card .val { font-size: 27px; font-weight: 800; letter-spacing: -.04em; margin-top: 8px; }
.stat-card .val small { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-card .sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stat-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; background: #eef2f7; color: var(--text-2); }
.stat-icon.green { background: #d1fae5; color: #047857; }
.stat-icon.amber { background: #fef3c7; color: #b45309; }
.stat-icon.red { background: #fee2e2; color: #b91c1c; }
.stat-icon.blue { background: #dbeafe; color: #1d4ed8; }
.stat-icon.purple { background: #ede9fe; color: #6d28d9; }
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; }
.two-col.even { grid-template-columns: 1fr 1fr; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: grid; gap: 16px; }

.hello {
  background: linear-gradient(120deg, var(--navy-900), #0f4050 70%, #0d5c51);
  color: #fff; border-radius: var(--radius); padding: 26px; margin-bottom: 20px; position: relative; overflow: hidden;
}
.hello::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.3), transparent 65%); right: -80px; top: -100px;
}
.hello h2 { font-size: 24px; letter-spacing: -.03em; }
.hello p { color: #b9cdd8; margin-top: 7px; font-size: 13px; max-width: 660px; }
.hello .pills { display: flex; gap: 8px; margin-top: 17px; flex-wrap: wrap; }
.hello .pill { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #dbeafe; border-radius: 999px; padding: 5px 11px; font-size: 11.5px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 11px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; background: #f8fafc; border-bottom: 1px solid var(--border); white-space: nowrap;
}
td { padding: 12px 16px; border-bottom: 1px solid #eef2f7; font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfe; }
td .strong { font-weight: 650; color: var(--text); }
td .sub { font-size: 11.5px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money.neg { color: var(--danger); }
.money.pos { color: var(--success); }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions button { border: 0; background: none; color: var(--muted); padding: 5px; border-radius: 6px; font-size: 14px; }
.row-actions button:hover { background: #eef2f7; color: var(--text); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty .e-ico { font-size: 32px; opacity: .45; margin-bottom: 8px; }
.empty h4 { font-size: 14px; color: var(--text-2); margin-bottom: 4px; }
.empty p { font-size: 12.5px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pagination .pages { display: flex; gap: 5px; }
.pagination button { border: 1px solid var(--border); background: #fff; border-radius: 7px; padding: 4px 9px; color: var(--text-2); }
.pagination button.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.pagination button:disabled { opacity: .4; cursor: default; }

/* Filters */
.filters { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.filters input, .filters select { min-height: 36px; padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.filters .search { flex: 1; min-width: 190px; max-width: 340px; }
.filters .spacer { flex: 1; }

/* Charts */
.bars { display: flex; align-items: flex-end; gap: 12px; height: 190px; padding: 16px 6px 0; }
.bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-pair { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.bar { width: 42%; max-width: 24px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--emerald-400), var(--teal-600)); min-height: 2px; transition: .3s; position: relative; }
.bar.expense { background: linear-gradient(180deg, #fbbf24, #f59e0b); }
.bar-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.legend i.g { background: var(--teal-600); } .legend i.a { background: var(--amber-500); }
.progress { height: 7px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--emerald-400)); border-radius: 999px; }
.aging-row { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 10px; padding: 7px 0; font-size: 12px; }
.aging-row .bar-track { height: 7px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.aging-row .bar-track span { display: block; height: 100%; border-radius: 99px; }

/* Lists */
.mini-list { display: grid; }
.mini-item { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid #eef2f7; }
.mini-item:last-child { border-bottom: 0; }
.mini-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: #eef2f7; font-size: 14px; flex-shrink: 0; }
.mini-item .ttl { font-size: 12.5px; font-weight: 650; }
.mini-item .ds { font-size: 11px; color: var(--muted); }
.mini-item .right { margin-left: auto; text-align: right; }
.announce-card { padding: 15px 0; border-bottom: 1px solid #eef2f7; }
.announce-card:first-child { padding-top: 0; }
.announce-card:last-child { border-bottom: 0; padding-bottom: 0; }
.announce-card h4 { font-size: 13px; }
.announce-card p { font-size: 12px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.announce-card .meta { font-size: 10.5px; color: var(--muted-2); margin-top: 6px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 13px; font-size: 13px; font-weight: 600; color: var(--muted); border: 0; border-bottom: 2px solid transparent; background: none; white-space: nowrap; }
.tab.active { color: var(--teal-600); border-bottom-color: var(--teal-600); }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(7,22,43,.55); backdrop-filter: blur(3px);
  z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 18px; width: 100%; max-width: 560px; box-shadow: 0 30px 90px rgba(0,0,0,.28);
  animation: pop .18s ease; margin: auto 0;
}
.modal.lg { max-width: 820px; }
.modal.xl { max-width: 1040px; }
@keyframes pop { from { transform: translateY(10px) scale(.99); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid var(--border); }
.modal-head h3 { font-size: 18px; }
.modal-head .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--border); }
.modal-close { border: 0; background: #f1f5f9; width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 15px; }
.modal-close:hover { background: #e2e8f0; color: var(--text); }

/* Alerts / toast */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 12.5px; display: flex; gap: 9px; align-items: flex-start; }
.alert-info { background: var(--info-bg); color: #1e40af; }
.alert-warn { background: var(--warning-bg); color: #92400e; }
.alert-danger { background: var(--danger-bg); color: #991b1b; }
.alert-success { background: var(--success-bg); color: #065f46; }
.banner { margin-bottom: 18px; }
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--navy-900); color: #fff; border-radius: 10px; padding: 11px 15px; font-size: 12.5px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2); animation: slide .2s ease; max-width: 360px;
}
.toast.ok { background: #065f46; }
.toast.err { background: #991b1b; }
@keyframes slide { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Detail grids */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail { background: #f8fafc; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; }
.detail .k { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.detail .v { font-size: 13.5px; font-weight: 650; margin-top: 3px; }
.split-list { display: grid; gap: 8px; }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef2f7; font-size: 12.5px; }
.split-row:last-child { border-bottom: 0; }

/* Document cards */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-card { border: 1px solid var(--border); border-radius: 12px; padding: 15px; background: #fff; display: flex; gap: 11px; align-items: flex-start; }
.doc-ico { width: 38px; height: 38px; border-radius: 10px; background: #eef2f7; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.doc-card h4 { font-size: 12.5px; }
.doc-card .meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.doc-card .acts { margin-left: auto; display: flex; gap: 3px; }

/* Announcement */
.announce-full { border: 1px solid var(--border); border-radius: 12px; padding: 17px; background: #fff; }
.announce-full h3 { font-size: 14.5px; }
.announce-full p { font-size: 12.5px; color: var(--text-2); margin-top: 7px; white-space: pre-line; }
.announce-full .meta { font-size: 10.5px; color: var(--muted); margin-top: 9px; }

/* Platform */
.platform-badge { background: linear-gradient(135deg, #1e293b, #0f172a); color: #fff; }
.account-status { display: inline-flex; align-items: center; gap: 5px; }
.price-calc { background: #f8fafc; border: 1px dashed var(--border-2); border-radius: 12px; padding: 15px; }
.price-calc .line { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 0; }
.price-calc .total { border-top: 1px solid var(--border); margin-top: 7px; padding-top: 9px; font-weight: 800; font-size: 15px; }

/* Portal */
.portal-page { background: var(--bg); min-height: 100vh; }
.portal-header { background: var(--navy-950); color: #fff; padding: 16px 24px; display: flex; align-items: center; gap: 16px; }
.portal-header .brand { color: #fff; }
.portal-header .brand .sub { color: #7c93a8; }
.portal-header .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.portal-header .site-name { font-size: 12.5px; color: #b6c6d6; border-left: 1px solid rgba(255,255,255,.15); padding-left: 15px; }
.portal-nav { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; gap: 4px; overflow-x: auto; position: sticky; top: 0; z-index: 20; }
.portal-nav button { padding: 13px 14px; border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.portal-nav button.active { color: var(--teal-600); border-bottom-color: var(--teal-600); }
.portal-container { max-width: 1100px; margin: 0 auto; padding: 24px; }
.portal-hero {
  background: linear-gradient(130deg, var(--navy-900), #0f4050); color: #fff; border-radius: 18px;
  padding: 25px; margin-bottom: 18px; display: flex; justify-content: space-between; gap: 24px; align-items: center; flex-wrap: wrap;
}
.portal-hero h2 { font-size: 24px; }
.portal-hero p { color: #b9cdd8; font-size: 12.5px; margin-top: 5px; }
.portal-hero .amount { text-align: right; }
.portal-hero .amount .n { font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.portal-hero .amount .l { font-size: 11px; color: #b9cdd8; }
.unit-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.unit-card { border: 1px solid var(--border); border-radius: 13px; padding: 16px; background: #fff; }
.unit-card .top { display: flex; justify-content: space-between; gap: 10px; }
.unit-card h4 { font-size: 14px; }
.unit-card .debt { font-size: 22px; font-weight: 800; margin-top: 10px; letter-spacing: -.03em; }
.unit-card .debt.neg { color: var(--danger); }
.unit-card .meta { font-size: 11px; color: var(--muted); }
.portal-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.portal-tabs-content { margin-top: 18px; }
.ticket { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: #fff; display: flex; gap: 12px; align-items: flex-start; }
.ticket .body { flex: 1; }
.ticket h4 { font-size: 13px; }
.ticket p { font-size: 12px; color: var(--muted); margin-top: 3px; }
.ticket .meta { font-size: 10.5px; color: var(--muted-2); margin-top: 6px; }

/* Rapor merkezi ve rapor görünümü */
.report-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.report-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--border); border-radius: 13px; text-decoration: none; color: inherit; transition: .18s; }
.report-card:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.report-card .rc-ico { width: 38px; height: 38px; border-radius: 11px; background: #ecfdf5; color: var(--teal-600); display: grid; place-items: center; font-size: 17px; flex: 0 0 auto; }
.report-card .rc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.report-card .rc-body strong { font-size: 13px; }
.report-card .rc-body small { font-size: 11px; color: var(--muted); line-height: 1.35; }
.report-card .rc-arrow { color: var(--muted-2); font-size: 14px; }
.report-filter-card .filters { flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.report-site { display: flex; flex-direction: column; gap: 1px; margin-right: auto; min-width: 190px; }
.report-site strong { font-size: 13px; }
.report-site span { font-size: 11px; color: var(--muted); }
.report-generated { font-size: 11px; color: var(--muted); margin-left: auto; }
.report-kpis { margin-bottom: 4px; }
.report-table { min-width: 640px; }
.report-table th { white-space: nowrap; }
.report-table td { font-size: 12px; }
.report-table td.num { font-variant-numeric: tabular-nums; }
.report-table tr.report-total td { background: #f8fafc; font-weight: 800; border-top: 2px solid var(--border-2); }
.report-note { padding: 2px 0 12px; }
.report-note:last-child { padding-bottom: 0; }
.report-note-title { font-size: 12px; font-weight: 700; margin-bottom: 3px; }
.report-note p { font-size: 12.5px; color: var(--text-2); line-height: 1.65; white-space: pre-line; }
.report-signatures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; }
.report-signature { text-align: center; font-size: 11px; color: var(--muted); }
.report-signature .line { height: 44px; border-bottom: 1px solid var(--border-2); margin-bottom: 7px; }
.report-signature strong { display: block; color: var(--text); font-size: 12px; }
.report-footnote { font-size: 11.5px; color: var(--muted); border-top: 1px dashed var(--border-2); padding-top: 10px; }
@media (max-width: 1180px) { .report-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .report-hub { grid-template-columns: 1fr; } .report-signatures { grid-template-columns: 1fr; } .report-site { min-width: 100%; } .report-generated { margin-left: 0; } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .module-strip { grid-template-columns: repeat(2, 1fr); }
  .hero .inner { grid-template-columns: 1fr; gap: 38px; }
  .login-card { max-width: 520px; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .doc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  :root { --header-h: 58px; } /* menü hamburgerda: tek satır */
  .site-header-inner { flex-wrap: wrap; padding: 8px 14px; gap: 10px; min-height: 58px; }
  .menu-toggle { display: inline-flex; }
  .site-meta { display: none; }
  #site-switch { max-width: 140px; }
  .topnav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: linear-gradient(180deg, var(--navy-900), #0a2333);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 10px 14px 16px; box-shadow: 0 24px 44px rgba(0,0,0,.35);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-header.open .topnav { display: flex; }
  .nav-dd-btn { width: 100%; justify-content: space-between; padding: 11px 12px; font-size: 13.5px; }
  .nav-dd-menu {
    position: static; display: none; min-width: 0; background: transparent; border: 0;
    box-shadow: none; padding: 3px 0 3px 12px; margin-top: 3px;
  }
  .nav-dd-menu::before { display: none; }
  .nav-dd:hover .nav-dd-menu { display: none; }
  .nav-dd.open .nav-dd-menu { display: block; }
  .nav-dd:last-child .nav-dd-menu { left: 0; right: auto; }
  .nav-dd-menu .nav-item { color: #b6c6d6; }
  .nav-dd-menu .nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav-dd-menu .nav-item.active { background: rgba(16,185,129,.2); color: #fff; box-shadow: inset 2px 0 0 var(--emerald-400); }
  .nav-flyout-menu {
    position: static; display: none; min-width: 0; background: transparent; border: 0;
    box-shadow: none; padding: 2px 0 2px 14px; margin: 0;
  }
  .nav-flyout-menu::before { display: none; }
  .nav-flyout:hover > .nav-flyout-menu { display: none; }
  .nav-flyout.open > .nav-flyout-menu { display: block; }
  .nav-flyout-menu .nav-item { color: #b6c6d6; font-size: 13px; }
  .nav-flyout-menu .nav-item:hover { background: rgba(255,255,255,.07); color: #fff; }
  .nav-flyout-menu .nav-item.active { background: rgba(16,185,129,.2); color: #fff; box-shadow: inset 2px 0 0 var(--emerald-400); }
  .nav-flyout-trigger .fly-caret { transform: rotate(90deg); transition: .18s; }
  .nav-flyout.open > .nav-flyout-trigger .fly-caret { transform: rotate(270deg); }
}
@media (max-width: 980px) {
  .view { padding: 18px 16px 44px; }
  .two-col, .two-col.even { grid-template-columns: 1fr; }
  .portal-grid { grid-template-columns: 1fr; }
  .landing-nav nav .hide-sm { display: none; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
@media (max-width: 720px) {
  .su-text { display: none; }
  #change-password-btn { display: none; }
  #site-switch { max-width: 118px; padding: 6px; }
  .stats-grid, .three-col, .feature-grid, .pricing-grid, .module-strip, .doc-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero .inner { padding: 48px 18px 58px; }
  .section { padding: 50px 18px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .portal-header { padding: 13px 16px; }
  .portal-header .site-name { display: none; }
  .portal-container { padding: 16px; }
  .unit-cards { grid-template-columns: 1fr; }
  .portal-hero { padding: 20px; }
  .page-head { align-items: flex-start; }
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 15px; }
  .topbar .crumb { display: none; }
  .landing-nav .inner { padding: 12px 16px; }
  .landing-nav nav { gap: 12px; }
  .cta-band { padding: 28px; }
  .modal-backdrop { padding: 14px; }
  .modal-body { padding: 16px 17px; }
  .modal-head, .modal-foot { padding-left: 17px; padding-right: 17px; }
}

/* Mutabakat: dar ekranda dört kart taşmasın */
.stats-grid.reconcile { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.stats-grid.reconcile .stat-card .val { font-size: 22px; white-space: nowrap; }

/* ---------- Bütçe ve aidat tahmini ---------- */
.budget-table table { min-width: 760px; }
.budget-table input,
.budget-table select {
  width: 100%;
  min-width: 84px;
  padding: 7px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  color: var(--text);
}
.budget-table input[type="number"] { text-align: right; }
.budget-table td { padding-top: 8px; padding-bottom: 8px; }
#dues-result .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Enerji analizi ---------- */
.energy-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 116px;
  margin-top: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}
.energy-bar {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
  padding-bottom: 16px;
}
.energy-bar span {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  max-width: 26px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #14b8a6, #0d9488);
  min-height: 0;
}
.energy-bar em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  font-style: normal;
  font-size: 9.5px;
  color: var(--text-3, #94a3b8);
}


/* Report highlight pairs (yüzde kutucukları) */
.rpt-hl-row { display: flex; gap: 10px; margin: 8px 0 12px; flex-wrap: wrap; }
.rpt-hl { flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; text-align: center; }
.rpt-hl-val { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.rpt-hl-lbl { font-size: 12px; font-weight: 600; margin-top: 3px; opacity: .95; }
.rpt-hl-success { background: #ecfdf5; border-color: #6ee7b7; color: #047857; }
.rpt-hl-danger  { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.rpt-hl-warn    { background: #fffbeb; border-color: #fcd34d; color: #92400e; }
.rpt-hl-neutral { background: #f1f5f9; border-color: #cbd5e1; color: #334155; }

/* ---- İşletme Defteri: açık defter gibi, sol sayfa gider / sağ sayfa gelir ---- */
.rpt-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.rpt-ledger-side { min-width: 0; border: 1px solid var(--border-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.rpt-ledger-side h4 { margin: 0; padding: 8px 10px; font-size: 12px; letter-spacing: .08em; color: #fff; background: #0f766e; }
.rpt-ledger-side.gider h4 { background: #b91c1c; }
.rpt-ledger-side .table-wrap { overflow-x: auto; }
.rpt-ledger-side table { width: 100%; border-collapse: collapse; font-size: 11.5px; table-layout: fixed; }
.rpt-ledger-side th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: #f8fafc; padding: 5px 6px; border-bottom: 1px solid var(--border); }
.rpt-ledger-side th, .rpt-ledger-side td { box-sizing: border-box; }
.rpt-ledger-side td { padding: 4px 6px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.rpt-ledger-side tbody tr:last-child td { border-bottom: 0; }
.rpt-ledger-side .lg-no { width: 26px; text-align: right; color: var(--muted); }
.rpt-ledger-side .lg-date { width: 82px; white-space: nowrap; padding-right: 12px; }
.rpt-ledger-side .lg-desc { padding-left: 12px; word-break: break-word; overflow-wrap: anywhere; }
.rpt-ledger-side .lg-amt { width: 88px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rpt-ledger-side tr.lg-open td { font-weight: 700; background: rgba(15,118,110,.07); }
.rpt-ledger-side tr.lg-total td { font-weight: 800; background: #f8fafc; border-top: 2px solid var(--border-2); }
.rpt-ledger-close { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 12px; padding: 10px 14px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: #f8fafc; }
.rpt-ledger-close span { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; font-size: 11px; }
.rpt-ledger-close strong { font-size: 18px; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .rpt-ledger-side table { font-size: 9.5px; }
  .rpt-ledger-side h4 { font-size: 10px; padding: 6px 8px; }
  .rpt-ledger-side th { font-size: 8.5px; padding: 4px 3px; }
  .rpt-ledger-side td { padding: 3px 3px; }
  .rpt-ledger-side .lg-no { width: 20px; }
  .rpt-ledger-side .lg-date { width: 66px; padding-right: 7px; }
  .rpt-ledger-side .lg-desc { padding-left: 7px; }
  .rpt-ledger-side .lg-amt { width: 84px; }
  .rpt-ledger { gap: 16px; }
  .rpt-ledger-close strong { font-size: 15px; }
}
@media print {
  .rpt-ledger { break-inside: auto; }
  .rpt-ledger-close { display: none; }
}
