/* Luumtech client/public theme overrides
   Small, focused patch file to avoid editing the very large base stylesheet. */

/* Dark mode: do not force background on generic mtop15 blocks. */
html[data-theme="dark"] .mtop15 {
  background: transparent !important;
  background-color: transparent !important;
}

/* Public surveys: dark mode surface + readable form controls. */
html[data-theme="dark"] body.customers .survey {
  background: var(--lg-bg-secondary, #111113) !important;
  border-color: var(--lg-border, rgba(255, 255, 255, 0.08)) !important;
  color: var(--lg-text-primary, #f1f1f1) !important;
  box-shadow: var(--lg-shadow-md, 0 1px 3px rgba(0, 0, 0, 0.12)) !important;
}

html[data-theme="dark"] body.customers .survey h2,
html[data-theme="dark"] body.customers .survey p,
html[data-theme="dark"] body.customers .survey label,
html[data-theme="dark"] body.customers .survey .control-label {
  color: var(--lg-text-primary, #f1f1f1) !important;
}

html[data-theme="dark"] body.customers .survey hr {
  border-color: var(--lg-border, rgba(255, 255, 255, 0.08)) !important;
}

html[data-theme="dark"] body.customers .survey #company-logo {
  background: var(--lg-bg-tertiary, #1a1a1e) !important;
  border: 1px solid var(--lg-border, rgba(255, 255, 255, 0.08)) !important;
}

html[data-theme="dark"] body.customers .survey .form-control,
html[data-theme="dark"] body.customers .survey input[type="text"],
html[data-theme="dark"] body.customers .survey input[type="email"],
html[data-theme="dark"] body.customers .survey textarea {
  background: var(--lg-bg-tertiary, #1a1a1e) !important;
  color: var(--lg-text-primary, #f1f1f1) !important;
  border-color: var(--lg-border-light, rgba(255, 255, 255, 0.12)) !important;
}

html[data-theme="dark"] body.customers .survey .checkbox-default label,
html[data-theme="dark"] body.customers .survey .radio-default label {
  color: var(--lg-text-primary, #f1f1f1) !important;
}

html[data-theme="dark"] body.customers .survey .btn.btn-success {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
}

/* Navbar: keep only real active item highlighted on KB pages. */
body.customers .navbar-glass .navbar-nav>li.customers-nav-item-login:not(.active)>a {
  background: transparent !important;
  color: var(--lg-text-secondary, #94a3b8) !important;
  border: 1px solid var(--lg-border-light, rgba(148, 163, 184, 0.35)) !important;
  box-shadow: none !important;
}

body.customers .navbar-glass .navbar-nav>li.customers-nav-item-login:not(.active)>a:hover,
body.customers .navbar-glass .navbar-nav>li.customers-nav-item-login:not(.active)>a:focus {
  background: var(--lg-glass-bg-light, rgba(255, 255, 255, 0.08)) !important;
  color: var(--lg-text-primary, #e2e8f0) !important;
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.42) !important;
}

body.customers .navbar-glass .navbar-nav>li.customers-nav-item-login.active>a {
  background: var(--lg-accent, #3b82f6) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

/* Knowledge base hero search panel: theme-consistent premium card. */
body.customers .kb-search-hero .kb-search-shell {
  align-items: stretch !important;
}

body.customers .kb-search-hero .kb-search-panel {
  position: relative !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28) !important;
  padding: 16px !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-form {
  max-width: 100% !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-input-wrapper {
  height: 54px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background: rgba(255, 255, 255, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-input-icon {
  left: 16px !important;
  width: 18px !important;
  height: 18px !important;
  opacity: 0.92 !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-field {
  height: 52px !important;
  padding-left: 46px !important;
  padding-right: 58px !important;
  font-size: 14px !important;
  color: #ffffff !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-field::placeholder {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-btn {
  width: 40px !important;
  height: 40px !important;
  margin: 6px !important;
  border-radius: 11px !important;
  border: 1px solid rgba(255, 255, 255, 0.38) !important;
  background: rgba(59, 130, 246, 0.82) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 14px rgba(30, 64, 175, 0.35) !important;
}

body.customers .kb-search-hero .kb-search-panel .kb-search-btn:hover {
  background: rgba(37, 99, 235, 0.96) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}

body.customers .kb-search-hero .kb-search-suggestions {
  border-radius: 12px !important;
  border: 1px solid rgba(148, 163, 184, 0.32) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.35) !important;
}

html[data-theme="light"] body.customers .kb-search-hero .kb-search-panel {
  border-color: rgba(15, 23, 42, 0.16) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.82)) !important;
}

html[data-theme="light"] body.customers .kb-search-hero .kb-search-panel .kb-search-input-wrapper {
  border-color: rgba(148, 163, 184, 0.35) !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

html[data-theme="light"] body.customers .kb-search-hero .kb-search-panel .kb-search-field {
  color: #0f172a !important;
}

html[data-theme="light"] body.customers .kb-search-hero .kb-search-panel .kb-search-field::placeholder {
  color: rgba(30, 41, 59, 0.58) !important;
}

/* Kanban columns: let column size to content but cap scroll area at viewport, scroll inside when needed. */
body.kan-ban-body .kan-ban-col-wrapper {
  display: block !important;
}

body.kan-ban-body .kan-ban-col-wrapper > .panel_s,
body.kan-ban-body .kan-ban-col-wrapper > .border-right {
  display: block !important;
  margin-bottom: 0 !important;
}

body.kan-ban-body .kan-ban-content-wrapper {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 220px) !important;
  min-height: 0 !important;
  scrollbar-width: thin !important;
  scrollbar-color: #64748b #1f2937 !important;
  scrollbar-gutter: stable !important;
}

body.kan-ban-body .kan-ban-content {
  min-height: 0 !important;
  height: auto !important;
}

body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar {
  width: 10px !important;
  height: 10px !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  display: block !important;
}

body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-track {
  background: transparent !important;
  border-radius: 6px !important;
}

body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.55) !important;
  border-radius: 6px !important;
  border: 2px solid transparent !important;
  background-clip: padding-box !important;
  min-height: 40px !important;
}

body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(100, 116, 139, 0.85) !important;
}

html[data-theme="light"] body.kan-ban-body .kan-ban-content-wrapper {
  scrollbar-color: rgba(100, 116, 139, 0.55) transparent !important;
}

html[data-theme="light"] body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-track {
  background: transparent !important;
}

html[data-theme="light"] body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.45) !important;
}

html[data-theme="light"] body.kan-ban-body .kan-ban-content-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(71, 85, 105, 0.75) !important;
}

/* ============================================================
   Client PROJECT page — admin-style card redesign (Part B)
   Uses the shared --lg-* design tokens so it matches the admin
   panel in both light and dark modes.
   ============================================================ */

/* Top two-column grid: info card + status/progress stack */
body.customers .lp-overview-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 991px) {
  body.customers .lp-overview-grid { grid-template-columns: 1fr; }
}

/* Generic card */
body.customers .lp-card {
  background: var(--lg-bg-secondary, #ffffff);
  border: 1px solid var(--lg-border, rgba(148, 163, 184, 0.22));
  border-radius: var(--lg-radius-lg, 14px);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.customers .lp-card--description { margin-top: 16px; }
body.customers .lp-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--lg-text-primary, #0f172a);
  border-bottom: 1px solid var(--lg-border, rgba(148, 163, 184, 0.16));
  background: var(--lg-bg-tertiary, rgba(148, 163, 184, 0.05));
}
body.customers .lp-card__head i { color: var(--lg-accent, #3b82f6); font-size: 15px; }
body.customers .lp-card__body { padding: 6px 18px 14px; }

/* Key / value info list */
body.customers .lp-info__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lg-border-light, rgba(148, 163, 184, 0.12));
}
body.customers .lp-info__row:last-child { border-bottom: 0; }
body.customers .lp-info__label { color: var(--lg-text-muted, #64748b); font-size: 13px; font-weight: 500; }
body.customers .lp-info__value { color: var(--lg-text-primary, #0f172a); font-size: 13.5px; font-weight: 600; text-align: right; }
body.customers .lp-badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

/* Status / progress stat cards */
body.customers .lp-stats { display: flex; flex-direction: column; gap: 16px; }
body.customers .lp-stat {
  background: var(--lg-bg-secondary, #ffffff);
  border: 1px solid var(--lg-border, rgba(148, 163, 184, 0.22));
  border-radius: var(--lg-radius-lg, 14px);
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.customers .lp-stat__top { display: flex; justify-content: space-between; align-items: center; }
body.customers .lp-stat__title { color: var(--lg-text-muted, #64748b); font-size: 13px; font-weight: 600; }
body.customers .lp-stat__top i { color: var(--lg-text-muted, #94a3b8); }
body.customers .lp-stat__top i.text-success { color: #22c55e; }
body.customers .lp-stat__value { font-size: 22px; font-weight: 700; color: var(--lg-text-primary, #0f172a); margin: 6px 0 10px; line-height: 1.1; }
body.customers .lp-stat__sub { font-size: 13px; font-weight: 600; color: var(--lg-text-muted, #64748b); margin-left: 6px; }
body.customers .progress.lp-progress {
  height: 8px !important;
  border-radius: 999px !important;
  background: var(--lg-bg-tertiary, rgba(148, 163, 184, 0.18)) !important;
  margin: 0 !important;
  overflow: hidden;
  box-shadow: none;
}
body.customers .progress.lp-progress .progress-bar { border-radius: 999px !important; box-shadow: none; }

/* Metric row (expenses / logged time) */
body.customers .lp-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 767px) { body.customers .lp-metrics { grid-template-columns: repeat(2, 1fr); } }
body.customers .lp-metric {
  background: var(--lg-bg-secondary, #ffffff);
  border: 1px solid var(--lg-border, rgba(148, 163, 184, 0.22));
  border-left: 3px solid #94a3b8;
  border-radius: var(--lg-radius-md, 12px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
body.customers .lp-metric__label { font-size: 12px; color: var(--lg-text-muted, #64748b); font-weight: 500; }
body.customers .lp-metric__value { font-size: 18px; font-weight: 700; color: var(--lg-text-primary, #0f172a); }
body.customers .lp-metric--info { border-left-color: #3b82f6; }
body.customers .lp-metric--success { border-left-color: #22c55e; }
body.customers .lp-metric--danger { border-left-color: #ef4444; }
body.customers .lp-metric--muted { border-left-color: #94a3b8; }
body.customers .lp-metric--info .lp-metric__label { color: #2563eb; }
body.customers .lp-metric--success .lp-metric__label { color: #16a34a; }
body.customers .lp-metric--danger .lp-metric__label { color: #dc2626; }

/* ============================================================
   Project page — vertical sidebar menu (replaces the old
   horizontal, scrolling tab bar). Left rail of tabs + content.
   ============================================================ */
body.customers .project-page .lp-project-shell {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}
body.customers .project-page .lp-project-side {
  flex: 0 0 240px;
  width: 240px;
  position: sticky;
  top: 16px;
}
body.customers .project-page .lp-project-main {
  flex: 1 1 auto;
  min-width: 0;
}
body.customers .project-page .lp-project-main > *:first-child { margin-top: 0 !important; }

/* Neutralize old horizontal shell chrome + horizontal scrollbar */
body.customers .project-page .project-tabs-shell {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.customers .project-page .project-tabs-nav { overflow: visible !important; }

/* Vertical nav — full-width rows, whole-row selection (no inner card) */
body.customers .project-page .nav-tabs-horizontal {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  background: transparent;
  border: 0 !important;
}
body.customers .project-page .nav-tabs-horizontal > li {
  float: none;
  display: block;
  width: 100%;
  margin: 0 !important;
}
body.customers .project-page .nav-tabs-horizontal > li > a {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0 !important;
  border-radius: 10px !important;
  margin: 0 !important;
  padding: 11px 14px !important;
  color: var(--lg-text-muted, #64748b) !important;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.2;
  background: transparent !important;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
body.customers .project-page .nav-tabs-horizontal > li > a:hover,
body.customers .project-page .nav-tabs-horizontal > li > a:focus,
body.customers .project-page .nav-tabs-horizontal > li > a:active {
  background: rgba(148, 163, 184, 0.14) !important;
  color: var(--lg-text-primary, #0f172a) !important;
}
/* Active = whole row filled (no left bar) */
body.customers .project-page .nav-tabs-horizontal > li.active > a,
body.customers .project-page .nav-tabs-horizontal > li.active > a:hover,
body.customers .project-page .nav-tabs-horizontal > li.active > a:focus,
body.customers .project-page .nav-tabs-horizontal > li.active > a:active {
  background: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.14) !important;
  color: var(--lg-accent, #3b82f6) !important;
  font-weight: 600;
  box-shadow: none !important;
}
body.customers .project-page .nav-tabs-horizontal > li > a .menu-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  text-align: center;
  opacity: 0.85;
  stroke: currentColor;
}
body.customers .project-page .nav-tabs-horizontal > li.active > a .menu-icon { opacity: 1; }

/* Small screens: rail collapses to a wrapping row above the content */
@media (max-width: 900px) {
  body.customers .project-page .lp-project-shell { flex-direction: column; gap: 16px; }
  body.customers .project-page .lp-project-side {
    flex: none;
    width: 100%;
    position: static;
  }
  body.customers .project-page .nav-tabs-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
  }
  body.customers .project-page .nav-tabs-horizontal > li { width: auto; }
  body.customers .project-page .nav-tabs-horizontal > li.active > a { box-shadow: none; }
}

/* Content area fills the page even when the tab has little/no content */
body.customers .project-page .lp-project-main { min-height: 460px; }
@media (max-width: 900px) {
  body.customers .project-page .lp-project-main { min-height: 240px; }
}

/* Member avatars inside project data tables were rendering at full size */
body.customers .project-page .table td img.staff-profile-image-small,
body.customers .project-page .dt-table td img.staff-profile-image-small {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* Files tab — clean toolbar (no floated overlap) */
body.customers .project-page .project-files-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── Font Awesome brands fix ──────────────────────────────────────
   This FA6 build only declares the brands font-family on the legacy
   ".fab" class, never on ".fa-brands" (which every template uses), so
   Facebook / Instagram / Meta / Google / Drive glyphs rendered as tofu
   boxes. Declaring the family here fixes every brand icon at once. */
.fa-brands,
.fab {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400;
}
body.customers .gpicker {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

/* ── New Task attachment / file picker: tidy native file input ───── */
body.customers .luum-file-picker { display: flex; align-items: stretch; }
body.customers .luum-file-picker .luum-file-icon {
  display: flex;
  align-items: center;
  color: var(--lg-text-muted, #64748b);
}
body.customers .luum-file-picker input[type="file"] {
  height: auto;
  padding: 9px 12px;
  line-height: 1.4;
  font-size: 13px;
  color: var(--lg-text-muted, #64748b);
}
body.customers .luum-file-picker input[type="file"]::file-selector-button {
  border: 0;
  background: var(--lg-bg-tertiary, rgba(148, 163, 184, 0.14));
  color: var(--lg-text-primary, #0f172a);
  padding: 5px 14px;
  margin: -2px 12px -2px 0;
  border-radius: 7px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.15s ease;
}
body.customers .luum-file-picker input[type="file"]::file-selector-button:hover {
  background: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.14);
  color: var(--lg-accent, #3b82f6);
}
body.customers .luum-file-picker .add_more_attachments {
  border-radius: 8px;
}
body.customers .luum-file-help { margin-top: 8px; font-size: 12px; color: var(--lg-text-muted, #94a3b8); }

/* ── Sticky footer: white footer reaches the very bottom ──────────
   body.has-bottom-bar reserves 80px at the page bottom for the fixed
   bottom bar, which showed as a grey strip UNDER the white footer.
   Drop that reservation and let the footer's own white padding cover
   the bottom-bar area instead. */
body.customers.has-bottom-bar { padding-bottom: 0 !important; }
body.customers .glass-footer { margin-top: auto !important; }
body.customers.has-bottom-bar .glass-footer { padding-bottom: 96px !important; }

/* ═══════════════════════════════════════════════════════════════════════
   BİLGİ MERKEZİ — yeniden tasarım
   ───────────────────────────────────────────────────────────────────────
   Eski tasarımda her kategori ayrı bir gradyan kutunun içindeydi ve tek
   ekranda sekiz farklı renk görünüyordu. Burada tek vurgu rengi (markanın
   kendi rengi) kullanılıyor; ikonlar arka planı olmayan ince çizgiler,
   arama alanı ise sayfanın tek belirgin öğesi.

   Sınıf adları lkb-* ile ayrıldı; eski .kb-* kuralları artık bu sayfalara
   uygulanmıyor, dolayısıyla iki tasarım birbirini ezmiyor.
   ═══════════════════════════════════════════════════════════════════════ */

.lkb-page {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.lkb-hero {
  padding: 56px 0 40px;
  text-align: center;
}

.lkb-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.lkb-hero-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lg-accent, #3b82f6);
}

.lkb-hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--lg-text-primary);
}

.lkb-hero-sub {
  margin: 0 auto 28px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--lg-text-secondary);
}

/* ── Arama ────────────────────────────────────────────────────────── */
.lkb-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 46px;
  background: var(--lg-bg-secondary);
  border: 1px solid var(--lg-border-light);
  border-radius: 999px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lkb-search:focus-within {
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.65);
  box-shadow: 0 0 0 4px rgba(var(--lg-accent-rgb, 59, 130, 246), 0.12);
}

.lkb-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lg-text-muted);
  pointer-events: none;
  transition: color 0.18s ease;
}

.lkb-search:focus-within .lkb-search-icon {
  color: var(--lg-accent, #3b82f6);
}

/* The base stylesheet paints every text input as a bordered, filled control.
   Inside the pill that shows up as a grey box, so this one opts out. */
.lkb-search .lkb-search-input,
.lkb-search input.lkb-search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 40px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--lg-text-primary) !important;
  font-size: 15px;
  line-height: 40px;
}

.lkb-search .lkb-search-input:focus {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: none !important;
}

.lkb-search-input::placeholder {
  color: var(--lg-text-muted);
}

.lkb-search-submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lg-accent, #3b82f6);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease;
}

.lkb-search-submit:hover,
.lkb-search-submit:focus {
  background: var(--lg-accent-hover, #2563eb);
  color: #fff;
}

/* Öneri listesi (JS .kb-search-suggestions sınıfına bağlı, adı korunuyor) */
.lkb-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 6px;
  background: var(--lg-bg-elevated, var(--lg-bg-secondary));
  border: 1px solid var(--lg-border-light);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  text-align: left;
  overflow: hidden;
}

.lkb-suggestions[hidden] { display: none; }

.lkb-suggestions .kb-search-suggestion-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lg-text-secondary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.lkb-suggestions .kb-search-suggestion-item:hover,
.lkb-suggestions .kb-search-suggestion-item.is-active {
  background: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.1);
  color: var(--lg-text-primary);
}

.lkb-hero-meta {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--lg-text-muted);
}

.lkb-hero-meta-sep { margin: 0 8px; }

/* ── Kategori kartları ────────────────────────────────────────────── */
.lkb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.lkb-card {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 22px;
  background: var(--lg-bg-secondary);
  border: 1px solid var(--lg-border);
  border-radius: 16px;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.lkb-card:hover,
.lkb-card:focus {
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.45);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none !important;
}

/* Kullanıcı isteği: ikonların arkasında kutu/renk olmayacak. */
.lkb-card-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 16px;
  background: none;
  color: var(--lg-accent, #3b82f6);
}

.lkb-card-icon svg { width: 100%; height: 100%; display: block; }

.lkb-card-body { flex: 1 1 auto; display: block; }

.lkb-card-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lg-text-primary);
}

.lkb-card-desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lg-text-secondary);
}

.lkb-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--lg-border);
}

.lkb-card-count {
  font-size: 12px;
  color: var(--lg-text-muted);
}

.lkb-card-arrow {
  width: 16px;
  height: 16px;
  color: var(--lg-text-muted);
  transform: translateX(-4px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.lkb-card:hover .lkb-card-arrow,
.lkb-card:focus .lkb-card-arrow {
  color: var(--lg-accent, #3b82f6);
  transform: translateX(0);
  opacity: 1;
}

/* ── Makale listesi ───────────────────────────────────────────────── */
.lkb-section-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lg-text-primary);
}

.lkb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lkb-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--lg-bg-secondary);
  border: 1px solid var(--lg-border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.lkb-list-item:hover,
.lkb-list-item:focus {
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.45);
  color: inherit;
  text-decoration: none !important;
}

.lkb-list-body { flex: 1 1 auto; min-width: 0; }

.lkb-list-title {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lg-text-primary);
}

.lkb-list-preview {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lg-text-secondary);
}

.lkb-list-date {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--lg-text-muted);
}

.lkb-list-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--lg-text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
}

.lkb-list-item:hover .lkb-list-arrow {
  color: var(--lg-accent, #3b82f6);
  transform: translateX(3px);
}

/* ── Boş durum ────────────────────────────────────────────────────── */
.lkb-empty {
  padding: 56px 20px;
  text-align: center;
  color: var(--lg-text-muted);
}

.lkb-empty svg { width: 40px; height: 40px; margin-bottom: 12px; }
.lkb-empty p { margin: 0; font-size: 14px; }

/* ── Makale sayfasındaki hero ─────────────────────────────────────── */
.kb-article-hero-wrap .lkb-hero { padding: 40px 0 28px; }
.kb-article-hero-wrap .lkb-hero-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.kb-article-hero-wrap .lkb-hero-meta { display: none; }

/* ── Küçük ekran ──────────────────────────────────────────────────── */
@media (max-width: 575px) {
  .lkb-hero { padding: 36px 0 28px; }
  .lkb-search { padding-left: 42px; }
  .lkb-search-submit { padding: 0 16px; }
  .lkb-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════
   TAILWIND "primary" YARDIMCILARI → MARKA RENGİ
   assets/builds/tailwind.css derlenmiş ve primary paleti mavi olarak sabit.
   Paket tüm tenantlarca paylaşıldığından tenant başına derlenemez; kullanılan
   sınıflar burada vurgu değişkenine bağlanıyor.
   ═══════════════════════════════════════════════════════════════════════ */
.tw-bg-primary-500,
.tw-bg-primary-600 { background-color: var(--lg-accent, #2563eb) !important; }
.tw-bg-primary-700,
.tw-bg-primary-800 { background-color: var(--lg-accent-hover, #1d4ed8) !important; }
.tw-text-primary-500,
.tw-text-primary-600 { color: var(--lg-accent, #2563eb) !important; }
.tw-text-primary-700,
.tw-text-primary-800 { color: var(--lg-accent-hover, #1d4ed8) !important; }
.tw-border-primary-600 { border-color: var(--lg-accent, #2563eb) !important; }
.tw-bg-primary-50,
.tw-bg-primary-100 { background-color: rgba(var(--lg-accent-rgb, 37, 99, 235), 0.1) !important; }

/* ── Footer'daki Luumtech markası ─────────────────────────────────────
   Wordmark satır içi SVG olarak basılıyor; rengini currentColor'dan
   aldığı için açık ve koyu temada ayrı görsel gerekmiyor.

   Renk `inherit`: marka, yanındaki "Tüm hakları saklıdır" cümlesiyle
   birebir aynı renkte olmalı. Sadece `.luum-footer-brand` yetmiyor,
   çünkü temada `html[data-theme="light"] a { color: var(--lg-accent) }`
   kuralı var ve özgüllüğü (0,1,2) daha yüksek olduğu için wordmark açık
   temada vurgu rengine (kırmızı) boyanıyordu. Baştaki `html` ile seçici
   (0,2,1) seviyesine çıkarılıyor; !important gerekmiyor. */
.luum-footer-brand {
  display: inline-block;
  transition: opacity 0.15s ease;
}

html .luum-copyright .luum-footer-brand,
html .luum-copyright .luum-footer-brand:hover,
html .luum-copyright .luum-footer-brand:focus {
  color: inherit;
  opacity: 1;
}

html .luum-copyright .luum-footer-brand:hover {
  opacity: 0.7;
}

.luum-footer-brand .luum-wordmark {
  display: block;
  width: 96px;
  height: auto;
  /* Wordmark'ın alt kenarı satır tabanına oturuyor; -4px onu cümlenin
     görsel tabanıyla hizalıyor. */
  margin-bottom: -4px;
}

.login-footer .luum-footer-brand .luum-wordmark { width: 88px; }

/* ═══════════════════════════════════════════════════════════════════════
   BİLDİRİM KARTLARI (showAlert)
   ───────────────────────────────────────────────────────────────────────
   Eskiden Bootstrap'ın .alert bloğu kullanılıyordu: solda renkli çubuk,
   her durum için aynı zil ikonu ve gövde yazı tipiyle uyumsuz bir metin.
   Burada sağ üstte yığılan, yumuşak gölgeli, duruma göre ince çizgi ikon
   taşıyan kartlar var.
   ═══════════════════════════════════════════════════════════════════════ */
.lt-toast-host {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.lt-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: var(--lt-toast-bg, rgba(28, 28, 30, 0.82));
  border: 1px solid var(--lt-toast-border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  color: var(--lt-toast-text, #f5f5f7);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  pointer-events: auto;
  transform-origin: top right;
  animation: ltToastIn 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}

html[data-theme="light"] .lt-toast {
  --lt-toast-bg: rgba(255, 255, 255, 0.9);
  --lt-toast-border: rgba(0, 0, 0, 0.08);
  --lt-toast-text: #1c1c1e;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.14);
}

@keyframes ltToastIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lt-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .lt-toast { animation: none; }
  .lt-toast.is-leaving { transition: none; }
}

.lt-toast-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.lt-toast-icon svg { width: 20px; height: 20px; display: block; }

.lt-toast--success .lt-toast-icon { color: #30d158; }
.lt-toast--danger  .lt-toast-icon { color: #ff453a; }
.lt-toast--warning .lt-toast-icon { color: #ff9f0a; }
.lt-toast--info    .lt-toast-icon { color: #0a84ff; }

html[data-theme="light"] .lt-toast--success .lt-toast-icon { color: #248a3d; }
html[data-theme="light"] .lt-toast--danger  .lt-toast-icon { color: #d70015; }
html[data-theme="light"] .lt-toast--warning .lt-toast-icon { color: #b25000; }
html[data-theme="light"] .lt-toast--info    .lt-toast-icon { color: #0040dd; }

.lt-toast-text {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1px;
  font-weight: 450;
  letter-spacing: -0.006em;
  overflow-wrap: anywhere;
}

.lt-toast-text p:last-child { margin-bottom: 0; }

.lt-toast-close {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.lt-toast-close:hover {
  opacity: 0.9;
  background: rgba(127, 127, 127, 0.18);
}

.lt-toast-close svg { width: 100%; height: 100%; display: block; }

@media (max-width: 575px) {
  .lt-toast-host { top: 10px; right: 10px; left: 10px; width: auto; }
}

/* ═══════════════════════════════════════════════════════════════════════
   ÜST MENÜ — SEÇİLİ ÖĞE VE MOBİL AÇIK TEMA
   ───────────────────────────────────────────────────────────────────────
   1) Seçili sayfanın menü öğesi artık marka renginde bir zemin taşıyor;
      önce yalnızca yazı rengi değişiyordu ve hangi sayfada olduğunuz
      belli olmuyordu.
   2) Mobil açık temada açılan menü beyaz üstüne beyazdı: panelin sınırı,
      öğe aralıkları ve ikon renkleri seçilemiyordu.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Seçili öğe ─────────────────────────────────────────────────────── */
.navbar-glass .navbar-nav > li > a {
  border-radius: 999px !important;
  transition: background 0.16s ease, color 0.16s ease !important;
}

.navbar-glass .navbar-nav > li > a:hover,
.navbar-glass .navbar-nav > li > a:focus {
  background: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.1) !important;
  color: var(--lg-accent, #3b82f6) !important;
}

.navbar-glass .navbar-nav > li.active > a,
.navbar-glass .navbar-nav > li.active > a:hover,
.navbar-glass .navbar-nav > li.active > a:focus,
html[data-theme="dark"] .navbar-glass .navbar-nav > li.active > a,
html[data-theme="light"] .navbar-glass .navbar-nav > li.active > a {
  background: var(--lg-accent, #3b82f6) !important;
  color: #fff !important;
}

.navbar-glass .navbar-nav > li.active > a .nav-icon,
.navbar-glass .navbar-nav > li.active > a svg {
  color: #fff !important;
  stroke: currentColor !important;
  opacity: 1 !important;
}

.navbar-glass .navbar-nav > li > a:hover .nav-icon,
.navbar-glass .navbar-nav > li > a:focus .nav-icon {
  color: var(--lg-accent, #3b82f6) !important;
}

/* ── Mobil menü ─────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .navbar-glass .navbar-collapse {
    margin-top: 10px !important;
    padding: 8px !important;
    background: var(--lg-bg-secondary) !important;
    border: 1px solid var(--lg-border-light) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
  }

  html[data-theme="light"] .navbar-glass .navbar-collapse {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12) !important;
  }

  .navbar-glass .navbar-collapse .navbar-nav {
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .navbar-glass .navbar-collapse .navbar-nav > li > a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 11px 14px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: var(--lg-text-secondary) !important;
  }

  html[data-theme="light"] .navbar-glass .navbar-collapse .navbar-nav > li > a {
    color: #334155 !important;
  }

  html[data-theme="light"] .navbar-glass .navbar-collapse .navbar-nav > li > a:hover {
    background: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.08) !important;
    color: var(--lg-accent, #3b82f6) !important;
  }

  /* Açık temada pill ve düğmeler beyaz zeminde kayboluyordu. */
  html[data-theme="light"] .navbar-glass {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
  }

  html[data-theme="light"] .navbar-glass .navbar-toggle,
  html[data-theme="light"] .navbar-glass .theme-toggle,
  html[data-theme="light"] .navbar-glass .nav-language-toggle {
    background: rgba(15, 23, 42, 0.04) !important;
    border: 1px solid rgba(15, 23, 42, 0.1) !important;
    color: #475569 !important;
  }

  html[data-theme="light"] .navbar-glass .navbar-toggle .menu-icon {
    color: #475569 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   BİLGİ MERKEZİ — MAKALE SAYFASI
   ───────────────────────────────────────────────────────────────────────
   İlişkili makalelerdeki ikon kutuları ve "yararlı buldunuz mu?" bölümünün
   mavi zeminli ikonu kaldırıldı. Bağlantılar başlık + kısa özet olarak
   okunuyor, geri bildirim düğmeleri ise sade birer çipe dönüştü.
   ═══════════════════════════════════════════════════════════════════════ */
.lkb-article-page { padding-top: 32px; }

/* ── Kırıntı yolu ───────────────────────────────────────────────────── */
.lkb-crumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 12.5px;
  color: var(--lg-text-muted);
}

.lkb-crumbs a {
  color: var(--lg-text-secondary);
  text-decoration: none !important;
}

.lkb-crumbs a:hover { color: var(--lg-accent, #3b82f6); }

.lkb-crumb-sep { width: 13px; height: 13px; flex: 0 0 auto; opacity: 0.6; }

.lkb-crumb-current {
  color: var(--lg-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Yerleşim ───────────────────────────────────────────────────────── */
.lkb-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.lkb-article-grid.is-wide { grid-template-columns: minmax(0, 1fr); }

.lkb-article {
  padding: 34px 36px 30px;
  background: var(--lg-bg-secondary);
  border: 1px solid var(--lg-border);
  border-radius: 18px;
}

.lkb-article-title {
  margin: 0 0 22px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--lg-text-primary);
}

.lkb-article-body {
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--lg-text-secondary);
}

.lkb-article-body h3,
.lkb-article-body h4 {
  margin: 28px 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lg-text-primary);
}

.lkb-article-body h3:first-child { margin-top: 0; }
.lkb-article-body p { margin: 0 0 12px; }
.lkb-article-body strong { color: var(--lg-text-primary); font-weight: 600; }
.lkb-article-body ul,
.lkb-article-body ol { margin: 0 0 14px; padding-left: 22px; }
.lkb-article-body li { margin-bottom: 6px; }

.lkb-article-body a {
  color: var(--lg-accent, #3b82f6);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lkb-article-body table {
  width: 100%;
  margin: 8px 0 16px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.lkb-article-body table th,
.lkb-article-body table td {
  padding: 9px 12px !important;
  border: 1px solid var(--lg-border) !important;
  text-align: left;
}

.lkb-article-body table th {
  background: var(--lg-bg-tertiary);
  color: var(--lg-text-primary);
  font-weight: 600;
}

.lkb-article-body hr {
  margin: 22px 0 14px;
  border: 0;
  border-top: 1px solid var(--lg-border);
}

/* ── Geri bildirim ──────────────────────────────────────────────────── */
.lkb-feedback {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--lg-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.lkb-feedback-q {
  margin: 0;
  font-size: 13.5px;
  color: var(--lg-text-secondary);
}

.lkb-feedback-actions {
  display: flex;
  gap: 8px;
}

.lkb-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border: 1px solid var(--lg-border-light);
  border-radius: 999px;
  background: transparent;
  color: var(--lg-text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lkb-feedback-btn svg { width: 15px; height: 15px; }

.lkb-feedback-btn:hover:not(:disabled) {
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.5);
  color: var(--lg-text-primary);
}

.lkb-feedback-btn.is-active {
  background: var(--lg-accent, #3b82f6);
  border-color: var(--lg-accent, #3b82f6);
  color: #fff;
}

.lkb-feedback-btn:disabled { cursor: default; }

.lkb-feedback-response {
  flex: 1 1 100%;
  font-size: 13px;
  color: var(--lg-success, #22c55e);
}

.lkb-feedback-response:empty { display: none; }

/* ── İlişkili makaleler ─────────────────────────────────────────────── */
.lkb-related {
  position: sticky;
  top: 96px;
}

.lkb-related-heading {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lg-text-muted);
}

.lkb-related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lkb-related-item {
  display: block;
  padding: 14px 16px;
  background: var(--lg-bg-secondary);
  border: 1px solid var(--lg-border);
  border-radius: 13px;
  color: inherit;
  text-decoration: none !important;
  transition: border-color 0.16s ease;
}

.lkb-related-item:hover,
.lkb-related-item:focus {
  border-color: rgba(var(--lg-accent-rgb, 59, 130, 246), 0.45);
  color: inherit;
  text-decoration: none !important;
}

.lkb-related-title {
  display: block;
  margin-bottom: 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--lg-text-primary);
}

.lkb-related-preview {
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--lg-text-muted);
}

@media (max-width: 900px) {
  .lkb-article-grid { grid-template-columns: minmax(0, 1fr); }
  .lkb-related { position: static; }
}

@media (max-width: 575px) {
  .lkb-article { padding: 24px 20px; }
  .lkb-feedback { flex-direction: column; align-items: flex-start; }
}

/* ── Mobil: yatay taşma olmasın ───────────────────────────────────────
   İçeriğine göre genişleyen pill kuralı masaüstü içindi; dar ekranda
   pill ve kart görünüm alanının dışına taşıyordu. */
@media (max-width: 991px) {
  body.portal-guest { overflow-x: hidden; }

  body.portal-guest .navbar-glass {
    width: calc(100% - 20px) !important;
    max-width: calc(100% - 20px) !important;
  }

  body.portal-guest .login-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.portal-guest .login-wrapper {
    max-width: 100% !important;
  }

  body.portal-guest .container,
  body.portal-guest .container > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   TEK SAYFA GENİŞLİĞİ
   Portal ekranlarındaki kartlar 1152px genişliğinde ve 144px'te
   başlıyordu; üstteki menü pill'i ise 1200/120. Yani başlık kartlardan
   her iki yanda 24px taşıyordu. Belge ekranlarında (fatura, proforma,
   sözleşme) ise üçüncü bir ölçü vardı: 1120/160.
   Aşağısı hepsini tek çerçeveye — kartların çerçevesine — oturtur.
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* .container (1200) içindeki .row'un -15px kenar boşluğu düşülünce
     kartların oturduğu gerçek genişlik bu. Menü de buna hizalanır. */
  --luum-page: calc(var(--luum-container, 1200px) - 48px);
}

@media (min-width: 992px) {
  /* Oturum açmış üye menüsü. Misafir ekranlarındaki pill içeriğine göre
     büzüşür, o davranış kasıtlı; bu yüzden dışarıda bırakıldı. */
  body.customers:not(.portal-guest) .navbar-glass {
    width: min(var(--luum-page), calc(100vw - 80px)) !important;
    max-width: min(var(--luum-page), calc(100vw - 80px)) !important;
  }

  /* Bilgi bankası gövdesi 1060px'e sabitlenmişti. */
  body.customers .lkb-page {
    max-width: var(--luum-page) !important;
  }

  /* Belge ekranları: başlık çubuğu ve kart aynı çerçevede. */
  body.viewinvoice .preview-top-wrapper,
  body.viewestimate .preview-top-wrapper,
  body.proposal-view .preview-top-wrapper,
  body.contract-view .preview-top-wrapper,
  body.subscriptionhtml .preview-top-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.viewinvoice .preview-sticky-container,
  body.viewestimate .preview-sticky-container,
  body.proposal-view .preview-sticky-container,
  body.contract-view .preview-sticky-container,
  body.subscriptionhtml .preview-sticky-container,
  body.viewinvoice .preview-top-wrapper > .panel_s,
  body.viewestimate .preview-top-wrapper > .panel_s,
  body.proposal-view .preview-top-wrapper > .panel_s,
  body.contract-view .preview-top-wrapper > .panel_s,
  body.subscriptionhtml .preview-top-wrapper > .panel_s,
  body.viewinvoice #wrapper > .panel_s,
  body.viewestimate #wrapper > .panel_s,
  body.proposal-view #wrapper > .panel_s,
  body.contract-view #wrapper > .panel_s,
  body.subscriptionhtml #wrapper > .panel_s {
    width: min(var(--luum-page), calc(100vw - 80px)) !important;
    max-width: min(var(--luum-page), calc(100vw - 80px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   İKON YAZI TİPLERİ
   style.css'in başındaki `*, *::before, *::after { font-family: Inter
   !important }` kuralı her ikon yazı tipini de eziyor. Font Awesome için
   geri alma zaten vardı; FullCalendar'ın fcicons'u ve Glyphicons yoktu —
   takvimin ileri/geri okları bu yüzden boş kare çiziyordu.
   ═══════════════════════════════════════════════════════════════════ */
body.customers .fc-icon,
body.customers .fc-icon::before {
  font-family: fcicons !important;
}

body.customers .glyphicon,
body.customers .glyphicon::before {
  font-family: "Glyphicons Halflings" !important;
}

/* Marka ikonları (Google, Dropbox…) yalnızca Brands ailesinde var.
   style.css'te daha sonra gelen üç kural hepsini "FA 6 Free"ye
   çeviriyordu; Google logosu boş kare oluyordu. */
body.customers .fa-brands::before,
body.customers .fab::before,
body.customers i.fa-brands::before,
body.customers i.fab::before {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   TAKVİM (FullCalendar 5)
   Karanlık temada takvim hâlâ açık temanın renklerindeydi: gün başlıkları
   ve önceki/sonraki ayın hücreleri beyaz, bugün işareti ve görünüm
   düğmeleri mavi. FullCalendar renklerini kendi değişkenlerinden okur, o
   yüzden önce onları bağlıyoruz; ardından tailwind paketindeki !important
   kuralları eziliyor.
   ═══════════════════════════════════════════════════════════════════ */
body.customers .fc {
  --fc-page-bg-color: transparent;
  --fc-border-color: var(--lg-border);
  --fc-neutral-bg-color: rgba(var(--lg-accent-rgb), 0.08);
  --fc-neutral-text-color: var(--lg-text-secondary);
  --fc-today-bg-color: rgba(var(--lg-accent-rgb), 0.1);
  --fc-event-bg-color: var(--lg-accent);
  --fc-event-border-color: var(--lg-accent);
  --fc-event-text-color: #fff;
  --fc-list-event-hover-bg-color: rgba(var(--lg-accent-rgb), 0.1);
  --fc-highlight-color: rgba(var(--lg-accent-rgb), 0.14);
}

body.customers .fc .fc-toolbar-title {
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  color: var(--lg-text-primary) !important;
}

/* Araç çubuğu düğmeleri: sakin yüzey, seçili olan marka rengi. */
body.customers .fc .fc-button-primary,
body.customers .fc .fc-button-primary:disabled {
  background-color: var(--lg-bg-tertiary) !important;
  border-color: var(--lg-border) !important;
  color: var(--lg-text-secondary) !important;
  box-shadow: none !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  text-transform: none !important;
}

body.customers .fc .fc-button-primary:hover {
  background-color: rgba(var(--lg-accent-rgb), 0.14) !important;
  border-color: rgba(var(--lg-accent-rgb), 0.4) !important;
  color: var(--lg-text-primary) !important;
}

body.customers .fc .fc-button-primary:not(:disabled).fc-button-active,
body.customers .fc .fc-button-primary:not(:disabled):active,
body.customers .fc .fc-button-primary.fc-button-active:hover {
  background-color: var(--lg-accent) !important;
  border-color: var(--lg-accent) !important;
  color: #fff !important;
}

body.customers .fc .fc-button:focus,
body.customers .fc .fc-button-primary:focus {
  box-shadow: 0 0 0 3px rgba(var(--lg-accent-rgb), 0.28) !important;
}

body.customers .fc .fc-button .fc-icon {
  font-size: 1.25em !important;
}

/* Izgara. */
body.customers .fc .fc-scrollgrid,
body.customers .fc-theme-standard td,
body.customers .fc-theme-standard th {
  border-color: var(--lg-border) !important;
}

body.customers .fc .fc-scrollgrid-section-sticky > * {
  background: var(--lg-bg-secondary) !important;
}

body.customers .fc .fc-col-header-cell {
  background: var(--lg-bg-tertiary) !important;
}

body.customers .fc .fc-col-header-cell-cushion {
  color: var(--lg-text-secondary) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

body.customers .fc .fc-daygrid-day,
body.customers .fc .fc-day-other {
  background-color: transparent !important;
}

/* Diğer ayın günleri: beyaz blok yerine yalnızca soluk rakam. */
body.customers .fc .fc-day-other .fc-daygrid-day-top {
  opacity: 0.32 !important;
}

body.customers .fc .fc-daygrid-day-number {
  color: var(--lg-text-secondary) !important;
}

body.customers .fc .fc-day.fc-day-today .fc-daygrid-day-number {
  background-color: var(--lg-accent) !important;
  color: #fff !important;
}

body.customers .fc .fc-daygrid-day.fc-day-today {
  background-color: rgba(var(--lg-accent-rgb), 0.1) !important;
}

/* Etkinlikler. */
body.customers .fc .fc-event,
body.customers .fc .fc-h-event,
body.customers .fc .fc-v-event {
  border-radius: 7px !important;
  font-size: 0.75rem !important;
  padding: 1px 2px !important;
}

body.customers .fc .fc-event .fc-event-title,
body.customers .fc .fc-event .fc-event-time {
  color: #fff !important;
  font-weight: 500 !important;
}

/* Liste ("Ajanda") görünümü. */
body.customers .fc .fc-list,
body.customers .fc-theme-standard .fc-list {
  border-color: var(--lg-border) !important;
}

body.customers .fc .fc-list-day-cushion,
body.customers .fc-theme-standard .fc-list-day-cushion {
  background-color: var(--lg-bg-tertiary) !important;
  color: var(--lg-text-primary) !important;
}

body.customers .fc .fc-list-event td,
body.customers .fc .fc-list-event-title a {
  color: var(--lg-text-primary) !important;
}

body.customers .fc .fc-list-empty {
  background-color: transparent !important;
  color: var(--lg-text-secondary) !important;
}

/* Gün üstü açılır kutusu. */
body.customers .fc .fc-popover,
body.customers .fc-theme-standard .fc-popover {
  background-color: var(--lg-bg-elevated) !important;
  border-color: var(--lg-border) !important;
  color: var(--lg-text-primary) !important;
}

body.customers .fc-theme-standard .fc-popover-header {
  background-color: var(--lg-bg-tertiary) !important;
  color: var(--lg-text-primary) !important;
}

body.customers .fc .fc-more-link {
  color: var(--lg-accent) !important;
}

/* Bölüm başlığındaki takvim simgesi de marka rengini alır. */
body.customers .luum-section-icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: -4px;
  color: var(--lg-accent);
}

/* ═══════════════════════════════════════════════════════════════════
   DOSYALAR EKRANI
   Bırakma alanı lacivert bir degrade ve kırmızı kesikli çerçeveyle
   çiziliyor, "Google Drive'dan seç" ise Google mavisi bir düğmeydi:
   ikisi de temanın dışındaydı. Alan artık sakin bir yüzey, marka rengi
   yalnızca üzerine gelince ve dosya sürüklenirken görünüyor.
   ═══════════════════════════════════════════════════════════════════ */
body.customers #files-upload.dropzone,
body.customers #project-files-upload.dropzone {
  background: var(--lg-bg-tertiary) !important;
  border: 1.5px dashed var(--lg-border) !important;
  border-radius: 16px !important;
  min-height: 210px !important;
  padding: 28px 20px !important;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease !important;
}

body.customers #files-upload.dropzone:hover,
body.customers #project-files-upload.dropzone:hover {
  background: rgba(var(--lg-accent-rgb), 0.05) !important;
  border-color: rgba(var(--lg-accent-rgb), 0.45) !important;
}

body.customers #files-upload.dropzone.dragover,
body.customers #files-upload.dropzone.dz-drag-hover,
body.customers #project-files-upload.dropzone.dragover,
body.customers #project-files-upload.dropzone.dz-drag-hover {
  background: rgba(var(--lg-accent-rgb), 0.1) !important;
  border-color: var(--lg-accent) !important;
  border-style: solid !important;
  transform: none !important;
}

body.customers .dropzone .luum-dropzone-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  background: var(--lg-bg-elevated) !important;
  border: 1px solid var(--lg-border) !important;
  color: var(--lg-text-secondary) !important;
  margin-bottom: 14px !important;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

body.customers .dropzone:hover .luum-dropzone-icon,
body.customers .dropzone.dragover .luum-dropzone-icon,
body.customers .dropzone.dz-drag-hover .luum-dropzone-icon {
  background: rgba(var(--lg-accent-rgb), 0.12) !important;
  border-color: rgba(var(--lg-accent-rgb), 0.4) !important;
  color: var(--lg-accent) !important;
}

body.customers .dropzone .luum-dropzone-icon svg {
  width: 25px !important;
  height: 25px !important;
}

body.customers .dropzone .luum-dropzone-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--lg-text-primary) !important;
}

body.customers .dropzone .luum-dropzone-subtitle {
  margin: 4px 0 14px !important;
  font-size: 0.84rem !important;
  color: var(--lg-text-secondary) !important;
}

body.customers .dropzone .luum-dropzone-browse {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(var(--lg-accent-rgb), 0.5);
  background: rgba(var(--lg-accent-rgb), 0.12);
  color: var(--lg-accent);
  font-size: 0.83rem;
  font-weight: 600;
}

body.customers .dropzone:hover .luum-dropzone-browse {
  background: var(--lg-accent);
  border-color: var(--lg-accent);
  color: #fff;
}

body.customers .dropzone .luum-dropzone-hint {
  margin: 14px 0 0 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.03em;
  color: var(--lg-text-muted, var(--lg-text-secondary)) !important;
}

/* Yükleme sırasında dosya kutucukları. */
body.customers .dropzone .dz-preview .dz-progress .dz-upload {
  background: var(--lg-accent) !important;
}

/* Harici seçiciler: Drive mavisi yerine sayfa diliyle aynı sakin düğme. */
body.customers .luum-dropzone-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 16px 0 4px;
}

body.customers .gpicker,
body.customers .gpicker:hover,
body.customers .gpicker:focus,
body.customers #dropbox-chooser-files .dropbox-dropin-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px !important;
  border-radius: 10px !important;
  border: 1px solid var(--lg-border) !important;
  background: var(--lg-bg-tertiary) !important;
  color: var(--lg-text-secondary) !important;
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: none !important;
}

body.customers .gpicker:hover {
  border-color: rgba(var(--lg-accent-rgb), 0.45) !important;
  background: rgba(var(--lg-accent-rgb), 0.08) !important;
  color: var(--lg-text-primary) !important;
}

/* Dosya yokken: çıplak bir satır yerine gerçek bir boş durum. */
body.customers .luum-files-empty {
  margin-top: 8px;
  padding: 34px 20px;
  border-top: 1px solid var(--lg-border);
  text-align: center;
  color: var(--lg-text-secondary);
}

body.customers .luum-files-empty svg {
  width: 34px;
  height: 34px;
  opacity: 0.45;
  margin-bottom: 10px;
}

body.customers .luum-files-empty p {
  margin: 0;
  font-size: 0.87rem;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFİL FOTOĞRAFI OLMAYAN ÜYE
   Menüde adın baş harfi yazıyordu; yönetim panelindeki gibi nötr bir
   kişi simgesi kullanılıyor artık.
   ═══════════════════════════════════════════════════════════════════ */
body.customers .profile-avatar-fallback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: var(--lg-bg-tertiary) !important;
  border: 1px solid var(--lg-border);
  color: var(--lg-text-secondary) !important;
  overflow: hidden;
}

body.customers .profile-avatar-fallback svg {
  width: 62%;
  height: 62%;
}

/* ═══════════════════════════════════════════════════════════════════
   BELGE BAŞLIĞI: BİRİNCİL EYLEM
   "Şimdi Öde" ve "Kabul Et" marka rengini taşımalı; .luum-doc-actions
   .btn kuralı daha özgül olduğu için nötr yüzeyi dayatıyordu. Ayrıca
   aynı kural display'i !important ile verdiğinden Bootstrap'in .hide
   sınıfı iş görmüyordu.
   ═══════════════════════════════════════════════════════════════════ */
body.viewinvoice .luum-doc-actions .btn.pay-now-top,
body.viewinvoice .luum-doc-actions .btn.invoice-html-pay-now-top {
  background: var(--lg-accent) !important;
  border-color: var(--lg-accent) !important;
  color: #fff !important;
}

body.viewinvoice .luum-doc-actions .btn.pay-now-top:hover,
body.viewinvoice .luum-doc-actions .btn.invoice-html-pay-now-top:hover {
  background: var(--lg-accent-hover) !important;
  border-color: var(--lg-accent-hover) !important;
}

body.viewinvoice #pay_now:hover,
body.contract-view .luum-doc-actions .accept:hover,
body.proposal-view .luum-doc-actions .accept:hover,
body.viewestimate .luum-doc-actions .accept:hover {
  background: var(--lg-accent-hover) !important;
  border-color: var(--lg-accent-hover) !important;
}

body.contract-view .luum-doc-actions .btn.hide,
body.proposal-view .luum-doc-actions .btn.hide,
body.viewestimate .luum-doc-actions .btn.hide,
body.viewinvoice .luum-doc-actions .btn.hide {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ALT ÇUBUK ÇAKIŞMASI
   Yüzen alt navigasyon, sayfanın son satırının üstüne biniyordu —
   profil ekranında "Kaydet" düğmesi yarı yarıya altında kalıyordu.
   ═══════════════════════════════════════════════════════════════════ */
body.customers.has-bottom-bar #content {
  padding-bottom: 104px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   FATURA — ÖDEME BİLGİLERİ BÖLÜMÜ
   Ödeme yöntemlerinin açıklamaları (IBAN blokları) düz bir metin yığını
   olarak akıyordu; iki yöntem arasında ayrım yoktu. Her yöntem artık
   kendi kartında, başlığıyla birlikte.
   ═══════════════════════════════════════════════════════════════════ */
body.viewinvoice #invoice-payment-options > .row > div > p:first-child {
  font-size: 0.74rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lg-text-secondary) !important;
  margin-bottom: 12px !important;
}

body.viewinvoice .invoice-html-offline-payments {
  text-align: left !important;
}

body.viewinvoice .invoice-html-offline-payments > p.bold {
  margin: 0 0 8px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: var(--lg-text-primary) !important;
}

body.viewinvoice .invoice-html-offline-payments > .mbot15 {
  margin: 0 0 14px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--lg-border) !important;
  border-radius: 12px !important;
  background: var(--lg-bg-tertiary) !important;
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--lg-text-secondary) !important;
  overflow-x: auto;
}

body.viewinvoice .invoice-html-offline-payments > .mbot15:last-child {
  margin-bottom: 0 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   DURUM KARTLARI (fatura / proforma / teklif listeleri)
   Kartların zemini birer fotoğraf degradesiydi (stat-bg-*.png): mavi,
   yeşil, turuncu, mor… Arayüzün geri kalanı düz koyu yüzeylerden
   oluştuğu için bu kartlar sayfaya ait görünmüyordu. Zemin artık panel
   yüzeyi; durum rengi yalnızca simge, halka ve ilerleme çubuğunda.

   Renk, satır içi style'daki dosya adından okunuyor — böylece PHP
   tarafına dokunmadan her kart kendi durum rengini koruyor. Dosya adı
   değişirse kart nötr görünür, bozulmaz.
   ═══════════════════════════════════════════════════════════════════ */
body.customers .aw-stat-card {
  background-image: none !important;
  background-color: var(--lg-bg-tertiary) !important;
  border: 1px solid var(--lg-border) !important;
  box-shadow: none !important;
  color: var(--lg-text-primary) !important;
  --luum-stat: var(--lg-text-secondary);
}

body.customers .aw-stat-card::before {
  display: none !important;
}

body.customers .aw-stat-card:hover {
  border-color: rgba(var(--lg-accent-rgb), 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
  transform: translateY(-3px);
}

/* Değerler kartın içindeki halkanın rengiyle (PHP'deki 'color') birebir
   aynı; halka canvas'a çizildiği için CSS'ten okunamıyor. */
body.customers .aw-stat-card[style*="stat-bg-blue"]   { --luum-stat: #4a90ff; }
body.customers .aw-stat-card[style*="stat-bg-green"]  { --luum-stat: #34c759; }
body.customers .aw-stat-card[style*="stat-bg-amber"]  { --luum-stat: #ff9500; }
body.customers .aw-stat-card[style*="stat-bg-red"]    { --luum-stat: #ff3b30; }
body.customers .aw-stat-card[style*="stat-bg-purple"] { --luum-stat: #af52de; }

body.customers .aw-stat-card .aw-stat-icon {
  background: rgba(148, 163, 184, 0.16) !important;
  background: color-mix(in srgb, var(--luum-stat) 16%, transparent) !important;
  color: var(--luum-stat) !important;
}

body.customers .aw-stat-card .aw-stat-label {
  color: var(--lg-text-secondary) !important;
  text-shadow: none !important;
}

body.customers .aw-stat-card .aw-stat-num {
  color: var(--lg-text-primary) !important;
  text-shadow: none !important;
}

body.customers .aw-stat-card .aw-stat-sub {
  color: var(--lg-text-muted, var(--lg-text-secondary)) !important;
}

body.customers .aw-stat-card .aw-stat-bar {
  background: rgba(148, 163, 184, 0.18) !important;
}

body.customers .aw-stat-card .aw-stat-bar-fill {
  background: var(--luum-stat) !important;
}

/* Açık temada birincil/olumsuz eylemler de ayırt edilebilsin.
   style.css'teki html[data-theme="light"] … .luum-doc-actions .btn kuralı
   daha özgül olduğu için "Kabul Et" ve "Reddet" nötr griye düşüyordu. */
html[data-theme="light"] body.viewestimate .luum-doc-actions .btn.accept,
html[data-theme="light"] body.proposal-view .luum-doc-actions .btn.accept,
html[data-theme="light"] body.contract-view .luum-doc-actions .btn.accept,
html[data-theme="light"] body.viewinvoice .luum-doc-actions .btn.pay-now-top {
  background: var(--lg-accent) !important;
  border-color: var(--lg-accent) !important;
  color: #fff !important;
}

html[data-theme="light"] body.viewestimate .luum-doc-actions .btn.decline,
html[data-theme="light"] body.proposal-view .luum-doc-actions .btn.decline,
html[data-theme="light"] body.contract-view .luum-doc-actions .btn.decline,
body.viewestimate .luum-doc-actions .btn.decline,
body.proposal-view .luum-doc-actions .btn.decline,
body.contract-view .luum-doc-actions .btn.decline {
  color: #d0342c !important;
  border-color: rgba(208, 52, 44, 0.42) !important;
}

html[data-theme="light"] body.viewestimate .luum-doc-actions .btn.decline:hover,
html[data-theme="light"] body.proposal-view .luum-doc-actions .btn.decline:hover,
body.viewestimate .luum-doc-actions .btn.decline:hover,
body.proposal-view .luum-doc-actions .btn.decline:hover {
  background: rgba(208, 52, 44, 0.1) !important;
  border-color: rgba(208, 52, 44, 0.6) !important;
}
