:root {
  --jung-sidebar: #111315;
  --jung-sidebar-hover: #1E2226;
  --jung-sidebar-border: #22262B;
  --jung-bg: #F5F6F8;
  --jung-card: #FFFFFF;
  --jung-border: #E5E7EB;
  --jung-text: #111827;
  --jung-text-muted: #6B7280;
  --jung-primary: #1F2937;
  --jung-primary-hover: #111827;
  --jung-success-bg: #DCFCE7;
  --jung-success-text: #15803D;
  --jung-warning-bg: #FEF3C7;
  --jung-warning-text: #B45309;
  --jung-danger-bg: #FEE2E2;
  --jung-danger-text: #B91C1C;
  --jung-info-bg: #DBEAFE;
  --jung-info-text: #1D4ED8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--jung-bg);
  color: var(--jung-text);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.app-wrapper { display: flex; min-height: 100vh; }

.app-sidebar {
  width: 240px;
  background-color: var(--jung-sidebar);
  color: #FFFFFF;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--jung-sidebar-border);
}

.sidebar-brand {
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--jung-sidebar-border);
}

.sidebar-brand h1 { font-size: 20px; font-weight: 700; color: #FFFFFF; }
.sidebar-brand span { color: #9CA3AF; font-size: 11px; margin-left: 8px; text-transform: uppercase; letter-spacing: 1px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #2D333B; border-radius: 4px; }

.nav-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #9CA3AF;
  letter-spacing: 0.8px;
  padding: 8px 12px 4px 12px;
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: #D1D5DB;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13.5px;
  transition: all 0.15s ease;
  margin-bottom: 2px;
}

.nav-item:hover { background-color: var(--jung-sidebar-hover); color: #FFFFFF; }
.nav-item.active { background-color: #1F2937; color: #FFFFFF; font-weight: 600; border-left: 3px solid #3B82F6; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.app-main { flex: 1; min-width: 0; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }

.app-topbar {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--jung-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title { font-size: 18px; font-weight: 600; color: var(--jung-text); display: flex; align-items: center; gap: 12px; }
.topbar-search { position: relative; width: 320px; }
.topbar-search input {
  width: 100%; height: 38px;
  background-color: var(--jung-bg);
  border: 1px solid var(--jung-border);
  border-radius: 8px;
  padding: 0 14px 0 36px;
  font-size: 13px;
  color: var(--jung-text);
  outline: none;
}
.topbar-search input:focus { border-color: #3B82F6; background-color: #FFFFFF; }
.topbar-search svg { position: absolute; left: 12px; top: 11px; width: 16px; height: 16px; color: var(--jung-text-muted); }

.topbar-actions { display: flex; align-items: center; gap: 16px; }
.topbar-icon-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  border: 1px solid var(--jung-border);
  background-color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  color: var(--jung-text);
  cursor: pointer;
  position: relative;
}
.topbar-icon-btn:hover { background-color: var(--jung-bg); }
.notification-badge {
  position: absolute; top: -4px; right: -4px;
  background-color: var(--jung-danger-text);
  color: #FFFFFF; font-size: 10px; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.user-profile:hover { background-color: var(--jung-bg); }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background-color: var(--jung-primary); color: #FFFFFF;
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 13px; color: var(--jung-text); }
.user-role { font-size: 11px; color: var(--jung-text-muted); }

.app-content { flex: 1; padding: 32px; }

.jung-card {
  background-color: var(--jung-card);
  border: 1px solid var(--jung-border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 24px;
}
.jung-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.jung-card-title { font-size: 16px; font-weight: 600; color: var(--jung-text); }

.jung-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.badge-success { background-color: var(--jung-success-bg); color: var(--jung-success-text); }
.badge-warning { background-color: var(--jung-warning-bg); color: var(--jung-warning-text); }
.badge-danger { background-color: var(--jung-danger-bg); color: var(--jung-danger-text); }
.badge-info { background-color: var(--jung-info-bg); color: var(--jung-info-text); }
.badge-neutral { background-color: #F3F4F6; color: #374151; }

.empty-state { text-align: center; padding: 48px 24px; color: var(--jung-text-muted); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 16px; color: #9CA3AF; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--jung-text); margin-bottom: 8px; }
.empty-state p { font-size: 13px; margin-bottom: 20px; }

h1, h2, h3, h4 { line-height: 1.3; }
a { color: var(--jung-info-text); text-decoration: none; }
a:hover { text-decoration: underline; }
.nav-item:hover, .nav-item:focus { text-decoration: none; }
.text-muted { color: var(--jung-text-muted); }
.text-end { text-align: right; }
.nowrap { white-space: nowrap; }
button.topbar-icon-btn { font: inherit; }
.topbar-icon-btn svg { width: 18px; height: 18px; }

/* Sayfa başlığı ve özet kutuları */
.page-header { margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-grid .jung-card { margin-bottom: 0; padding: 18px 20px; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--jung-text-muted); font-size: 13px; }
.stat-label svg { width: 18px; height: 18px; }
.stat-value { font-size: 26px; font-weight: 700; margin-top: 8px; }

/* Tablolar */
.table-wrap { overflow-x: auto; }
.jung-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jung-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--jung-text-muted); padding: 10px 12px; border-bottom: 1px solid var(--jung-border); white-space: nowrap; }
.jung-table th.text-end, .jung-table td.text-end { text-align: right; }
.jung-table td { padding: 12px; border-bottom: 1px solid var(--jung-border); vertical-align: middle; }
.jung-table tbody tr:hover { background-color: #F9FAFB; }
.jung-table tbody tr:last-child td { border-bottom: 0; }

/* Butonlar */
.jung-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--jung-primary); background: var(--jung-primary); color: #FFFFFF; font: 500 13px 'Inter', sans-serif; cursor: pointer; }
.jung-btn:hover { background: var(--jung-primary-hover); }
.jung-btn-secondary { background: #FFFFFF; color: var(--jung-text); border-color: var(--jung-border); }
.jung-btn-secondary:hover { background: var(--jung-bg); }

/* Toast bildirimleri */
.toast-container { position: fixed; right: 24px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.jung-toast { min-width: 280px; max-width: 380px; background: var(--jung-card); border: 1px solid var(--jung-border); border-left: 4px solid var(--jung-info-text); border-radius: 10px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(17, 19, 21, 0.12); font-size: 13px; }
.jung-toast.success { border-left-color: var(--jung-success-text); }
.jung-toast.warning { border-left-color: var(--jung-warning-text); }
.jung-toast.danger { border-left-color: var(--jung-danger-text); }

@media (max-width: 960px) { .topbar-search, .user-info { display: none; } .app-content { padding: 20px; } }

/* Faz 2: sayfa araç çubuğu, formlar, sekmeler, detay görünümü */
.page-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-toolbar h2 { font-size: 22px; font-weight: 700; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
a.jung-btn { color: #FFFFFF; text-decoration: none; }
a.jung-btn-secondary { color: var(--jung-text); }
.jung-btn svg { width: 16px; height: 16px; }
.jung-btn-danger { background: #FFFFFF; border-color: var(--jung-border); color: var(--jung-danger-text); }
.jung-btn-danger:hover { background: var(--jung-danger-bg); }

.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.filter-bar .field { min-width: 180px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; }
.field input, .field select, .field textarea { border: 1px solid var(--jung-border); border-radius: 8px; padding: 8px 12px; min-height: 38px; font: 400 13.5px 'Inter', sans-serif; color: var(--jung-text); background: #FFFFFF; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #3B82F6; outline-offset: -1px; }
.field .input-validation-error { border-color: var(--jung-danger-text); }
.field-validation-error, .validation-summary-errors { color: var(--jung-danger-text); font-size: 12px; }
.validation-summary-errors { margin-bottom: 16px; }
.validation-summary-errors ul { list-style: none; }
.validation-summary-valid { display: none; }
.form-actions { display: flex; gap: 8px; margin-top: 20px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--jung-border); margin-bottom: 20px; }
.tabs a { padding: 10px 14px; font-weight: 500; color: var(--jung-text-muted); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--jung-text); text-decoration: none; }
.tabs a.active { color: var(--jung-text); border-bottom-color: var(--jung-primary); font-weight: 600; }

.detail-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.detail-list dt { font-size: 12px; color: var(--jung-text-muted); }
.detail-list dd { font-weight: 500; overflow-wrap: anywhere; }
.detail-list dd.pre { white-space: pre-line; }
.detail-list .full { grid-column: 1 / -1; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 24px; margin-bottom: 24px; }
.two-col .jung-card { margin-bottom: 0; min-width: 0; }
.chart-box { position: relative; height: 260px; }
details.chart-data { margin-top: 12px; font-size: 13px; }
details.chart-data summary { cursor: pointer; color: var(--jung-text-muted); }
.note-item { border-bottom: 1px solid var(--jung-border); padding: 14px 0; }
.note-item p { white-space: pre-line; }
.stat-value small { display: block; font-size: 13px; font-weight: 500; color: var(--jung-text-muted); }

@media (max-width: 1100px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Dashboard: 6 KPI kartı 3x2 */
.stat-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .stat-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Faz 3: aşama göstergesi, kanban */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; align-items: start; }
.kanban-col { background: #EDEFF2; border-radius: 10px; padding: 10px; }
.kanban-col h3 { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.kanban-col .jung-card { padding: 12px; margin-bottom: 8px; font-size: 13px; }
.inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 16px; }
.inline-form .field { min-width: 200px; flex: 1; }

/* Cila: tipografi, boşluk, tablo, buton, form, badge. Yazdırma kurallarından önce durur. */
:root { --jung-focus: #3B82F6; }
body { -webkit-font-smoothing: antialiased; }
.text-end, .totals, .stat-value, .quote-doc .jung-table td.text-end { font-variant-numeric: tabular-nums; }
.app-content { padding: 32px 40px 48px; max-width: 1480px; width: 100%; }
.jung-card { padding: 24px 28px; }
.jung-card-header { gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.jung-card-title { font-size: 15px; letter-spacing: -0.1px; }
.page-toolbar, .page-header { margin-bottom: 28px; }
.page-toolbar h2, .page-header h2 { font-size: 24px; letter-spacing: -0.4px; margin-bottom: 4px; }
.page-toolbar p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--jung-text-muted); }
.back-link:hover { color: var(--jung-text); text-decoration: none; }
.back-link svg { width: 15px; height: 15px; }

/* Özet göstergeler */
.stat-grid .jung-card { padding: 20px 22px; }
.stat-label { font-size: 12.5px; font-weight: 500; }
.stat-value { font-size: 28px; letter-spacing: -0.6px; line-height: 1.2; margin-top: 10px; }
.stat-value small { margin-top: 6px; font-size: 12.5px; font-weight: 400; letter-spacing: 0; }
.stat-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.cols-4 .stat-value { font-size: 22px; }
.stat-grid .jung-card.highlight { background: var(--jung-sidebar); border-color: var(--jung-sidebar); color: #FFFFFF; }
.jung-card.highlight .stat-label, .jung-card.highlight .stat-value small { color: #9CA3AF; }
.jung-card.highlight .stat-value { font-size: 26px; }
@media (max-width: 1200px) { .stat-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tablolar */
.jung-table th { padding: 8px 14px 10px; }
.jung-table td { padding: 13px 14px; }
.jung-table tbody tr { transition: background-color 0.12s ease; }
.jung-table tbody tr:has(a.row-link) { cursor: pointer; }
.jung-table tbody tr:has(a.row-link):hover { background-color: #F3F4F6; }
.jung-table a { color: var(--jung-text); }
.jung-table a:hover { color: var(--jung-info-text); }
.jung-table a.row-link { font-weight: 600; }
.jung-table tr:hover a.row-link { color: var(--jung-info-text); }
.clip { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip.wide { max-width: 340px; }
.sub { display: block; margin-top: 2px; font-size: 12px; color: var(--jung-text-muted); }
.jung-table .text-end { white-space: nowrap; }

/* Butonlar ve odak */
.jung-btn { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; white-space: nowrap; }
.jung-btn-secondary { border-color: #D1D5DB; }
.jung-btn-ghost, a.jung-btn-ghost { background: transparent; border-color: transparent; color: var(--jung-text); }
.jung-btn-ghost:hover { background: #E9EBEF; }
.jung-btn-danger { border-color: transparent; background: transparent; }
:where(a, button, input, select, textarea, summary):focus-visible, .field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--jung-focus); outline-offset: 2px; }
.nav-item.active { background-color: #262C34; }

/* Sekmeler */
.tabs { gap: 2px; margin-bottom: 24px; }
.tabs a { transition: color 0.15s ease, border-color 0.15s ease; }
.tabs a:hover { border-bottom-color: #D1D5DB; }
.tabs a.active, .tabs a.active:hover { border-bottom-color: var(--jung-sidebar); }

/* Durum etiketleri: tek biçim, yumuşak tonlar */
.jung-badge { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.badge-success { background: #ECFDF3; }
.badge-warning { background: #FFF8EB; }
.badge-danger { background: #FEF2F2; }
.badge-info { background: #EFF6FF; }

/* Formlar: iki sütun */
form.jung-card, #quote-form { max-width: 980px; }
form.jung-card.filter-bar { max-width: none; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-section { grid-column: 1 / -1; font-size: 13px; font-weight: 600; padding-bottom: 8px; border-bottom: 1px solid var(--jung-border); }
.form-section:not(:first-child) { margin-top: 14px; }
.field:has(input[data-val-required]:not([type="hidden"]), textarea[data-val-required], select[data-val-required] option[value=""]) > label::after { content: " *"; color: var(--jung-danger-text); }
.field-validation-error { line-height: 1.3; }
.form-actions { margin-top: 28px; }
.filter-bar .field { flex: 1; min-width: 150px; max-width: 260px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Aşama göstergesi */
.track-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.track-head span { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--jung-text-muted); }
.stepper { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); list-style: none; margin-bottom: 28px; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 4px; text-align: center; font-size: 12px; color: var(--jung-text-muted); }
.stepper li:not(:first-child)::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--jung-border); }
.stepper li.done:not(:first-child)::before, .stepper li.current:not(:first-child)::before { background: var(--jung-primary); }
.stepper .dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #FFFFFF; border: 2px solid var(--jung-border); font-size: 12px; font-weight: 600; }
.stepper li.done { color: var(--jung-text); }
.stepper li.done .dot { background: var(--jung-primary); border-color: var(--jung-primary); color: #FFFFFF; }
.stepper li.current { color: var(--jung-text); font-weight: 600; }
.stepper li.current .dot { border-color: var(--jung-info-text); color: var(--jung-info-text); box-shadow: 0 0 0 4px var(--jung-info-bg); }
.stage-update summary { list-style: none; width: fit-content; }
.stage-update summary::-webkit-details-marker { display: none; }
@media (max-width: 960px) { .stepper { grid-auto-flow: row; gap: 8px; } .stepper li { flex-direction: row; text-align: left; } .stepper li::before { display: none; } }

/* Faz 4: teklif editörü */
.items-table input, .items-table select { border: 1px solid var(--jung-border); border-radius: 8px; padding: 6px 8px; min-height: 36px; width: 100%; font: 400 13px 'Inter', sans-serif; background: #FFFFFF; }
.items-table td { padding: 8px 6px; vertical-align: top; }
.items-table .col-product { min-width: 260px; }
.items-table .col-num { width: 130px; }
.items-table .col-num input { text-align: right; }
.row-warning { display: block; color: var(--jung-warning-text); font-size: 12px; margin-top: 4px; }
.totals { margin: 16px 0 0 auto; max-width: 360px; width: 100%; }
.totals div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--jung-border); }
.totals div.grand { font-weight: 700; font-size: 20px; border-bottom: 0; border-top: 2px solid var(--jung-sidebar); padding-top: 12px; margin-top: 4px; }

/* Teklif dokümanı */
.quote-doc { max-width: 940px; margin-left: auto; margin-right: auto; padding: 44px 48px; }
.letterhead { display: flex; justify-content: space-between; gap: 16px; border-bottom: 3px solid var(--jung-sidebar); padding-bottom: 16px; margin-bottom: 20px; }
.letterhead .brand { font-size: 32px; font-weight: 700; letter-spacing: 2px; }
.quote-doc .detail-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.company-lines { white-space: pre-line; font-size: 12px; margin-top: 6px; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.signatures div { border-top: 1px solid var(--jung-text); padding-top: 8px; font-size: 12.5px; }

@page { size: A4; margin: 14mm; }
@media print {
  .app-sidebar, .app-topbar, .toast-container, .no-print { display: none !important; }
  body { background: #FFFFFF; font-size: 12px; }
  .app-main { margin-left: 0; min-height: 0; }
  .app-wrapper { display: block; min-height: 0; }
  .app-content { padding: 0; max-width: none; }
  .quote-doc { max-width: none; border: 0; box-shadow: none; padding: 0; margin: 0; }
  .table-wrap { overflow: visible; }
  .jung-table th, .jung-table td { padding: 6px; }
  .totals div.grand { font-size: 15px; }
  .jung-table tr, .totals, .signatures { break-inside: avoid; }
}

/* Faz 5: katılımcı listesi, takvim */
.field .check-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--jung-border); border-radius: 8px; padding: 6px 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 16px; }
.field .check-list label { display: flex; align-items: center; gap: 8px; font-weight: 400; padding: 4px 0; }
.field .check-list label[hidden] { display: none; }
.field .check-list input { width: auto; min-height: 0; flex-shrink: 0; }
.mini-select { border: 1px solid var(--jung-border); border-radius: 8px; height: 36px; padding: 0 8px; font: 400 13px 'Inter', sans-serif; background: #FFFFFF; }
.cal-toolbar { flex-wrap: wrap; gap: 12px; }
.cal-toolbar h3 { margin-left: 8px; text-transform: capitalize; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 1px; background: var(--jung-border); border: 1px solid var(--jung-border); }
.cal-head { background: #F9FAFB; padding: 8px; font-size: 11px; font-weight: 600; color: var(--jung-text-muted); text-transform: uppercase; }
.cal-day { background: #FFFFFF; min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-grid.week .cal-day { min-height: 320px; }
.cal-day.outside { background: #F9FAFB; }
.cal-day.outside .cal-date { color: #9CA3AF; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--jung-info-text); }
.cal-date { font-size: 12px; font-weight: 600; }
.cal-event { display: block; font-size: 11.5px; line-height: 1.35; padding: 3px 6px; border-radius: 4px; border-left: 3px solid; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-grid.week .cal-event { white-space: normal; overflow-wrap: anywhere; }
.ev-visit { background: var(--jung-info-bg); color: var(--jung-info-text); border-color: var(--jung-info-text); }
.ev-activity { background: #F3F4F6; color: #374151; border-color: #6B7280; }
.ev-next { background: #FFFFFF; color: var(--jung-info-text); border-color: var(--jung-info-text); border-style: dashed; border-width: 1px 1px 1px 3px; }
.ev-task { background: var(--jung-warning-bg); color: var(--jung-warning-text); border-color: var(--jung-warning-text); }
.ev-done { background: var(--jung-success-bg); color: var(--jung-success-text); border-color: var(--jung-success-text); }
.cal-more { background: none; border: 0; padding: 0; text-align: left; font: 500 11.5px 'Inter', sans-serif; color: var(--jung-info-text); cursor: pointer; }
.chart-title { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.report-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 24px; align-items: start; }
.report-split > div { min-width: 0; }
@media (max-width: 1100px) { .report-split { grid-template-columns: minmax(0, 1fr); } }

/* Üst bar: arama önerileri ve bildirim menüsü */
.dropdown-host { position: relative; }
.dropdown-panel { position: absolute; top: calc(100% + 6px); background: #FFFFFF; border: 1px solid var(--jung-border); border-radius: 10px; box-shadow: 0 8px 24px rgba(17, 19, 21, 0.12); max-height: calc(100vh - 90px); overflow-y: auto; z-index: 95; padding: 6px 0; }
.dropdown-panel[hidden] { display: none; }
.search-panel { left: 0; right: 0; }
.notify-panel { right: 0; width: 340px; }
.dropdown-title { padding: 8px 14px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; color: var(--jung-text-muted); }
.dropdown-item { display: block; padding: 6px 14px; color: var(--jung-text); font-size: 13px; }
.dropdown-item strong { display: block; font-weight: 500; }
.dropdown-item small { display: block; color: var(--jung-text-muted); font-size: 12px; }
.dropdown-item small.overdue { color: var(--jung-danger-text); }
.dropdown-item:hover, .dropdown-item.active { background: var(--jung-bg); text-decoration: none; }
.dropdown-empty { padding: 6px 14px; font-size: 13px; color: var(--jung-text-muted); }
.dropdown-more { display: block; padding: 6px 14px 10px; font-size: 12.5px; border-bottom: 1px solid var(--jung-border); }
.dropdown-more:last-child { border-bottom: 0; padding-bottom: 4px; }
