/* ============================================================
   BizimCari — Ortak Stil Kütüphanesi  (shared.css)
   Her HTML sayfasında <link rel="stylesheet" href="shared.css">
   ============================================================ */

@import url('css/yerel-fontlar.css?v=1.5.15');

/* ─── Tokens ─── */
:root {
  --primary: #1a56db;
  --primary-dark: #1044b8;
  --primary-light: #e8f0fe;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark2: #1e293b;
  --mid: #475569;
  --light: #94a3b8;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gradient: linear-gradient(135deg,#1a56db 0%,#0f3fa8 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07);
  --shadow:    0 4px 20px rgba(26,86,219,.12);
  --shadow-lg: 0 20px 60px rgba(26,86,219,.18);
  --radius: 14px; --radius-lg: 24px;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html { scroll-behavior: smooth; max-width: 100%; overflow-x: clip; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--white); color: var(--dark); line-height: 1.6; max-width: 100%; overflow-x: clip; position: relative; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ─── Navbar ─── */
#nav-placeholder { position: sticky; top: 0; z-index: 1000; min-height: 64px; }
.license-expiry-strip { display:flex;align-items:center;justify-content:center;gap:18px;padding:7px 2%;min-height:34px;box-sizing:border-box;background:var(--bg);color:var(--dark);border-bottom:1px solid var(--border);font-size:.78rem;line-height:1.45; }
.license-expiry-text { display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;min-width:0; }
.license-expiry-strip strong { color:#a16207; }
.license-expiry-strip.urgent strong { color:var(--danger); }
.license-expiry-strip a { flex-shrink:0;color:var(--primary);font-weight:700;text-decoration:underline;text-underline-offset:3px;border-radius:4px; }
.license-expiry-strip a:hover { color:var(--primary-dark);background:var(--primary-light); }
.license-expiry-strip a:focus-visible { outline:2px solid var(--primary);outline-offset:3px; }
[data-theme="dark"] .license-expiry-strip strong { color:#fbbf24; }
[data-theme="dark"] .license-expiry-strip.urgent strong { color:var(--danger); }
@media(max-width:600px) { .license-expiry-strip { gap:10px;padding:6px 12px;font-size:.73rem; } .license-expiry-text { justify-content:flex-start;gap:2px 8px; } }

.hp-nav{
  background:rgba(255,255,255,.95);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--border);
  padding:0 5%;height:68px;
  display:flex;align-items:center;justify-content:space-between;
  transition:box-shadow .3s;
}
.hp-nav.scrolled{box-shadow:0 4px 30px rgba(0,0,0,.08)}
.nav-logo{display:flex;align-items:center;gap:10px;font-family:'Syne',sans-serif;font-size:1.4rem;font-weight:800}
.nav-logo .logo-icon{width:36px;height:36px;border-radius:9px;background:var(--gradient);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.1rem}
.nav-logo span{background:var(--gradient);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.nav-links{display:flex;align-items:center;gap:4px;list-style:none}
.nav-links a{padding:8px 13px;border-radius:8px;font-size:.85rem;font-weight:600;color:var(--dark2);transition:background-color .2s ease, color .2s ease}
.nav-links a:hover,.nav-links a.active{background:var(--primary-light);color:var(--primary)}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn-ghost{padding:8px 18px;border-radius:9px;font-size:.85rem;font-weight:700;color:var(--primary);border:2px solid var(--primary);transition:all .2s;cursor:pointer;background:transparent}
.btn-ghost:hover{background:var(--primary);color:#fff}
.btn-primary{padding:9px 22px;border-radius:9px;font-size:.85rem;font-weight:700;background:var(--gradient);color:#fff;border:none;cursor:pointer;transition:all .2s;box-shadow:0 4px 14px rgba(26,86,219,.35)}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 6px 20px rgba(26,86,219,.45)}
.hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:6px}
.hamburger span{width:22px;height:2px;background:var(--dark);border-radius:2px;transition:all .3s}

/* ─── Footer ─── */
.hp-footer{background:var(--dark);color:rgba(255,255,255,.6);padding:60px 5% 28px}
.hp-footer .footer-grid{max-width:1280px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:44px;margin-bottom:44px}
.hp-footer .f-logo{display:flex;align-items:center;gap:10px;font-family:'Syne',sans-serif;font-size:1.3rem;font-weight:800;color:#fff;margin-bottom:14px}
.hp-footer p.f-desc{font-size:.82rem;line-height:1.8;margin-bottom:18px}
.hp-footer .contact-item{display:flex;align-items:flex-start;gap:9px;font-size:.78rem;margin-bottom:9px}
.hp-footer .contact-item a{color:rgba(255,255,255,.6);transition:color .2s}
.hp-footer .contact-item a:hover{color:#fff}
.hp-footer h4{font-size:.78rem;font-weight:700;color:#fff;margin-bottom:14px;text-transform:uppercase;letter-spacing:.06em}
.hp-footer ul{list-style:none;display:flex;flex-direction:column;gap:8px}
.hp-footer ul li a{font-size:.8rem;color:rgba(255,255,255,.5);transition:color .2s}
.hp-footer ul li a:hover{color:#fff}
.footer-bottom{max-width:1280px;margin:0 auto;border-top:1px solid rgba(255,255,255,.08);padding-top:22px;display:flex;align-items:center;justify-content:space-between;font-size:.75rem;flex-wrap:wrap;gap:12px}
.footer-bottom p{color:rgba(255,255,255,.35)}
.social-links{display:flex;gap:8px}
.social-links a{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:.85rem;color:rgba(255,255,255,.5);transition:all .2s}
.social-links a:hover{background:var(--primary);color:#fff;border-color:var(--primary)}

/* ─── Reusable components ─── */
.section-label{display:inline-flex;align-items:center;gap:6px;background:var(--primary-light);color:var(--primary);border-radius:100px;padding:5px 14px;font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px}
.section-header{text-align:center;margin-bottom:56px}
.section-header h2{font-family:'Syne',sans-serif;font-size:clamp(1.6rem,3vw,2.4rem);font-weight:800;color:var(--dark);margin-bottom:12px}
.section-header p{font-size:1rem;color:var(--mid);max-width:580px;margin:0 auto}
.page-hero{padding:80px 5% 60px;background:linear-gradient(165deg,#f0f5ff 0%,#fafcff 60%,#fff8ee 100%);text-align:center}
.page-hero h1{font-family:'Syne',sans-serif;font-size:clamp(1.8rem,4vw,3rem);font-weight:800;margin-bottom:16px}
.page-hero p{font-size:1.05rem;color:var(--mid);max-width:600px;margin:0 auto 28px}
.btn-xl{padding:14px 32px;border-radius:12px;font-size:.95rem;font-weight:700;background:var(--gradient);color:#fff;border:none;cursor:pointer;transition:all .25s;box-shadow:0 6px 20px rgba(26,86,219,.4);display:inline-flex;align-items:center;gap:8px}
.btn-xl:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(26,86,219,.5)}
.btn-outline-xl{padding:14px 28px;border-radius:12px;font-size:.95rem;font-weight:700;color:var(--dark2);border:2px solid var(--border);background:#fff;display:inline-flex;align-items:center;gap:8px;transition:all .2s;cursor:pointer}
.btn-outline-xl:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px 28px;transition:all .3s}
.card:hover{box-shadow:var(--shadow-lg);transform:translateY(-4px)}
.fade-up{opacity:0;transform:translateY(28px);transition:opacity .7s,transform .7s}
.fade-up.visible{opacity:1;transform:translateY(0)}
.badge{display:inline-block;padding:3px 10px;border-radius:100px;font-size:.72rem;font-weight:700}
.badge-success{background:#d1fae5;color:#065f46}
.badge-warning{background:#fef3c7;color:#92400e}
.badge-info{background:var(--primary-light);color:var(--primary)}
.badge-gray{background:#f1f5f9;color:var(--mid)}
.badge-danger{background:#fee2e2;color:#991b1b}

/* ─── Form elements ─── */
.form-group{margin-bottom:18px}
.form-group label{display:block;font-size:.82rem;font-weight:700;color:var(--dark2);margin-bottom:7px}
.form-group input,.form-group select,.form-group textarea{
  width:100%;padding:11px 14px;border-radius:10px;
  border:2px solid var(--border);font-family:inherit;font-size:.88rem;color:var(--dark);
  background:#fff;outline:none;transition:border .2s,box-shadow .2s;
}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(26,86,219,.1)}
.form-group .error-msg{font-size:.75rem;color:var(--danger);margin-top:5px;display:none}
.form-group.has-error input,.form-group.has-error select{border-color:var(--danger)}
.form-group.has-error .error-msg{display:block}
.alert{padding:13px 16px;border-radius:10px;font-size:.85rem;font-weight:600;margin-bottom:16px;display:none}
.alert.show{display:flex;align-items:center;gap:8px}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.alert-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}

/* ─── Responsive ─── */
/* ─── Admin & Settings UI ─── */
.settings-tabs { display:flex; gap:4px; border-bottom:2px solid var(--border); margin-bottom:28px; }
.stab { padding:12px 20px; font-size:.85rem; font-weight:700; color:var(--mid); cursor:pointer; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.stab.active { color:var(--primary); border-bottom-color:var(--primary); }
.stab:hover:not(.active) { color:var(--dark2); }

.settings-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px 32px; margin-bottom:20px; }
.settings-card h3 { font-size:1rem; font-weight:800; color:var(--dark); margin-bottom:6px; }
.settings-card .card-desc { font-size:.82rem; color:var(--mid); margin-bottom:22px; }

/* Toggle Switch */
.toggle-switch { width:46px; height:24px; background:var(--border); border-radius:100px; position:relative; cursor:pointer; transition:all .3s ease; flex-shrink:0; }
.toggle-switch::after { content:''; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition:all .3s cubic-bezier(0.68, -0.55, 0.265, 1.55); box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.toggle-switch.on { background:var(--success); }
.toggle-switch.on::after { transform:translateX(22px); }

/* Grid Layouts */
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:20px; }

@media(max-width:900px){
  .nav-links{display:none}
  .hamburger{display:flex}
  .hp-footer .footer-grid{grid-template-columns:1fr 1fr}
  .grid-2, .grid-3 { grid-template-columns:1fr; }
  .mobile-only-action { display: block !important; }
}

@media(max-width:600px){
  .hp-footer .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
  .btn-ghost { padding: 6px 14px; font-size: 0.8rem; }
  .btn-primary { padding: 7px 16px; font-size: 0.8rem; }
}

@media(max-width:450px){
  .desktop-only-btn { display: none !important; }
}

.mobile-only-action { display: none; }

/* ─── Mobile Overrides (New) ─── */
@media(max-width:800px) {
  .badge-firma { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media(max-width:500px) {
  .badge-firma { display: none; }
  .user-name-text { display: none !important; }
  .stat-grid { grid-template-columns: 1fr !important; }
  .hp-nav.premium { padding: 12px 10px; }
  .p-dropdown { position: fixed !important; top: 68px !important; right: 10px !important; left: 10px !important; width: auto !important; }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
}
.table-responsive .data-table {
  min-width: 800px; /* Tablo çok daralırsa yatay kaydırma tetiklenir */
}
@media(max-width:600px){
  .hp-footer .footer-grid{grid-template-columns:1fr}
  .footer-bottom{flex-direction:column;text-align:center}
}
/* ─── Spotlight Search (Ctrl+K) ─── */
.spotlight-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
  opacity: 0; pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.spotlight-overlay.open {
  opacity: 1; pointer-events: all;
}
.spotlight-modal {
  width: 90%; max-width: 650px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transform: scale(0.95) translateY(-20px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.spotlight-overlay.open .spotlight-modal {
  transform: scale(1) translateY(0);
}
.spotlight-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 16px;
}
.spotlight-input {
  flex: 1;
  border: none; outline: none;
  font-size: 1.15rem; font-weight: 500;
  color: #1e293b;
  background: transparent;
}
.spotlight-input::placeholder { color: #94a3b8; }
.spotlight-results {
  max-height: 450px;
  overflow-y: auto;
  padding: 8px;
}
.spotlight-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.1s;
  text-decoration: none;
  color: inherit;
}
.spotlight-item:hover, .spotlight-item.active {
  background: #f1f5f9;
}
.spotlight-item .si-icon {
  width: 36px; height: 36px;
  background: #f8fafc;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.spotlight-item:hover .si-icon, .spotlight-item.active .si-icon {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.spotlight-item .si-info { flex: 1; }
.spotlight-item .si-name { font-size: 0.95rem; font-weight: 700; color: #1e293b; margin-bottom: 2px; }
.spotlight-item .si-desc { font-size: 0.75rem; color: #64748b; font-weight: 500; }
.spotlight-item .si-badge { font-size: 0.65rem; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: #f1f5f9; color: #64748b; text-transform: uppercase; }

.spotlight-footer {
  padding: 12px 24px;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.72rem; color: #94a3b8; font-weight: 600;
}
.spotlight-footer kbd {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 2px 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  font-family: inherit;
  margin: 0 2px;
}

/* Bildirim paneli */
.notif-panel {
  position: absolute; top: 100%; right: 0; width: 360px; max-height: 500px;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12); z-index: 1001;
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(10px) scale(0.95); pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 10px;
}
.notif-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: all; }
.notif-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: #f8fafc; }
.notif-header h3 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin: 0; }
.notif-view-all { font-size: 0.75rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.notif-view-all:hover { text-decoration: underline; }
.notif-body { overflow-y: auto; flex: 1; }
.notif-item { padding: 16px 20px; border-bottom: 1px solid #f1f5f9; cursor: pointer; transition: all 0.2s; position: relative; }
.notif-item:hover { background: #f8fafc; }
.notif-item.unread { background: #eff6ff; }
.notif-item.unread::before { content: ''; position: absolute; left: 8px; top: 22px; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; }
.notif-item-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.notif-badge { font-size: 0.65rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; }
.notif-badge.INFO { background: #e0f2fe; color: #0284c7; }
.notif-badge.SUCCESS { background: #dcfce7; color: #16a34a; }
.notif-badge.WARNING { background: #fef9c3; color: #ca8a04; }
.notif-badge.DANGER { background: #fee2e2; color: #dc2626; }
.notif-date { font-size: 0.7rem; color: var(--light); font-weight: 600; }
.notif-title { font-size: 0.88rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.notif-content { font-size: 0.8rem; color: var(--mid); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Global Keyframes ─── */
@keyframes pFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════════
   DARK MODE OVERRIDE KATMANI
   Mevcut :root değişkenlerinin koyu mod karşılıkları.
   Aktifleşme: <html data-theme="dark"> olduğunda.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tema Değiştirme Butonu ── */
.theme-toggle-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* ── Dark Mode Token Override ── */
[data-theme="dark"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.15);
  --accent: #14b8a6;
  --dark: #f4f4f5;
  --dark2: #e4e4e7;
  --mid: #a1a1aa;
  --light: #71717a;
  --bg: #09090b;
  --white: #09090b;
  --border: rgba(255,255,255,0.1);
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-lg: 0 20px 60px rgba(99,102,241,0.2);
}

/* ── Dark Mode Genel Gövde ── */
[data-theme="dark"] body {
  background: #09090b;
  color: #e4e4e7;
}

/* ── Dark Mode Navbar ── */
[data-theme="dark"] .hp-nav,
[data-theme="dark"] .hp-nav.premium {
  background: rgba(9,9,11,0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .m-dropdown {
  background: #18181b;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
[data-theme="dark"] .md-link {
  color: #d4d4d8;
}
[data-theme="dark"] .md-link:hover {
  background: rgba(255,255,255,0.05);
  color: #a5b4fc;
}
[data-theme="dark"] .md-link.active {
  background: #6366f1;
  color: #fff;
}
[data-theme="dark"] .nav-links a {
  color: #d4d4d8;
}
[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  background: rgba(99,102,241,0.15);
  color: #a5b4fc;
}
[data-theme="dark"] .btn-ghost {
  color: #a5b4fc;
  border-color: #6366f1;
}
[data-theme="dark"] .btn-ghost:hover {
  background: #6366f1;
  color: #fff;
}
[data-theme="dark"] .hamburger span {
  background: #e4e4e7;
}

/* ── Dark Mode Kartlar / Paneller ── */
[data-theme="dark"] .card,
[data-theme="dark"] .settings-card,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background: rgba(24,24,27,0.7);
  border-color: rgba(255,255,255,0.1);
  color: #e4e4e7;
}
[data-theme="dark"] .form-group label {
  color: #d4d4d8;
}

/* ── Dark Mode Footer ── */
[data-theme="dark"] .hp-footer {
  background: #18181b;
}

/* ── Dark Mode Spotlight ── */
[data-theme="dark"] .spotlight-modal {
  background: #18181b;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
}
[data-theme="dark"] .spotlight-header {
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .spotlight-input {
  color: #e4e4e7;
}
[data-theme="dark"] .spotlight-item:hover,
[data-theme="dark"] .spotlight-item.active {
  background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .spotlight-item .si-icon {
  background: rgba(255,255,255,0.05);
}
[data-theme="dark"] .spotlight-item .si-name {
  color: #e4e4e7;
}
[data-theme="dark"] .spotlight-item .si-desc {
  color: #71717a;
}
[data-theme="dark"] .spotlight-item .si-badge {
  background: rgba(255,255,255,0.08);
  color: #a1a1aa;
}
[data-theme="dark"] .spotlight-footer {
  background: #09090b;
  border-top-color: rgba(255,255,255,0.1);
  color: #71717a;
}
[data-theme="dark"] .spotlight-footer kbd {
  background: #27272a;
  border-color: rgba(255,255,255,0.1);
  color: #a1a1aa;
}

/* ── Dark Mode Bildirimler ── */
[data-theme="dark"] .notif-panel {
  background: #18181b;
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .notif-header {
  background: #09090b;
  border-bottom-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .notif-header h3 {
  color: #e4e4e7;
}
[data-theme="dark"] .notif-item {
  border-bottom-color: rgba(255,255,255,0.05);
}
[data-theme="dark"] .notif-item:hover {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .notif-item.unread {
  background: rgba(99,102,241,0.08);
}

/* ── Dark Mode Page Hero ── */
[data-theme="dark"] .page-hero {
  background: linear-gradient(165deg, #09090b 0%, #18181b 60%, #09090b 100%);
}

/* ── Dark Mode Badges ── */
[data-theme="dark"] .badge-success { background: rgba(16,185,129,0.15); color: #34d399; }
[data-theme="dark"] .badge-warning { background: rgba(245,158,11,0.15); color: #fbbf24; }
[data-theme="dark"] .badge-info { background: rgba(99,102,241,0.15); color: #a5b4fc; }
[data-theme="dark"] .badge-gray { background: rgba(255,255,255,0.05); color: #a1a1aa; }
[data-theme="dark"] .badge-danger { background: rgba(239,68,68,0.15); color: #f87171; }

/* ── Dark Mode Alerts ── */
[data-theme="dark"] .alert-error { background: rgba(239,68,68,0.1); color: #f87171; border-color: rgba(239,68,68,0.2); }
[data-theme="dark"] .alert-success { background: rgba(16,185,129,0.1); color: #34d399; border-color: rgba(16,185,129,0.2); }

/* ── Dark Mode Toggle Switch ── */
[data-theme="dark"] .toggle-switch { background: #3f3f46; }

/* ── Dark Mode Tabs ── */
[data-theme="dark"] .stab { color: #71717a; }
[data-theme="dark"] .stab.active { color: #a5b4fc; border-bottom-color: #6366f1; }
[data-theme="dark"] .stab:hover:not(.active) { color: #d4d4d8; }

/* ── Dark Mode Table ── */
[data-theme="dark"] .data-table th { background: #18181b; color: #a1a1aa; border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .data-table td { border-color: rgba(255,255,255,0.05); color: #d4d4d8; }
[data-theme="dark"] .data-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ── Dark Mode Genel: hardcoded beyaz arka planları ezme ── */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dash-main,
[data-theme="dark"] .content-area { background: #09090b; }

/* ── Dark Mode: Premium Sidebar ── */
[data-theme="dark"] .sidebar-v2 { background: linear-gradient(180deg, #18181b 0%, #09090b 100%); }

/* ── Smooth theme transition ── */
body, .hp-nav, .card, .settings-card, .hp-footer, .page-hero,
.spotlight-modal, .notif-panel, .btn-ghost, .theme-toggle-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ==========================================
   MODAL MANAGER CSS (Merkezi Pencereler)
   ========================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 2000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.25s; backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--background, #fff); border-radius: var(--radius-lg, 16px); width: 100%;
  display: flex; flex-direction: column; transform: scale(0.95); opacity: 0;
  transition: all 0.25s cubic-bezier(0.175,0.885,0.32,1.275);
  box-shadow: 0 30px 80px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid var(--border);
}
.modal-overlay.open .modal { transform: scale(1); opacity: 1; }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--background, #fff); color: var(--dark, #0f172a);
}
.modal-title { font-size: 1.2rem; font-weight: 700; color: var(--dark, #0f172a); margin: 0; }
.modal-body { padding: 24px; color: var(--dark, #0f172a); }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--background, #f8fafc); }

[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .modal { background: #18181b; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .modal-header { background: #18181b; border-color: rgba(255,255,255,0.1); color: #f8fafc; }
[data-theme="dark"] .modal-title { color: #f8fafc; }
[data-theme="dark"] .modal-body { color: #cbd5e1; }
[data-theme="dark"] .modal-footer { background: #18181b; border-color: rgba(255,255,255,0.1); }

/* Tarayıcıların kendi şifre gösterme (göz) ikonunu gizle */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Cari Liste Tablosu */
.cari-table-wrap { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.cari-table { width:100%; border-collapse:collapse; }
.cari-table thead tr { background:var(--bg); border-bottom:2px solid var(--border); }
.cari-table th { padding:11px 14px; font-size:.68rem; font-weight:800; color:var(--mid); text-transform:uppercase; letter-spacing:.06em; text-align:left; white-space:nowrap; }
.cari-table tbody tr { border-bottom:1px solid var(--border); transition:background .15s; cursor:pointer; }
.cari-table tbody tr:last-child { border-bottom:none; }
.cari-table tbody tr:hover { background:var(--primary-light); }
.cari-table td { padding:12px 14px; font-size:.83rem; vertical-align:middle; }
.cari-avatar-sm { width:34px; height:34px; border-radius:9px; background:var(--gradient); display:flex; align-items:center; justify-content:center; font-size:.78rem; font-weight:800; color:#fff; font-family:'Syne',sans-serif; flex-shrink:0; }
.amount-cell { font-weight:800; font-size:.85rem; }
.amount-cell.green { color:var(--success); }
.amount-cell.red { color:var(--danger); }
.amount-cell.blue { color:var(--primary); }
.action-btns { display:flex; gap:5px; }

[data-theme="dark"] .cari-table-wrap { background: rgba(24,24,27,0.85); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .cari-table thead tr { background: rgba(0,0,0,0.2); border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .cari-table th { color: #a1a1aa; }
[data-theme="dark"] .cari-table tbody tr { border-color: rgba(255,255,255,0.05); }
[data-theme="dark"] .cari-table tbody tr:hover { background: rgba(255,255,255,0.03); }
[data-theme="dark"] .cari-table td { color: #e4e4e7; }

/* SweetAlert z-index fix */
.swal2-container { z-index: 99999 !important; }


/* DÖVİZ KURU KULLANIMI KAPALIYSA */
html.no-currency .currency-field {
    display: none !important;
}


/* Spotlight shared CSP styles */
.spotlight-search-icon { font-size: 1.4rem; }
.spotlight-state { padding: 40px 20px; text-align: center; color: #64748b; }
.spotlight-loading { padding: 20px; }
.spotlight-error { color: #b91c1c; }
.spotlight-section { padding: 16px 16px 8px; color: #64748b; font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.spotlight-results > .spotlight-section:first-child { padding-top: 8px; }
.spotlight-hints { display: flex; flex-wrap: wrap; gap: 8px; }
.spotlight-hint { display: inline-flex; align-items: center; gap: 4px; }
[data-theme="dark"] .spotlight-state,
[data-theme="dark"] .spotlight-section { color: #a1a1aa; }
[data-theme="dark"] .spotlight-error { color: #fca5a5; }
.bc-toast-container {
  position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 99999;
  display: flex; flex-direction: column-reverse; gap: 10px; pointer-events: none;
  max-width: calc(100vw - 32px);
}
.bc-toast {
  position: relative; overflow: hidden; box-sizing: border-box;
  min-width: min(280px, calc(100vw - 32px)); max-width: min(380px, calc(100vw - 32px));
  padding: 14px 40px 14px 16px; border-radius: 12px;
  border-inline-start: 4px solid var(--bc-toast-accent);
  background: var(--bc-toast-bg); color: var(--bc-toast-text);
  box-shadow: 0 8px 24px rgba(0,0,0,.12); pointer-events: all;
  font-family: Inter, sans-serif; animation: bc-toast-in .3s ease both;
}
.bc-toast.is-leaving { animation: bc-toast-out .3s ease both; }
.bc-toast-success { --bc-toast-bg: #dcfce7; --bc-toast-accent: #16a34a; --bc-toast-text: #15803d; }
.bc-toast-error { --bc-toast-bg: #fee2e2; --bc-toast-accent: #dc2626; --bc-toast-text: #b91c1c; }
.bc-toast-warning { --bc-toast-bg: #fef9c3; --bc-toast-accent: #ca8a04; --bc-toast-text: #92400e; }
.bc-toast-info { --bc-toast-bg: #e0f2fe; --bc-toast-accent: #0284c7; --bc-toast-text: #075985; }
.bc-toast-content { display: flex; align-items: flex-start; gap: 10px; }
.bc-toast-icon { font-size: 1.1rem; flex-shrink: 0; line-height: 1.4; }
.bc-toast .toast-message { font-size: .875rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.bc-toast-close {
  position: absolute; inset-block-start: 10px; inset-inline-end: 10px;
  border: 0; padding: 0; background: none; color: inherit;
  font-size: 1rem; line-height: 1; opacity: .7; cursor: pointer;
}
.bc-toast-close:hover, .bc-toast-close:focus-visible { opacity: 1; }
.bc-toast .toast-progress {
  position: absolute; inset-block-end: 0; inset-inline-start: 0;
  width: 100%; height: 3px; background: var(--bc-toast-accent);
  transform-origin: left center;
}
html[dir="rtl"] .bc-toast .toast-progress { transform-origin: right center; }
@keyframes bc-toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bc-toast-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }
[data-theme="dark"] .bc-toast-success { --bc-toast-bg: #052e16; --bc-toast-text: #bbf7d0; }
[data-theme="dark"] .bc-toast-error { --bc-toast-bg: #450a0a; --bc-toast-text: #fecaca; }
[data-theme="dark"] .bc-toast-warning { --bc-toast-bg: #422006; --bc-toast-text: #fef08a; }
[data-theme="dark"] .bc-toast-info { --bc-toast-bg: #082f49; --bc-toast-text: #bae6fd; }
@media (max-width: 480px) {
  .bc-toast-container { inset-inline: 16px; inset-block-end: 16px; }
  .bc-toast { width: 100%; max-width: none; }
  .spotlight-footer { gap: 8px; flex-wrap: wrap; }
}
/* Common access-denied screen: external CSS for strict style CSP. */
.bc-access-denied-body { overflow: hidden; }
.bc-access-denied {
  position: fixed; inset: 0; z-index: 2147483647; padding: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; background: var(--white, #fff); color: var(--dark, #0f172a);
}
.bc-access-denied-icon { font-size: 5rem; margin-bottom: 25px; }
.bc-access-denied h2 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; margin: 0 0 15px; }
.bc-access-denied p { color: var(--mid, #64748b); max-width: 450px; font-size: 1rem; line-height: 1.6; margin: 0; }
.bc-access-denied strong { color: var(--dark, #1e293b); }
.bc-access-denied a {
  margin-top: 30px; display: inline-block; color: var(--primary, #2563eb); font-weight: 700;
  text-decoration: none; font-size: 1.05rem; padding: 12px 24px; background: var(--primary-light, #eff6ff);
  border-radius: 12px; border: 1px solid var(--border, #bfdbfe); transition: background .2s;
}
.bc-access-denied a:hover, .bc-access-denied a:focus-visible { background: var(--border, #dbeafe); }

/* ui.js shared CSP conversion, 2026-10-25 */
                .hp-nav { position: sticky !important; top: 0; z-index: 9999; padding: 0 !important; display: flex; justify-content: center; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); width: 100%; box-sizing: border-box; }
        .nav-container { display: flex; width: 100%; max-width: 100%; align-items: center; justify-content: space-between; padding: 0 2%; height: 68px; box-sizing: border-box; }
        .mega-menu { display: flex; gap: 5px; align-items: center; margin-left: 20px; flex: 1; }
        .m-item { position: relative; padding: 10px 15px; font-size: 0.9rem; font-weight: 700; color: var(--dark); cursor: pointer; border-radius: 8px; transition: background 0.2s; white-space: nowrap; }
        .m-item:hover { background: var(--primary-light); color: var(--primary); }
        .m-dropdown { position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; padding: 10px; min-width: 220px; display: none; flex-direction: column; gap: 4px; z-index: 1000; }
        .m-item:hover .m-dropdown { display: flex !important; }
        .md-link { padding: 8px 12px; font-size: 0.85rem; font-weight: 600; color: var(--dark2); text-decoration: none; border-radius: 6px; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
        .md-link:hover { background: var(--bg); color: var(--primary); }
        .md-link.active { background: var(--primary); color: #fff; }
        .nav-left { flex-shrink: 0; display: flex; align-items: center; gap: 15px; max-width: 450px; }
        .nav-actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
        .nav-left .hamburger { display: none !important; }
        .badge-firma { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--primary); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 800; font-family: 'Syne', sans-serif; letter-spacing: 0.05em; margin-left: 10px; }
        @media(max-width: 1100px) {
           .mega-menu { display: none; }
           .nav-left .hamburger { display: flex !important; }
        }

        .notification-bell { font-size: 1.25rem; cursor: pointer; color: #64748b; position: relative; transition: all .2s; }
        .notification-bell:hover { color: var(--primary); }
        .notif-dot { position: absolute; top: -1px; right: -1px; width: 7px; height: 7px; background: #ef4444; border-radius: 50%; border: 1.5px solid #fff; }
        .user-dropdown-container { position: relative; }
        .user-trigger { display: flex; align-items: center; gap: 8px; padding: 6px 12px; background: #fff; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: all .2s; }
        .user-trigger:hover { border-color: var(--primary); background: var(--bg); }
        .avatar-circle { width: 30px; height: 30px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; }
        .user-name-text { font-size: 0.85rem; font-weight: 700; color: var(--dark); }
        .p-dropdown { position: absolute; top: calc(100% + 10px); right: 0; width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; display: none; z-index: 2000; animation: pFadeIn .2s ease; flex-direction: column; }
        .p-dropdown.open { display: flex; }
        [dir="rtl"] .user-dropdown-container .p-dropdown { right: auto; left: 0; }
        .p-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: 0.85rem; font-weight: 600; color: var(--dark2); text-decoration: none; transition: all .2s; cursor: pointer; }
        .p-dropdown-item:hover { background: var(--bg); color: var(--primary); }
        .p-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }
        .p-dropdown-item.logout { color: var(--danger); }
        @keyframes pFadeIn { from{opacity:0; transform:translateY(-8px)} to{opacity:1; transform:translateY(0)} }

        .notif-panel { position: fixed; top: calc(70px + var(--license-strip-height,0px)); right: 12px; width: min(340px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); overflow: hidden; display: none; z-index: 2000; animation: pFadeIn .2s ease; }
        .notif-panel.open { display: block; }
        .notif-header { padding: 15px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
        .notif-header h3 { margin: 0; font-size: 0.95rem; font-weight: 800; color: var(--dark); }
        .notif-body { max-height: 350px; overflow-y: auto; padding: 10px; }
        .notif-item { padding: 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 8px; transition: background 0.2s; }
        .notif-item:hover { background: var(--border); }
        .notif-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
        .notif-badge { font-size: 0.65rem; font-weight: 800; padding: 2px 6px; border-radius: 6px; }
        .notif-badge.INFO { background: #e0f2fe; color: #0284c7; }
        .notif-badge.SUCCESS { background: #dcfce7; color: #16a34a; }
        .notif-badge.WARNING { background: #fef9c3; color: #ca8a04; }
        .notif-badge.DANGER { background: #fee2e2; color: #dc2626; }
        .notif-date { font-size: 0.7rem; color: #94a3b8; font-weight: 600; }
        .notif-title { font-size: 0.85rem; font-weight: 700; color: var(--dark); margin-bottom: 3px; }
        .notif-content { font-size: 0.8rem; color: var(--dark2); line-height: 1.4; }
        .hp-nav { position: sticky !important; top: 0; z-index: 9999; padding: 0 !important; display: flex; justify-content: center; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); width: 100%; box-sizing: border-box; }
        .nav-container { display: flex; width: 100%; max-width: 100%; align-items: center; justify-content: space-between; padding: 0 2%; height: 68px; box-sizing: border-box; }
        .mega-menu { display: flex; gap: 2px; align-items: center; margin: 0 10px; flex: 1 1 auto; justify-content: center; min-width: 0; overflow: visible; }
        .m-item { position: relative; padding: 6px 12px; font-size: 0.82rem; font-weight: 700; color: var(--dark); cursor: pointer; border-radius: 8px; transition: background 0.2s; white-space: nowrap; flex-shrink: 1; text-overflow: ellipsis; }
        .m-item:hover { background: var(--primary-light); color: var(--primary); }
        .ui-notification-all:hover { opacity: .9; }
        .m-dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 12px; padding: 8px; min-width: 200px; display: none; flex-direction: column; gap: 2px; z-index: 1000; }
        .m-item:hover .m-dropdown { display: flex !important; }
        .md-link { padding: 8px 12px; font-size: 0.8rem; font-weight: 600; color: var(--dark2); text-decoration: none; border-radius: 6px; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
        .md-link:hover { background: var(--bg); color: var(--primary); }
        .md-link.active { background: var(--primary); color: #fff; }
        .nav-left { flex-shrink: 0; display: flex; align-items: center; gap: 15px; max-width: 450px; }
        .nav-actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; }
        .nav-left .hamburger { display: none !important; }
        .badge-firma { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        @media(max-width: 1100px) {
           .mega-menu { display: none; }
           .nav-left .hamburger { display: flex !important; }
        }
.bc-ui-style-1 { text-decoration:none; }
.bc-ui-style-2 { color:#10b981 }
.bc-ui-style-3 { color:#f59e0b }
.bc-ui-style-4 { color:#3b82f6 }
.bc-ui-style-5 { display:flex; align-items:center; text-decoration:none; margin-left:-5px; }
.bc-ui-style-6 { height:60px; width:auto; }
.bc-ui-style-7 { max-width:200px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; align-self:center; margin-left:10px; position:relative; z-index:10; font-size:0.6rem; padding:2px 6px; letter-spacing:0; }
.bc-ui-style-8 { display:none; }
.bc-ui-style-9 { font-size:0.6rem; margin-left:4px; opacity:0.6 }
.bc-ui-style-10 { margin-top:15px; }
.bc-ui-style-11 { display:block; text-align:center; }
.bc-ui-style-12 { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--dark); font-size: 0.85rem; cursor: pointer; outline: none; margin-right: 5px; }
.bc-ui-style-13 { margin-right:10px }
.bc-ui-style-14 { text-align:center; padding:30px 10px 20px 10px; color:#94a3b8; }
.bc-ui-style-15 { font-size:2rem; margin-bottom:10px; }
.bc-ui-style-16 { font-size:0.85rem; font-weight:600; margin-bottom:20px; }
.bc-ui-style-17 { display:block; background:var(--primary); color:#fff; border:none; padding:10px 16px; border-radius:8px; cursor:pointer; font-weight:bold; text-decoration:none; width:100%; box-sizing:border-box; transition:opacity 0.2s; box-shadow:0 4px 12px rgba(37,99,235,0.2); }
.bc-ui-style-18 { color:var(--primary); font-weight:800; text-decoration:none; }
.bc-ui-style-19 { display:flex; flex-direction:column; gap:6px; border-radius:12px; margin-bottom:4px; border:1px solid transparent; transition:all 0.2s; }
.bc-ui-style-20 { display:flex; align-items:center; justify-content:space-between; margin-bottom:2px; }
.bc-ui-style-21 { padding:2px 8px; border-radius:6px; font-size:0.65rem; font-weight:800; }
.bc-ui-style-22 { font-size:0.7rem; color:#94a3b8; font-weight:700; }
.bc-ui-style-23 { font-size:0.9rem; font-weight:800; color:var(--dark); line-height:1.3; }
.bc-ui-style-24 { font-size:0.78rem; color:var(--light); line-height:1.4; display: -webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.bc-ui-style-25 { display:flex; justify-content:flex-end; }
.bc-ui-style-26 { width:6px; height:6px; background:#2563eb; border-radius:50%; }
.bc-ui-style-27 { padding:12px; border-top:1px solid var(--border); background:var(--bg); border-bottom-left-radius:16px; border-bottom-right-radius:16px; }
.bc-ui-style-28 { display:block; background:var(--primary); color:#fff; border:none; padding:10px 16px; border-radius:8px; cursor:pointer; font-weight:bold; text-decoration:none; text-align:center; width:100%; box-sizing:border-box; transition:opacity 0.2s; box-shadow:0 4px 12px rgba(37,99,235,0.2); }
.bc-ui-style-29 { font-size:1.1rem }
.bc-ui-style-30 { flex:1; text-align:center; }
.bc-ui-style-31 { font-weight:500; opacity:0.9; margin-left:5px; }
.bc-ui-style-32 { display:flex; gap:10px; align-items:center; }
.bc-ui-style-33 { color:#fff; border:none; padding:4px 12px; border-radius:6px; font-size:0.75rem; cursor:pointer; font-weight:700; }
.bc-ui-style-34 { background:#fff; width:90%; max-width:450px; border-radius:20px; overflow:hidden; box-shadow:0 25px 50px -12px rgba(0,0,0,0.25); }
.bc-ui-style-35 { padding:20px; color:#fff; text-align:center; }
.bc-ui-style-36 { font-size:2.5rem; margin-bottom:10px; }
.bc-ui-style-37 { background:rgba(255,255,255,0.2); padding:4px 10px; border-radius:8px; font-size:0.75rem; font-weight:800; letter-spacing:1px; }
.bc-ui-style-38 { padding:30px; text-align:center; }
.bc-ui-style-39 { margin:0 0 15px 0; color:#0f172a; font-size:1.4rem; }
.bc-ui-style-40 { color:#475569; font-size:0.95rem; line-height:1.6; margin-bottom:25px; }
.bc-ui-style-41 { background:#f1f5f9; color:#0f172a; border:none; padding:12px 30px; border-radius:10px; font-weight:700; font-size:0.9rem; cursor:pointer; width:100%; transition:all 0.2s; }
.bc-ui-style-42 { padding: 24px; text-align: center; color: var(--light); font-size: 0.8rem; border-top: 1px solid var(--border); margin-top: auto; background: transparent; width: 100%; }
.bc-ui-style-43 { opacity: 0.6 }
.bc-ui-style-44 { height:55px; width:auto; }
.bc-ui-style-45 { margin-bottom:18px; font-size:.75rem; font-weight:700; color:rgba(255,255,255,.35); letter-spacing:1px; text-transform:uppercase; }
.bc-ui-style-46 { padding: 15px 20px; border-top: 1px solid var(--border); display:flex; justify-content:flex-end; gap:10px; background: var(--background); }
.bc-ui-style-47 { display:flex; justify-content:space-between; align-items:center; padding:15px 20px; border-bottom:1px solid var(--border); }
.bc-ui-style-48 { font-weight:bold; font-size:1.1rem; }
.bc-ui-style-49 { cursor:pointer; font-size:1.5rem; line-height:1; color:#64748b; border:none; background:transparent; padding:0; }
.bc-ui-style-50 { padding: 20px; overflow-y: auto; max-height: 70vh; }
.bc-ui-style-51 { text-align:center; font-size:1.1rem; padding: 20px 0; }
.bc-ui-style-52 { padding:10px 20px; border:none; background:#e2e8f0; color:#475569; border-radius:8px; cursor:pointer; font-weight:bold; transition:opacity 0.2s; }
.bc-ui-style-53 { padding:10px 20px; border:none; background:var(--danger, #ef4444); color:#fff; border-radius:8px; cursor:pointer; font-weight:bold; transition:opacity 0.2s; }

.system-banner.INFO { background:#e0f2fe; color:#0369a1; }
.system-banner.SUCCESS { background:#dcfce7; color:#15803d; }
.system-banner.WARNING { background:#fef9c3; color:#a16207; }
.system-banner.DANGER { background:#fee2e2; color:#b91c1c; }
.system-banner.INFO [data-notification-detail] { background:#0369a1; }
.system-banner.SUCCESS [data-notification-detail] { background:#15803d; }
.system-banner.WARNING [data-notification-detail] { background:#a16207; }
.system-banner.DANGER [data-notification-detail] { background:#b91c1c; }
.modal-overlay-duyuru.is-danger .bc-duyuru-header { background:#ef4444; }
.modal-overlay-duyuru:not(.is-danger) .bc-duyuru-header { background:#2563eb; }

/* ui.js state classes; CSP permits external style only. */
.bc-startup-hidden { display:none !important; }
.bc-footer-host { display:flex; flex-direction:column; }
#footer-placeholder[hidden], .notif-dot[hidden], .edit-menu-btn[hidden], .save-menu-btn[hidden] { display:none !important; }
.notification-bell { position:relative; }
.system-banner { padding:10px 20px; font-size:.88rem; font-weight:700; display:flex; align-items:center; justify-content:center; gap:15px; position:sticky; top:0; z-index:1001; border-bottom:1px solid rgba(0,0,0,.05); box-shadow:0 2px 10px rgba(0,0,0,.05); }
.modal-overlay-duyuru { position:fixed; inset:0; background:rgba(15,23,42,.6); backdrop-filter:blur(4px); z-index:9999; display:flex; align-items:center; justify-content:center; animation:pFadeIn .3s; }
.hp-nav .nav-links.bc-mobile-open { display:flex; flex-direction:column; position:fixed; top:calc(68px + var(--license-strip-height,0px)); left:0; right:0; background:#fff; padding:20px; gap:4px; border-bottom:1px solid #e2e8f0; box-shadow:0 10px 30px rgba(0,0,0,.1); z-index:199; }
.bc-impersonating { padding-top:50px; }
#impersonation-banner { position:fixed; top:0; left:0; right:0; z-index:99999; background:linear-gradient(90deg,#dc2626,#b91c1c); color:#fff; padding:10px 20px; display:flex; align-items:center; justify-content:space-between; font-family:Inter,sans-serif; font-size:.85rem; font-weight:700; box-shadow:0 4px 20px rgba(220,38,38,.5); gap:12px; }
.bc-impersonation-info { display:flex; align-items:center; gap:10px; }
.bc-impersonation-icon { font-size:1.2rem; animation:bc-impersonation-pulse 1.5s infinite; }
#impersonation-exit { background:rgba(255,255,255,.2); border:2px solid rgba(255,255,255,.5); color:#fff; padding:6px 16px; border-radius:8px; font-weight:800; cursor:pointer; font-size:.8rem; white-space:nowrap; transition:background .2s; }
#impersonation-exit:hover { background:rgba(255,255,255,.35); }
@keyframes bc-impersonation-pulse { 0%,100%{opacity:1} 50%{opacity:.5} }
.bc-menu-edit-sidebar { width:260px; }
.s-item.bc-menu-edit-item { cursor:grab; border:1px dashed rgba(255,255,255,.3); opacity:.9; }
.s-item.bc-menu-dragging { opacity:.4; }
.s-item.bc-menu-drop-target { border-top:2px solid #3b82f6; }
.modal-footer button:hover { opacity:.8; }
.bc-modal-width-450 { max-width:450px; }
.bc-modal-width-500 { max-width:500px; }
#nav-placeholder .hp-nav { position:relative !important; }
#nav-placeholder .notif-panel { position:fixed; top:calc(70px + var(--license-strip-height,0px)); right:12px; }
#nav-placeholder .hp-nav .nav-links.bc-mobile-open { position:fixed; top:calc(68px + var(--license-strip-height,0px)); }
/* Üst durum alanı yalnız gerçek uyarı/hata/kısmi veri taşıdığında yer kaplar. */
#settings-status:empty,#stock-page-feedback:empty,#cash-page-feedback:empty,#orders-status:empty,#dashboard-status:empty,#radar-status:empty,#kur-erisim-durum:empty,#otomatik-kapsam-durum:empty,#liste-durum:empty,#order-status:empty,#cari-detail-status:empty,#stock-feedback:empty,#personnel-feedback:empty,#recipe-status:empty,#invoice-status:empty,#tx-status:empty,#cari-list-status:empty,#report-status:empty,#trash-status:empty,#audit-status:empty,#invoice-feedback:empty,#attribute-status:empty,#attribute-form-status:empty,#device-page-notice:empty,#announcement-read-status:empty { display:none !important; }
