:root {
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bg: #050505;
  --panel: rgba(13, 13, 13, 0.8);
  --panel-solid: #0d0d0d;
  --panel-border: rgba(255, 255, 255, 0.07);
  --ink: #ededed;
  --muted: #888888;
  --line: rgba(255, 255, 255, 0.07);
  --primary: #ff6600;
  --primary-d: #cc5200;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --sidebar: rgba(5, 5, 5, 0.85);
  --sidebarink: #888888;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 102, 0, 0.15);
  --gradient: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
  --hover-bg: #111111;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Form elemanları tarayıcı varsayılanı yerine sayfa yazı tipini (Inter) kullanır */
button, input, select, textarea { font-family: inherit; }

/* Custom Scrollbar*/
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 4px; border: 1px solid var(--panel-border); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary); text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); background: var(--bg); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
hr.sep { border: none; border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- Inputs / Buttons ---------- */
.input {
  width: 100%; padding: 9px 11px; border: 1px solid var(--panel-border); border-radius: 8px;
  font-size: 14px; font-family: var(--font); background: rgba(0, 0, 0, 0.2); color: var(--ink); outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input:focus { background: rgba(0, 0, 0, 0.4); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
textarea.input { resize: vertical; }
select.input { cursor: pointer; }
.color-input { width: 56px; height: 36px; padding: 2px; cursor: pointer; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 6px; }
.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 1px solid var(--panel-border); border-radius: 8px; background: rgba(255, 255, 255, 0.05);
  color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--font);
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
 text-shadow: 0 1px 2px rgba(0,0,0,0.2); letter-spacing: 0.3px; }
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.15); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border: none; color: #fff; box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3); }
.btn-primary:hover { background: var(--primary-d); box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4); }
.btn-danger { background: rgba(255, 255, 255, 0.05); border-color: rgba(239, 68, 68, 0.4); color: var(--danger); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.6); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-row { display: flex; gap: 8px; }
.mini-btn {
  padding: 4px 10px; font-size: 12px; border: 1px solid var(--panel-border); border-radius: 6px;
  background: var(--panel-solid); cursor: pointer; color: var(--ink); font-weight: 600;
  transition: background 0.15s;
}
.mini-btn:hover { background: var(--hover-bg); }
.mini-btn.danger { color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.icon-btn {
  border: none; background: transparent; cursor: pointer; font-size: 18px; padding: 6px;
  border-radius: 8px; color: inherit; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.link-btn { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; padding: 0 4px; }
.link-btn:hover { color: var(--primary); }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #09090b, #000000); padding: 20px; }
.login-card { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 36px 32px; border-radius: 16px; width: 100%; max-width: 380px; box-shadow: var(--shadow-lg); border: 1px solid var(--panel-border); }
.login-logo { display: flex; justify-content: center; margin-bottom: 8px; color: var(--primary); }
.login-logo svg { width: 44px; height: 44px; }
.login-card h1 { margin: 8px 0 2px; text-align: center; font-size: 24px; color: #fff; font-weight: 800; letter-spacing: -0.5px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.login-card .btn { margin-top: 8px; }
.login-error { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 6px; }

/* ---------- Layout ---------- */
.layout { display: flex; flex-direction: column; min-height: 100vh; }
.sidebar{
  width: auto;
  max-width: 95%;
  height: 64px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--sidebarink);  padding: 8px 24px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand { display: none; }
.brand-icon { display: inline-flex; align-items: center; color: var(--primary); }
.brand-icon svg { width: 20px; height: 20px; }
.sidebar-nav { display: flex; flex-direction: row; gap: 8px; align-items: center; }
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 12px;
  height: 48px;
  border-radius: 16px;
  color: var(--sidebarink);  font-weight: 600;
  font-size: 10px;
  transition: background .2s ease, color .2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; color: #fff; transform: scale(1.05) translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.nav-item.active { background: rgba(255, 102, 0, 0.1); color: var(--primary); box-shadow: none; transform: scale(1.05) translateY(-2px); }
.nav-icon { font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; transition: stroke 0.15s, transform 0.15s; stroke: currentColor; fill: none; }
.nav-item.active .nav-icon svg { stroke: var(--primary); stroke-width: 2.5; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-bottom: 90px; }
.topbar {  height: 68px; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 20; box-shadow: 0 4px 20px rgba(0,0,0,0.8);  }
.topbar-left { display: flex; align-items: center; gap: 24px; }
.header-logo { height: 42px; object-fit: contain; mix-blend-mode: screen; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.15)); user-select: none; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.crumb-link { color: var(--muted); font-weight: 600; }
.crumb-link:hover { color: var(--primary); }
.crumb-cur { color: #fff; font-weight: 700; }
.crumb-sep { color: var(--line); }

.bell { position: relative; }
.bell-badge { position: absolute; top: 0; right: 0; background: var(--primary); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: none; align-items: center; justify-content: center; padding: 0 4px; font-weight: 700; box-shadow: 0 0 8px rgba(59, 130, 246, 0.6); }
.user-btn { display: flex; align-items: center; gap: 8px; border: none; background: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; color: var(--ink); transition: background 0.15s; }
.user-btn:hover { background: rgba(255, 255, 255, 0.05); }
.avatar{ width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3); }
.avatar-small { width: 26px; height: 26px; font-size: 12px; }
.user-name { font-weight: 600; font-size: 13px; color: #fff; }

.view { padding: 24px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.page-head h2 { margin: 0; font-size: 24px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.page-desc { margin-top: -8px; margin-bottom: 18px; }
.section-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #fff; }
.sub-title { font-size: 13px; font-weight: 700; color: var(--primary); margin: 16px 0 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { padding: 20px; color: var(--muted); }

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; background: var(--panel-solid); color: var(--muted); white-space: nowrap; border: 1px solid var(--panel-border); }
.tag-admin { background: rgba(59, 130, 246, 0.1); color: var(--primary); border-color: rgba(59, 130, 246, 0.2); }
.tag-user { background: #1d2b3a; color: #60a5fa; border-color: #254b73; }
.tag-status-active { background: rgba(34, 197, 94, 0.1); color: var(--success); border-color: rgba(34, 197, 94, 0.2); }
.tag-status-on_hold { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
.tag-status-completed { background: var(--panel-solid); color: var(--muted); border-color: var(--line); }
.tag-status-todo { background: var(--panel-solid); color: var(--muted); border-color: var(--line); }
.tag-status-in_progress { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.2); }
.tag-status-done { background: rgba(34, 197, 94, 0.1); color: var(--success); border-color: rgba(34, 197, 94, 0.2); }
.prio-tag-low { background: var(--panel-solid); color: var(--muted); }
.prio-tag-medium { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
.prio-tag-high { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.2); }
.tag-overdue { background: rgba(239, 68, 68, 0.15); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); font-weight: 800; }

/* CRM Status Tags */
.tag-status-lead { background: rgba(59, 130, 246, 0.1); color: #60a5fa; border-color: rgba(59, 130, 246, 0.25); }
.tag-status-contacted { background: rgba(139, 92, 246, 0.1); color: #a78bfa; border-color: rgba(139, 92, 246, 0.25); }
.tag-status-proposal { background: rgba(245, 158, 11, 0.1); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.tag-status-negotiation { background: rgba(236, 72, 153, 0.1); color: #f472b6; border-color: rgba(236, 72, 153, 0.25); }
.tag-status-won { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-color: rgba(34, 197, 94, 0.25); }
.tag-status-lost { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.25); }

/* ---------- Area cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.area-card { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.area-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); }
.area-card-bar{ height: 6px; background: varaccent, var(--primary)); }
.area-card-body { padding: 16px; cursor: pointer; flex: 1; }
.area-card-body:hover h3 { color: var(--primary); }
.area-card-body h3 { margin: 0 0 6px; font-size: 17px; color: #fff; transition: color 0.15s; }
.area-meta { margin-top: 12px; font-size: 12px; font-weight: 700; color: varaccent, var(--primary)); }
.area-card-actions { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- Project list ---------- */
.project-list { display: flex; flex-direction: column; gap: 10px; }
.project-row { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s; }
.project-row:hover { border-color: var(--primary); transform: translateX(4px); background: rgba(24, 24, 27, 0.8); }
.project-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 3px; color: #fff; }
.project-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.drive-link{ font-size: 13px; font-weight: 600; }
.progress-mini { font-size: 12px; color: var(--muted); }

/* ---------- Detail grid ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }/* ---------- Tasks & Panels ---------- */
.panel { background: var(--panel); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.panel:hover { box-shadow: var(--shadow-lg); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.project-desc { white-space: pre-wrap; margin: 0 0 16px; color: var(--ink); line-height: 1.6;}
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.info-key { color: var(--muted); font-size: 13px; font-weight: 500; }

.taskboard { display: flex; flex-direction: column; gap: 12px; }
.taskcard { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-left: 4px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.taskcard:hover { transform: translateY(-3px) scale(1.01); background: rgba(30, 41, 59, 0.6); border-color: rgba(255,255,255,0.15); box-shadow: 0 12px 24px rgba(0,0,0,0.6); }
.taskcard.prio-high { border-left-color: var(--danger); }
.taskcard.prio-medium { border-left-color: #f59e0b; }
.taskcard.prio-low { border-left-color: #64748b; }
.taskcard.done { opacity: 0.6; filter: grayscale(50%); }
.taskcard.done .tasktitle { text-decoration: line-through; }
.taskcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.tasktitle { font-weight: 700; font-size: 14.5px; color: #fff; cursor: pointer; transition: color 0.15s; letter-spacing: -0.2px; }
.tasktitle:hover { color: var(--primary); }
.taskcard-meta { display: flex; gap: 14px; margin: 8px 0; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.due.overdue { color: var(--danger); font-weight: 800; }
.taskcard-bottom { display: flex; gap: 8px; align-items: center; }
.status-select { width: auto; padding: 5px 8px; font-size: 12px; font-weight: 600; background: var(--panel-solid); border-color: var(--line); color: var(--ink);}
.status-select.st-done { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.status-select.st-in_progress { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-select.st-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.mytasklist { display: flex; flex-direction: column; gap: 8px; }
.mytaskrow { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-left: 4px solid var(--line); border-radius: 10px; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.mytaskrow.prio-high { border-left-color: #ef4444; }
.mytaskrow.prio-medium { border-left-color: #f59e0b; }
.mytaskrow.done { opacity: 0.5; }
.mytaskmain { cursor: pointer; flex: 1; }
.mytaskside { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }

/* ---------- Comments & files ---------- */
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 8px; padding: 9px 11px; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.comment-author { font-weight: 700; font-size: 13px; color: #fff; }
.comment-time { font-size: 11px; color: var(--muted); }
.comment-body { font-size: 13px; white-space: pre-wrap; word-break: break-word; color: var(--ink);}
.comment-add { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.comment-add textarea { flex: 1; }
.file-list { display: flex; flex-direction: column; gap: 6px; }
.file-item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.file-link{ flex: 1; word-break: break-all; }
.file-size { color: var(--muted); font-size: 11px; }
.file-input { display: none; }
.upload-btn { margin-top: 10px; cursor: pointer; }

/* ---------- Announcements ---------- */
.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-card { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.ann-card.unread { border-left: 4px solid var(--primary); }
.ann-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ann-title { font-weight: 700; font-size: 15px; flex: 1; color: #fff; }
.ann-time { font-size: 12px; color: var(--muted); }
.ann-body { white-space: pre-wrap; word-break: break-word; color: var(--ink);}
.ann-foot { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* ---------- Table ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { text-align: left; font-size: 12px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--hover-bg); font-weight: 700; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .mini-btn { white-space: nowrap; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(12, 10, 11, 0.75); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; z-index: 100; }
.modal-backdrop.show { opacity: 1; }
.modal { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 14px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); border: 1px solid var(--panel-border); max-height: 90vh; display: flex; flex-direction: column; transform: translateY(8px); transition: transform .2s; }
.modal-backdrop.show .modal { transform: translateY(0); }
.modal-wide { max-width: 1000px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 17px; color: #fff; font-weight: 700; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.modal-actions.left { justify-content: flex-start; }
.menu-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.confirm-msg { margin: 0; color: var(--ink);}
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.taskdetail-desc { white-space: pre-wrap; color: var(--ink);}

.checklist { max-height: 280px; overflow-y: auto; border: 1px solid var(--panel-border); border-radius: 8px; padding: 6px; background: var(--panel-solid); }
.checkrow { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 6px; cursor: pointer; color: var(--ink); transition: background 0.15s; }
.checkrow:hover { background: var(--hover-bg); }
.target-box { margin-top: 4px; }

.notif-panel-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.notif-item { padding: 10px 12px; border: 1px solid var(--panel-border); border-radius: 8px; background: var(--panel-solid); }
.notif-item.unread { border-left: 3px solid var(--primary); background: var(--panel-solid); }
.notif-item-title { font-weight: 700; font-size: 14px; color: #fff; }
.notif-item-body { font-size: 13px; color: var(--ink); margin: 2px 0; }
.notif-item-time { font-size: 11px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast-root { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 200; max-width: 360px; }
.toast { background: var(--panel-solid); border: 1px solid var(--panel-border); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: rgba(34, 197, 94, 0.9); border-color: rgba(34, 197, 94, 0.4); }
.toast-error { background: rgba(239, 68, 68, 0.9); border-color: rgba(239, 68, 68, 0.4); }
.toast-info { background: var(--panel-solid); border-color: rgba(59, 130, 246, 0.3); }

/* ---------- Tablolar (genel bakış) ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab-btn { padding: 9px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s; }
.tab-btn:hover { color: #fff; text-decoration: none; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

.filter-bar{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar.input { width: auto; flex: 0 0 auto; min-width: 150px; }
.filter-barinput[type="search"] { flex: 1 1 220px; min-width: 200px; max-width: 360px; }
.chkinline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; user-select: none; }

.stat-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--muted); }
.chip-green { color: var(--success); background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.chip-red { color: var(--danger); background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }
.chip-amber { color: #f59e0b; background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); }
.chip-blue { color: #60a5fa; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }

.table-wrap { overflow-x: auto; }
.data-table.sortable th.th-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.data-table.sortable th.th-sort:hover { color: #fff; }
.data-table.sortable th.active { color: var(--primary); }
.data-table th.num, .data-table td.num { text-align: right; }
.data-table tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover td { background: var(--hover-bg); }
.data-table tr.row-done td { opacity: 0.5; }
.cell-strong { font-weight: 600; color: #fff; }
.area-pill { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.tprog { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.tprog-bar{ flex: 1; height: 7px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; min-width: 60px; }
.tprog-fill { height: 100%; background: var(--success); border-radius: 4px; }
.tprog-label { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- Yonetici paneli ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.kpi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kpi-icon { font-size: 26px; line-height: 1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-card.kpi-red .kpi-icon { color: #fca5a5; }
.kpi-card.kpi-green .kpi-icon { color: #86efac; }
.kpi-card.kpi-amber .kpi-icon { color: #fcd34d; }
.kpi-body { min-width: 0; }
.kpi-value { font-size: 20px; font-weight: 800; line-height: 1.2; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label { font-size: 13.5px; color: var(--muted); font-weight: 600; letter-spacing: -0.2px; }
.kpi-sub { font-size: 11px; color: var(--muted); margin-top: 3px; }
.kpi-card.kpi-red { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }
.kpi-card.kpi-red .kpi-value { color: #fca5a5; }
.kpi-card.kpi-green { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.08); }
.kpi-card.kpi-green .kpi-value { color: #86efac; }
.kpi-card.kpi-amber { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.kpi-card.kpi-amber .kpi-value { color: #fcd34d; }
.kpi-card.kpi-blue { border-color: rgba(99, 102, 241, 0.4); background: rgba(99, 102, 241, 0.08); }
.kpi-card.kpi-blue .kpi-value { color: #a5b4fc; }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }

.presence-list { display: flex; flex-direction: column; }
.presence-row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--line); }
.presence-row:first-child { border-top: none; }
.pdot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.pdot.on { background: #22c55e; box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.pdot.off { background: rgba(255, 255, 255, 0.15); }
.presence-name { font-weight: 600; color: #fff; }
.presence-seen { margin-left: auto; font-size: 12px; color: var(--muted); }
.presence-seen.online { color: var(--success); font-weight: 600; }

.workload-list { display: flex; flex-direction: column; gap: 10px; }
.workload-row { display: flex; align-items: center; gap: 10px; }
.workload-name { width: 120px; flex-shrink: 0; font-weight: 600; font-size: 13px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workload-bar{ flex: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; min-width: 40px; }
.workload-fill { height: 100%; background: var(--gradient); border-radius: 4px; }
.workload-num { font-size: 12px; color: var(--muted); white-space: nowrap; min-width: 48px; text-align: right; }

.over-list { display: flex; flex-direction: column; }
.over-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); cursor: pointer; }
.over-row:first-child { border-top: none; }
.over-row:hover { background: var(--hover-bg); }
.over-title { font-weight: 600; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.over-meta { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.over-due { font-size: 12px; color: var(--danger); font-weight: 700; white-space: nowrap; }
.over-more { padding: 10px 2px; color: var(--primary); font-size: 13px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }
.over-more:hover { text-decoration: underline; color: var(--primary); }

/* Görev atama / detay küçük parçalar */
.subfield { margin: -4px 0 12px; padding: 10px 12px; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 8px; }
.detail-status { display: block; margin: 4px 0 10px; }
.detail-status .status-select { margin-top: 4px; }

/* Onay akışı (Bitti -> yönetici onayı) */
.tag-status-pending { background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.2); }
.status-select.st-pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; }
.btn-approve { background: var(--success); border-color: var(--success); color: #fff; }
.btn-approve:hover { background: #15803d; border-color: #15803d; }
.btn-reject { background: var(--panel-solid); border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.btn-reject:hover { background: rgba(245, 158, 11, 0.08); }
.pending-panel { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.02); }
.pending-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; cursor: pointer; }
.pending-info:hover .over-title { color: var(--primary); }
.pending-actions { display: flex; gap: 6px; flex-shrink: 0; }
.modal-actions.wrap { flex-wrap: wrap; }

/* WhatsApp ayar ekranı */
.wa-wrap { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.wa-card { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.wa-card.wa-on { border-color: rgba(34, 197, 94, 0.3); background: rgba(34, 197, 94, 0.05); }
.wa-card.wa-off { border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.05); }
.wa-title { font-weight: 700; font-size: 15px; margin-bottom: 2px; color: #fff; }
.wa-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.wa-dot.on { background: var(--success); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.wa-dot.off { background: rgba(255, 255, 255, 0.15); }
.wa-dot.wait { background: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.wa-qr { display: grid; place-items: center; padding: 16px; background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); }
.wa-qr-img { width: 280px; height: 280px; image-rendering: pixelated; border: 4px solid #fff; border-radius: 8px; }
.wa-test { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.wa-test-row { display: flex; gap: 8px; margin-top: 6px; }
.wa-test-row .input { max-width: 220px; }
.wa-warn { font-size: 12px; color: #fbbf24; background: rgba(245, 158, 11, 0.05); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 8px; padding: 8px 12px; }
.wa-settings { max-width: 560px; }
.wa-settings .section-title { font-size: 15px; }
.wa-digest-row { align-items: flex-end; margin-top: 8px; }
.wa-tpl-title { margin-top: 18px; }
.wa-settings textarea.input { font-size: 13px; }

/* ---------- CRM Custom Dashboard / Kanban ---------- */
.kanban-board { 
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 12px; margin-top: 10px; align-items: flex-start;
  scrollbar-width: none; /* Hide scrollbar in Firefox */
  cursor: grab;
  scroll-behavior: smooth; /* Smooth snap when scrolling */
}
.kanban-board::-webkit-scrollbar { display: none; /* Hide scrollbar in Chrome/Safari */ }
.kanban-board.active { cursor: grabbing; scroll-behavior: auto; }

.kanban-col { 
  flex: 1; min-width: 280px; 
  background: rgba(25, 25, 25, 0.45); 
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08); 
  border-radius: 12px; padding: 14px; 
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); 
  display: flex; flex-direction: column; gap: 12px; max-height: 75vh;
  transition: background 0.3s ease;
}
.kanban-col:hover {
  background: rgba(30, 30, 30, 0.55);
}

.kanban-col-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; margin-bottom: 6px; }
.kanban-col-title { font-weight: 700; font-size: 14px; color: #fff; display: flex; align-items: center; gap: 8px; letter-spacing: 0.3px; }
.kanban-col-count { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.05); font-size: 11px; padding: 2px 8px; border-radius: 12px; color: #fff; font-weight: 700; }
.kanban-col-value { font-size: 12px; color: var(--primary); font-weight: 800; }

.kanban-cards { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1; padding: 4px 2px; }
.kanban-cards::-webkit-scrollbar { width: 4px; }
.kanban-cards::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.customer-card { 
  background: rgba(40, 40, 40, 0.6); 
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); 
  border: 1px solid rgba(255, 255, 255, 0.05); 
  border-radius: 10px; padding: 14px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
  cursor: pointer; 
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.customer-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--primary); opacity: 0; transition: opacity 0.2s;
}
.customer-card:hover { 
  transform: translateY(-3px) scale(1.02); 
  border-color: rgba(255, 102, 0, 0.4); 
  box-shadow: 0 8px 24px rgba(255, 102, 0, 0.15); 
  background: rgba(50, 50, 50, 0.8);
}
.customer-card:hover::before { opacity: 1; }
.customer-card-name { font-weight: 700; font-size: 14px; color: #fff; margin-bottom: 2px; }
.customer-card-company { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.customer-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 11px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.customer-card-value { color: var(--primary); font-weight: 700; }
.customer-card-agent { color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 4px; }

/* Timeline interactions */
.timeline { display: flex; flex-direction: column; gap: 16px; position: relative; margin-left: 10px; padding-left: 20px; border-left: 2px solid var(--line); }
.timeline-item { position: relative; }
.timeline-badge { position: absolute; left: -29px; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--panel-solid); border: 2px solid var(--line); display: grid; place-items: center; font-size: 10px; }
.timeline-badge svg { width: 10px; height: 10px; }
.over-ico { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--muted); }
.over-ico svg { width: 14px; height: 14px; }
.timeline-badge.call { border-color: #3b82f6; color: #60a5fa; }
.timeline-badge.meeting { border-color: #10b981; color: #34d399; }
.timeline-badge.email { border-color: #f59e0b; color: #fbbf24; }
.timeline-badge.whatsapp { border-color: #22c55e; color: #4ade80; }
.timeline-badge.note { border-color: #8b5cf6; color: #a78bfa; }
.timeline-content { background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 8px; padding: 12px; box-shadow: var(--shadow); }
.timeline-header { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.timeline-user { font-weight: 700; color: #fff; }
.timeline-time { color: var(--muted); }
.timeline-body { font-size: 13px; color: var(--ink); white-space: pre-wrap; }
.timeline-delete { color: var(--danger); cursor: pointer; text-decoration: underline; margin-left: 8px; font-size: 11px; border: none; background: none; padding: 0; }

.activity-log-box { background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.activity-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.activity-tab-btn { padding: 6px 12px; border-radius: 6px; border: 1px solid var(--panel-border); font-size: 12px; font-weight: 600; cursor: pointer; background: var(--panel-solid); color: var(--muted); }
.activity-tab-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Responsive ---------- */
/* Toplantı katılımcıları gibi yan yana onay kutuları */
.chk-inline { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; font-size: 13px; user-select: none; }
.chk-inline:hover { border-color: var(--primary); }
.chk-inline input { margin: 0; cursor: pointer; }
.chk-inline:has(input:checked) { border-color: var(--primary); background: rgba(37, 99, 235, 0.12); }

/* ---- Menü grubu açılır listesi (18 madde yerine 5 grup) ---- */
.nav-item.nav-group { background: none; border: 0; font-family: inherit; cursor: pointer; }
.nav-item.nav-group::after {
  content: ''; width: 0; height: 0; margin-left: 2px; flex: 0 0 auto;
  border-left: 3.5px solid transparent; border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor; opacity: 0.55; transition: transform 0.15s, opacity 0.15s;
}
.nav-item.nav-group.open::after { transform: rotate(180deg); opacity: 1; }
.nav-item.nav-group.open { background: rgba(255, 255, 255, 0.1); color: #fff; }

.nav-menu {
  position: fixed; z-index: 120; min-width: 248px; max-width: min(320px, calc(100vw - 16px));
  padding: 6px; border-radius: 14px; background: var(--panel-solid, #0d0d0d);
  border: 1px solid var(--panel-border, rgba(255,255,255,0.12));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 2px;
  animation: navMenuIn 0.13s ease-out;
}
@keyframes navMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.nav-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px;
  color: var(--ink); text-decoration: none; min-height: 44px;
}
.nav-menu-item:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; color: #fff; }
.nav-menu-item.active { background: rgba(255, 102, 0, 0.12); color: var(--primary); }
.nav-menu-icon { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 22px; }
.nav-menu-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }
.nav-menu-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-menu-label { font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.nav-menu-hint { font-size: 11px; line-height: 1.3; color: var(--muted); }
.nav-menu-item.active .nav-menu-hint { color: rgba(255, 102, 0, 0.75); }

/* Dar ekranda alt çubuk: etiketler görünür kalsın, ok işareti gizlensin */
/* ================= AB hibe projeleri ================= */
.eu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.eu-card {
  background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 16px; cursor: pointer; transition: border-color .15s, transform .15s;
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.eu-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.eu-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.eu-acronym { font-weight: 800; font-size: 16px; color: var(--primary); letter-spacing: .3px; }
.eu-title { font-size: 13px; color: var(--ink); margin-top: 2px; line-height: 1.35; }
.eu-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); }
.eu-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.eu-bar-fill { height: 100%; background: var(--primary); border-radius: 3px; transition: width .3s; }
.eu-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* künye */
.eu-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 6px 20px; }
.eu-info-row { display: flex; gap: 8px; align-items: baseline; min-width: 0; padding: 3px 0; }
.eu-info-row > span:first-child { flex: 0 0 96px; }
.eu-info-row > span:last-child { min-width: 0; word-break: break-word; }

/* iş paketi */
.eu-wp { margin-bottom: 14px; }
.eu-wp-code {
  display: inline-block; padding: 1px 7px; border-radius: 6px; margin-right: 6px;
  background: rgba(255,102,0,.15); color: var(--primary); font-size: 12px; font-weight: 800;
}
.eu-wp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--muted); margin: 2px 0 8px; }
.eu-wp-desc { margin: 0 0 10px; white-space: pre-wrap; }
.eu-is-ikon { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--muted); }

/* dosyalar */
.eu-files { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--panel-border); }
.eu-files-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.eu-file-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.eu-file {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  background: rgba(255,255,255,.03); font-size: 12.5px; min-width: 0;
}
.eu-file > a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eu-file-ico { display: inline-flex; color: var(--muted); flex: 0 0 auto; }

/* ortak satırı (proje formu) */
.eu-partner-row { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.eu-partner-row .input { margin: 0; }

@media (max-width: 640px) {
  .eu-info-row { flex-direction: column; gap: 0; }
  .eu-info-row > span:first-child { flex: none; }
  .eu-partner-row { flex-wrap: wrap; }
  .eu-partner-row .input { max-width: none !important; }
}

@media (max-width: 860px) {
  .nav-item.nav-group::after { display: none; }
  .nav-menu { min-width: 230px; }
  .nav-menu-hint { display: none; }
  .nav-menu-item { min-height: 46px; }
}

@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar{ width: auto; max-width: 95%; padding: 6px 12px; bottom: 10px; height: auto; border-radius: 20px; }
  .brand span:last-child { display: none; }
  .nav-item span:last-child { display: none; }
  .nav-item { justify-content: center; height: 38px; width: 38px; border-radius: 10px; padding: 0; }
  .nav-icon { font-size: 20px; }
  .user-name { display: none; }
  .filter-bar.input, .filter-barinput[type="search"] { flex: 1 1 100%; max-width: none; }
  .over-meta { display: none; }
}

/* ====================== TAKVİM (CALENDAR) UI ====================== */
.cal-container {
  background: var(--panel); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);}

.cal-nav-btn {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--ink);  font-size: 16px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cal-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.cal-day-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cal-day {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  min-height: 80px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cal-day:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cal-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.cal-day.today {
  background: rgba(255, 255, 255, 0.05);
}

.cal-date-num {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);  margin-bottom: 6px;
  opacity: 0.8;
}

/* Status Borders (Glowing borders based on deadline) */
.cal-day.status-safe {
  border-color: #22c55e;
  box-shadow: inset 0 0 8px rgba(34, 197, 94, 0.1);
}
.cal-day.status-warn {
  border-color: #eab308;
  box-shadow: inset 0 0 8px rgba(234, 179, 8, 0.1);
}
.cal-day.status-urgent {
  border-color: #f97316; /* Theme Orange */
  box-shadow: inset 0 0 8px rgba(59, 130, 246, 0.2);
}
.cal-day.status-late {
  border-color: #ef4444;
  box-shadow: inset 0 0 8px rgba(239, 68, 68, 0.2);
}

/* Day Badges */
.cal-badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-badge.meeting {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}
.cal-badge.task{
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
}
.cal-badge.tasktasklate {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Selected Day Detail List */
.cal-detail-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.cal-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ticker (Kayan Yazi) - XREALM Theme */
.ticker-wrap {
  flex: 1;
  margin: 0 24px;
  overflow: hidden;
  position: relative;
  height: 38px;
  background: var(--panel);
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-slide 25s linear infinite;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  gap: 40px;
  padding-left: 100%;
}
.ticker:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ticker-icon {
  color: var(--muted);
  font-size: 14px;
}

.ticker-val {
  color: var(--primary);
  font-weight: 700;
  font-family: monospace;
  font-size: 14px;
}
.ticker-label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

/* Customer Vertical List Styles */
.customer-list-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 15px; width: 100%; }
.customer-list-card { display: flex; align-items: center; justify-content: space-between; background: rgba(30, 30, 30, 0.4); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 16px 20px; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.customer-list-card:hover { background: rgba(40, 40, 40, 0.6); transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.clc-left { flex: 2; display: flex; flex-direction: column; gap: 4px; }
.clc-name { font-size: 16px; font-weight: 700; color: #fff; }
.clc-company { font-size: 13px; color: var(--muted); font-weight: 500; }
.clc-mid { flex: 1; display: flex; justify-content: flex-start; }
.clc-right { flex: 1; display: flex; justify-content: flex-end; }
.clc-agent { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* Customer Modal Tabs */
.customer-modal-layout { display: flex; flex-direction: column; gap: 16px; }
.cm-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; margin-bottom: 8px; }
.cm-tab-btn { background: transparent; border: 1px solid transparent; color: var(--muted); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 8px; cursor: pointer; transition: all 0.2s; }
.cm-tab-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.cm-tab-btn.active { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.cm-content { flex: 1; overflow-y: auto; }
.cm-pane { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Dashboard Layout & News Widget */
.dashboard-layout { display: flex; gap: 24px; align-items: flex-start; }
.dashboard-main { flex: 3; min-width: 0; display: flex; flex-direction: column; gap: 16px; }   /* min-width:0 olmadan dar ekranda kabından taşıp kırpılıyordu */
.dashboard-sidebar { flex: 1; position: sticky; top: 24px; min-width: 300px; max-width: 350px; height: calc(100vh - 120px); }

/* Dar ekran: haber sütunu 300px istiyordu, içeriğin üstüne biniyordu; alt alta alınır */
@media (max-width: 900px) {
  /* align-items:flex-start sütun düzeninde çocukları içerik genişliğine bırakıyor -> stretch */
  .dashboard-layout { flex-direction: column; align-items: stretch; }
  .dashboard-sidebar { position: static; min-width: 0; max-width: none; width: 100%; height: auto; max-height: 70vh; }
}
.news-widget-list { display: flex; flex-direction: column; gap: 12px; overflow-y: auto; padding-right: 4px; flex: 1; }
.news-widget-list::-webkit-scrollbar { width: 4px; }
.news-widget-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.news-item { background: rgba(20,20,20,0.4); border: 1px solid rgba(255,255,255,0.05); padding: 12px; border-radius: 8px; transition: transform 0.2s, background 0.2s; cursor: pointer; }
.news-item:hover { transform: translateY(-2px); background: rgba(30,30,30,0.6); border-color: rgba(255,255,255,0.1); }
.news-item-head { display: flex; justify-content: space-between; align-items: center; }

/* ===================== Eylül 2026: yeni modüller ===================== */
button.tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer; font-size: 14px; font-family: inherit; }
.warn-text { color: #fbbf24; font-weight: 600; }
.danger-text { color: #f87171; font-weight: 700; }
.success-text { color: #4ade80; font-weight: 700; }
.notif-item.clickable { cursor: pointer; }
.notif-item.clickable:hover { border-color: rgba(255, 102, 0, 0.35); }
.notif-panel-list { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.field-row > .field { min-width: 0; }
@media (max-width: 640px) { .field-row { flex-direction: column; gap: 0; } }

/* Checklist (alt gorevler) */
.chk-editor { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.chk-row { display: flex; align-items: center; gap: 8px; }
.chk-row .input { flex: 1; padding: 6px 10px; }
.chk-add { display: flex; gap: 8px; align-items: center; }
.chk-add .input { flex: 1; }
.chk-section { margin: 14px 0 4px; }
.chk-section .tprog { margin-bottom: 8px; max-width: 320px; }
.chk-view { display: flex; flex-direction: column; gap: 4px; }
.chk-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.chk-item:hover { background: var(--hover-bg); }
.chk-item.done span { text-decoration: line-through; color: var(--muted); }
.chk-badge { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 1px 7px; white-space: nowrap; }
.chk-badge.full { color: var(--success); border-color: rgba(34, 197, 94, 0.3); }

/* Görev geçmişi */
.hist-section { margin-top: 14px; }
.hist-list { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.hist-row { display: grid; grid-template-columns: 120px 120px 1fr; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line); font-size: 12px; }
.hist-row:first-child { border-top: none; }
.hist-time { color: var(--muted); }
.hist-user { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .hist-row { grid-template-columns: 1fr; gap: 2px; } }

/* Teklif formu ve listeler */
.qadd { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; }
.qadd select { flex: 1; }
.qitems { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.qitem { display: grid; grid-template-columns: minmax(160px, 3fr) 80px 110px 70px 120px 34px; gap: 6px; align-items: center; }
.qitem .input { padding: 6px 8px; }
.qitem.qhead { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.qamount { text-align: right; font-weight: 700; color: #fff; font-size: 13px; }
.qtotals { display: flex; flex-direction: column; gap: 3px; align-items: flex-end; font-size: 13px; padding-top: 18px; }
.qtotals .qgrand { font-size: 15px; color: var(--primary); border-top: 1px solid var(--line); padding-top: 4px; margin-top: 2px; }
@media (max-width: 760px) { .qitem { grid-template-columns: 1fr 1fr 1fr; } .qitem.qhead { display: none; } }
.qlist { display: flex; flex-direction: column; }
.qrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.qrow:first-child { border-top: none; }
.qrow.small { padding: 6px 4px; font-size: 12px; }
.qrow.warn { background: rgba(245, 158, 11, 0.06); border-left: 3px solid #f59e0b; padding-left: 10px; }
.qrow-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.qlist.panel { padding: 8px 20px; }

/* Raporlar */
.rep-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.rep-toolbar .input { width: auto; min-width: 150px; }
.score-pill { display: inline-block; min-width: 42px; text-align: center; padding: 2px 8px; border-radius: 12px; font-weight: 800; font-size: 12px; }
.score-hi { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.score-mid { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.score-lo { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.rate-bar { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rate-bar .bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.08); overflow: hidden; }
.rate-bar .bar > i { display: block; height: 100%; background: var(--success); border-radius: 4px; }
.rate-bar span { font-size: 12px; color: var(--muted); min-width: 34px; text-align: right; }
.week-chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding: 12px 4px 0; overflow-x: auto; }
.week-col { flex: 1; min-width: 44px; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; }
.week-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.week-bars i { display: block; width: 12px; border-radius: 3px 3px 0 0; min-height: 2px; }
.week-bars i.c-created { background: rgba(96, 165, 250, 0.7); }
.week-bars i.c-done { background: rgba(34, 197, 94, 0.85); }
.week-bars i.c-ontime { background: rgba(255, 102, 0, 0.85); }
.week-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.week-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.week-legend b { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.att-days { display: flex; flex-wrap: wrap; gap: 4px; }
.att-day { font-size: 11px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-solid); white-space: nowrap; }
.att-day.late { border-color: rgba(245, 158, 11, 0.4); color: #fbbf24; }
.att-day.missing { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }
.att-day.absent { border-style: dashed; color: var(--muted); opacity: 0.8; }
.att-day.in { border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
.data-table tr.expand-row td { background: rgba(255,255,255,0.02); }
.presence-att { font-size: 11px; white-space: nowrap; }
.followup-badge { font-size: 11px; font-weight: 700; color: #fbbf24; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); border-radius: 10px; padding: 1px 8px; margin-left: 8px; white-space: nowrap; }
.followup-badge.over { color: #f87171; background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); }
/* Alt menu (dock) z-index 1000: modallar ve bildirimler her zaman ustte kalsin */
.modal-backdrop { z-index: 1100; }
.toast-root { z-index: 1200; }
.modal-body { padding-bottom: 8px; }
.sidebar-nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.sidebar-nav::-webkit-scrollbar { display: none; }
.nav-item span:last-child { white-space: nowrap; }

/* ===================== Satış Ajanı ===================== */
.sa-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 4px 16px; font-size: 13px; }
.sa-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.sa-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sa-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.sa-company { font-size: 17px; font-weight: 800; color: #fff; }
.sa-contact { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.sa-research { display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.55; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.sa-research b { color: #fff; }
.sa-sources { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.sa-sources li { margin: 2px 0; word-break: break-all; }
.sa-summary { cursor: pointer; font-weight: 700; margin: 4px 0 8px; }
.sa-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: rgba(255,255,255,0.015); }
.sa-step-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.sa-step textarea { font-family: inherit; line-height: 1.5; }
.sa-thread { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; margin-bottom: 8px; }
.sa-msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.sa-msg.out { background: rgba(255, 102, 0, 0.05); border-left: 3px solid var(--primary); }
.sa-msg.in { background: rgba(59, 130, 246, 0.06); border-left: 3px solid #3b82f6; }
.sa-msg-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.sa-msg-body { white-space: pre-wrap; color: var(--ink); line-height: 1.5; }
.sa-meeting { display: flex; gap: 16px; align-items: center; margin: 0; }
.sa-meeting-date { width: 72px; flex-shrink: 0; text-align: center; border-radius: 12px; padding: 8px 4px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }
.sa-meeting-date.past { background: var(--panel-solid); border-color: var(--line); }
.sa-meeting-date .d { font-size: 24px; font-weight: 900; color: #fff; line-height: 1; }
.sa-meeting-date .m { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.sa-meeting-date .t { font-size: 13px; font-weight: 700; color: #4ade80; }
.sa-seq { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.sa-seq-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.sa-log { font-family: Consolas, 'Courier New', monospace; font-size: 12px; background: #000; border: 1px solid var(--line); border-radius: 10px; padding: 10px; max-height: 55vh; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.sa-log div { padding: 1px 0; }
.sa-dossier .sub-title { margin-top: 12px; }
@media (max-width: 640px) { .sa-meeting { flex-direction: column; align-items: flex-start; } .sa-head { flex-direction: column; } }

/* ====================== ASİSTAN ====================== */
.asst-fab { position: fixed; right: 22px; bottom: 100px; z-index: 900; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,102,0,0.5); background: linear-gradient(135deg, #1a0d05, #0d0d0d); color: #fff; font-weight: 700; cursor: pointer; box-shadow: 0 8px 30px rgba(255, 102, 0, 0.25); transition: transform 0.15s, box-shadow 0.15s; }
.asst-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 102, 0, 0.4); }
.asst-fab span:first-child { display: inline-flex; align-items: center; }
.asst-fab span:first-child svg { width: 18px; height: 18px; }
.asst-drawer { position: fixed; right: 22px; bottom: 156px; width: 420px; max-width: calc(100vw - 32px); height: 600px; max-height: calc(100vh - 180px); z-index: 1001; display: flex; flex-direction: column; background: var(--panel-solid); border: 1px solid var(--panel-border); border-radius: 18px; box-shadow: var(--shadow-lg, var(--shadow)); overflow: hidden; animation: asst-in 0.18s ease-out; }
@keyframes asst-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.asst-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.asst-chat { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.asst-page-panel { padding: 0; overflow: hidden; }
.asst-page-panel .asst-chat { height: clamp(360px, calc(100vh - 290px), 720px); }
.asst-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.asst-msg { display: flex; flex-direction: column; max-width: 88%; }
.asst-user { align-self: flex-end; align-items: flex-end; }
.asst-assistant { align-self: flex-start; }
.asst-bubble { padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.asst-user .asst-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.asst-assistant .asst-bubble { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.asst-bubble p { margin: 0 0 6px; } .asst-bubble p:last-child { margin: 0; }
.asst-bubble ul { margin: 4px 0 6px 18px; padding: 0; } .asst-bubble li { margin: 2px 0; }
.asst-bubble code { background: rgba(0,0,0,0.35); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.asst-typing { letter-spacing: 3px; animation: asst-blink 1s infinite; color: var(--muted); }
@keyframes asst-blink { 50% { opacity: 0.3; } }
.asst-actions, .asst-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.asst-tools { align-self: flex-start; max-width: 88%; }
.asst-confirm { display: flex; gap: 8px; align-self: flex-start; margin-top: 2px; }
.asst-composer { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.asst-input { flex: 1; resize: none; padding: 9px 11px; border: 1px solid var(--panel-border); border-radius: 10px; background: rgba(255,255,255,0.04); color: var(--ink); font: inherit; font-size: 14px; }
.asst-input:focus { outline: none; border-color: rgba(255,102,0,0.6); }
.asst-composer-btns { display: flex; flex-direction: column; gap: 6px; }
.asst-hint { padding: 0 14px 10px; min-height: 10px; }
.asst-steps { margin: 8px 0 14px 18px; padding: 0; line-height: 1.7; }
.asst-code { margin-top: 8px; }
.asst-code-num { font-size: 36px; font-weight: 800; letter-spacing: 6px; color: var(--primary); font-family: Consolas, monospace; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.asst-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.asst-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 10px; color: var(--muted); }
.asst-bar-fill { width: 100%; max-width: 28px; background: linear-gradient(180deg, var(--primary), #7a2f00); border-radius: 4px 4px 0 0; }
@media (max-width: 640px) {
  .asst-drawer { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; z-index: 1002; }
  .asst-fab { right: 14px; bottom: 96px; padding: 12px 14px; }
  .asst-fab-label { display: none; }
  .asst-msg { max-width: 94%; }
  .asst-composer { flex-wrap: wrap; }
  .asst-composer .asst-input { flex-basis: 100%; }
  .asst-composer-btns { flex-direction: row; width: 100%; justify-content: flex-end; }
}

.asst-agent-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.asst-agent-grid .panel { margin-bottom: 0; }
.asst-pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.5; background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 10px; padding: 12px; max-height: 60vh; overflow-y: auto; margin: 0; }

/* ===================== TELEFON (mobil) =====================
   Ölçülen sorunlar: yatay taşma (ticker ve alt menü), firma adının satırlara bölünmesi,
   44px altı dokunma hedefleri. Aşağısı bunları düzeltir; masaüstü görünümü değişmez. */
@media (max-width: 640px) {
  /* Hiçbir şey ekrandan taşmasın */
  html, body { overflow-x: hidden; max-width: 100%; }

  /* Borsa/hava şeridi telefonda yer kaplıyor ve 3000px taşıyordu: gizlenir */
  .ticker-wrap { display: none; }

  .topbar { height: auto; min-height: 56px; padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .topbar .crumbs { font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* "Yönetici" rozeti ve uzun ad telefonda topbar'ı taşırıyordu: yalnızca avatar kalır */
  .topbar .tag-admin, .topbar .tag-user, .user-name { display: none; }
  .user-btn { padding: 4px; }

  .main { padding-bottom: 96px; }          /* alt menünün üstünü açık bırak */
  .page, .page-head { padding-left: 12px; padding-right: 12px; }
  .page-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .page-head h1, .page-head h2 { font-size: 20px; }
  .page-head .btn-row { flex-wrap: wrap; }
  .page-head .btn, .page-head .btn-row > * { flex: 1 1 auto; min-height: 44px; }

  /* Alt menü: 16 öğe sığmıyordu; kaydırılabilir şerit olur */
  .sidebar {
    left: 8px; right: 8px; transform: none; max-width: none; width: auto;
    bottom: 8px; border-radius: 18px; padding: 6px 8px;
    overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; justify-content: flex-start;
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar-nav { flex-wrap: nowrap; gap: 4px; }
  .nav-item { flex: 0 0 auto; width: 56px; height: 48px; border-radius: 12px; padding: 4px 2px; }
  .nav-item span:last-child { display: block; font-size: 9px; line-height: 1.1; }
  .nav-icon svg { width: 18px; height: 18px; }

  /* Kartlar: iki sütun (tek sütunda sayfa çok uzuyordu) */
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .kpi-card { padding: 12px; gap: 8px; }
  .kpi-icon { font-size: 18px; }
  .kpi-value { font-size: 18px; }
  .kpi-label { font-size: 11.5px; }
  .kpi-sub { font-size: 10.5px; }

  /* Müşteri/potansiyel satırı: alt alta, firma adı tek satırda */
  .customer-list-card { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; }
  .clc-left, .clc-mid, .clc-right { flex: none; }
  .clc-name { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .clc-company { font-size: 12.5px; }
  .clc-mid { justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
  .clc-right { justify-content: stretch; }
  .clc-right .mini-btn, .clc-right a.mini-btn { flex: 1; min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 14px; }

  /* Paneller ve listeler */
  .panel { padding: 14px; border-radius: 14px; }
  .panel-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .panel-head .btn-row { width: 100%; flex-wrap: wrap; }
  .qrow { flex-direction: column; align-items: flex-start; gap: 8px; }
  .qrow-side { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-start; }
  .qrow-side .mini-btn { min-height: 40px; padding: 8px 12px; }

  /* Dokunma hedefleri: parmakla basılabilir boyut */
  .btn, .mini-btn, .icon-btn { min-height: 44px; }
  .mini-btn { padding: 10px 14px; font-size: 13px; }
  .input, select.input { min-height: 44px; font-size: 16px; }  /* 16px: iOS yakınlaştırmasını engeller */
  textarea.input { min-height: 88px; }
  .chkinline input[type=checkbox] { width: 20px; height: 20px; }

  /* Geniş tablolar yatay kaydırılır */
  .panel table, .cm-pane table { display: block; overflow-x: auto; white-space: nowrap; }

  /* Modal telefonda tam ekrana yakın */
  .modal { width: calc(100vw - 16px); max-width: none; max-height: 92vh; margin: 8px; }
  .modal-wide { width: calc(100vw - 16px); }
  .modal-body { max-height: 74vh; overflow-y: auto; }
  .modal-actions { position: sticky; bottom: 0; background: var(--panel-solid); padding-top: 10px; }
  .modal-actions .btn { flex: 1; min-height: 46px; }
  .field-row { flex-direction: column; gap: 0; }

  /* Asistan balonu içeriğin üstüne binmesin */
  .asst-fab { bottom: 96px !important; right: 12px !important; }

  /* Müşteri kartı sekmeleri kaydırılabilir */
  .cm-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .cm-tabs::-webkit-scrollbar { display: none; }
}

/* Çok dar telefonlar */
@media (max-width: 380px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .nav-item { width: 50px; }
}

/* Telefonu yan çevirince alt menü daha kısa olsun */
@media (max-width: 900px) and (orientation: landscape) {
  .sidebar { bottom: 4px; padding: 4px 8px; }
  .nav-item { height: 40px; }
  .nav-item span:last-child { display: none; }
}

/* ---------- Çalışan talepleri: uzaktan çalışma, sağlık raporu, şifre ---------- */
.nav-icon { position: relative; }
.nav-badge { position: absolute; top: -7px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; font-style: normal; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.tab-count { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

.notice { padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; margin-bottom: 14px; }
.notice-warn { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.35); color: #fcd34d; }
.notice-info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #93c5fd; }
.notice-ok { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #6ee7b7; }
.notice a { color: inherit; text-decoration: underline; }

.req-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; margin-bottom: 20px; }
.req-action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, transform .15s; }
.req-action:hover { border-color: var(--primary); transform: translateY(-2px); }
.req-action-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--primary); }
.req-action-icon svg { width: 26px; height: 26px; }
.bell-icon { display: inline-flex; align-items: center; }
.bell-icon svg { width: 20px; height: 20px; }
.req-action b { display: block; font-size: 15px; color: #fff; }
.req-action small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-card { border: 1px solid var(--panel-border); border-radius: 12px; background: rgba(30, 30, 30, 0.4); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.req-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.req-card-head b { color: #fff; font-size: 15px; }
.req-note { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }
.req-warn { font-size: 12px; color: #fbbf24; }
.req-decide { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.req-decide .input { flex: 1 1 220px; min-width: 0; }

.hr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hr-card { border: 1px solid var(--panel-border); border-radius: 14px; background: rgba(30, 30, 30, 0.4); overflow: hidden; display: flex; flex-direction: column; }
.hr-card.unseen { border-color: rgba(255, 102, 0, 0.55); }
.hr-thumb { height: 170px; background: #111; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.hr-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hr-pdf { font-size: 48px; }
.hr-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.report-img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 8px; }

.upload-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 20px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; color: var(--muted); transition: border-color .15s, color .15s; }
.upload-drop:hover, .upload-drop:focus, .upload-drop.drag { border-color: var(--primary); color: var(--ink); outline: none; }
.upload-drop b { color: #fff; }
.upload-preview { max-height: 220px; max-width: 100%; border-radius: 10px; }
.upl-progress { height: 6px; margin-top: 12px; background: var(--line); border-radius: 3px; overflow: hidden; }
.upl-progress > div { height: 100%; width: 0; background: var(--primary); transition: width .2s; }

.secret-box { font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: 18px; letter-spacing: 1px; padding: 12px 14px; border-radius: 10px; background: #111; border: 1px solid var(--line); color: #fff; user-select: all; overflow-wrap: anywhere; }

.att-day.remote { border-color: rgba(96, 165, 250, 0.45); color: #93c5fd; }
.att-day.sick { border-color: rgba(167, 139, 250, 0.45); color: #c4b5fd; }

@media (max-width: 640px) {
  .req-decide .btn { flex: 1 1 40%; min-height: 44px; }
  .hr-thumb { height: 200px; }
  .nav-badge { top: -4px; right: -6px; }
}
.data-table .chip { white-space: nowrap; display: inline-block; }
/* Talep kartlarında tarih aralığı telefonda kesilmesin */
.req-row .clc-name { white-space: normal; overflow: visible; }

/* ---- Muhasebe: ikonlu düğmeler, TL / Euro gösterimi, ödeme durumu ---- */
.ikonlu { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.ikonlu .ikonlu-ikon { display: inline-flex; }
.ikonlu .ikonlu-ikon svg { width: 14px; height: 14px; }
.ikonlu.yalniz-ikon { padding-left: 7px; padding-right: 7px; }
.mini-btn.odendi-btn { color: var(--success); border-color: rgba(34, 197, 94, 0.35); }
.mini-btn.odendi-btn:hover { background: rgba(34, 197, 94, 0.12); }
.islem-hucre { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.panel-head .btn-row { flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.muh-baslik .panel-head { flex-wrap: wrap; gap: 10px; }
@media (min-width: 901px) { .muh-sekmeler { flex-wrap: wrap; } }

.ay-secici { display: inline-flex; align-items: center; gap: 6px; }
.ay-secici .ay-etiket { min-width: 110px; text-align: center; font-weight: 700; color: #fff; }
.secenek-anahtari { display: inline-flex; border: 1px solid var(--panel-border); border-radius: 10px; overflow: hidden; }
.secenek-anahtari button { background: transparent; border: none; color: var(--muted); padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.secenek-anahtari button:hover { background: var(--hover-bg); }
.secenek-anahtari button.aktif { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }

.kur-notu { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.kur-notu.uyari { color: #fcd34d; }

.iki-para { display: flex; flex-direction: column; line-height: 1.25; }
.iki-para .ip-tl { font-weight: 800; color: #fff; font-size: 16px; white-space: nowrap; }
.iki-para .ip-eur { font-size: 13px; color: #93c5fd; font-weight: 700; white-space: nowrap; }
.iki-para.basari .ip-tl { color: #86efac; }
.iki-para.uyari .ip-tl { color: #fcd34d; }

.para-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.para-karti .kpi-label { margin-bottom: 4px; }
.para-karti .kpi-eur { font-size: 14px; font-weight: 700; color: #93c5fd; margin-top: 2px; white-space: nowrap; }
.para-karti .kpi-sub { white-space: normal; }

.ozet-seridi { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-end; padding: 10px 0 4px; border-top: 1px solid var(--line); }

.muh-tablo td.sayi, .muh-tablo th.sayi { text-align: right; white-space: nowrap; }
.muh-tablo tfoot td { font-weight: 800; color: #fff; border-top: 1px solid var(--line); background: var(--hover-bg); }
.muh-tablo .satir-ad { font-weight: 600; color: #fff; }
.muh-tablo tr.satir-gecikti { background: rgba(239, 68, 68, 0.06); }
.muh-tablo tr.satir-bugun { background: rgba(245, 158, 11, 0.07); }
.muh-tablo tr.satir-buay td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.muh-tablo tr.satir-plan td { color: var(--muted); }
.durum-hucre { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.guclu { font-weight: 700; }
.tehlike { color: #f87171; }
.basari { color: #4ade80; }

.mini-bar { height: 8px; background: var(--hover-bg); border-radius: 4px; overflow: hidden; min-width: 80px; }
.mini-bar-dolu { height: 100%; border-radius: 4px; background: var(--primary); transition: width .4s ease; }
.mini-bar-dolu.gelir { background: #22c55e; }
.mini-bar-dolu.gider { background: #ef4444; }
.cift-bar { display: flex; flex-direction: column; gap: 3px; min-width: 120px; }
.bar-hucre { width: 22%; }
.bar-aciklama { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bar-aciklama .nokta { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-aciklama .nokta.gelir { background: #22c55e; }
.bar-aciklama .nokta.gider { background: #ef4444; margin-left: 8px; }
.kat-liste { display: flex; flex-direction: column; gap: 12px; }
.kat-satir { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin-bottom: 4px; flex-wrap: wrap; }

/* Sabit gider satırları */
.gider-satiri { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.gider-satiri.gecikti { background: rgba(239, 68, 68, 0.05); }
.gider-satiri.bugun { background: rgba(245, 158, 11, 0.06); }
.gider-satiri.pasif { opacity: 0.55; }
.gider-ikon { width: 32px; height: 32px; border-radius: 50%; background: rgba(59, 130, 246, 0.12); color: #93c5fd; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gider-bilgi { flex: 1 1 220px; min-width: 0; }
.gider-ad { font-weight: 700; color: #fff; }
.gider-tutar { text-align: right; min-width: 120px; }
.gider-durum { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-width: 200px; }

/* Personel kartları */
.personel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.personel-karti { padding: 16px; margin-bottom: 0; }
.personel-karti.pasif { opacity: 0.6; }
.personel-bas { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.personel-ad { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 6px; color: #fff; }
.personel-toplam { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.personel-odeme { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.kalem-listesi { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.kalem-satiri { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--hover-bg); padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.kalem-sag { display: flex; align-items: center; gap: 6px; white-space: nowrap; }

@media (max-width: 640px) {
  .gider-tutar { text-align: left; min-width: 0; }
  .gider-durum { min-width: 0; }
  .ay-secici .ay-etiket { min-width: 90px; }
  .bar-hucre { display: none; }
}
