/* ============================================================
 * Indiánrizs · Vállalati megjelenés — Quiet Luxury
 * Külön, opcionális réteg: az eredeti és a letisztult vállalati téma változatlan.
 * ============================================================ */

html.enterprise-elegant-theme {
  --qle-page: #f6f1e7;
  --qle-page-deep: #efe6d3;
  --qle-surface: #fffdfa;
  --qle-surface-muted: #f4ede0;
  --qle-sidebar: #221d17;
  --qle-sidebar-hover: #322b23;
  --qle-border: #ddd0b8;
  --qle-border-strong: #c7b797;
  --qle-text: #241f19;
  --qle-text-muted: #6b5f4e;
  --qle-accent: #9c6b2e;
  --qle-accent-wash: #f1e4c9;
  --qle-shadow: 0 8px 20px -18px rgba(40, 30, 15, 0.35);
  --qle-focus: #7a5222;
}

html.dark.enterprise-elegant-theme {
  --qle-page: #16140f;
  --qle-page-deep: #1e1b15;
  --qle-surface: #221f18;
  --qle-surface-muted: #2b271e;
  --qle-sidebar: #100e0a;
  --qle-sidebar-hover: #221e17;
  --qle-border: #3c362b;
  --qle-border-strong: #574e3c;
  --qle-text: #f2ead9;
  --qle-text-muted: #b8ab90;
  --qle-accent: #d4af5a;
  --qle-accent-wash: rgba(212, 175, 90, 0.14);
  --qle-shadow: 0 16px 30px -22px rgba(0, 0, 0, 0.75);
  --qle-focus: #d4af5a;
}

/* A theme.css (P70) auto-váltó megosztott tokenjei — ugyanaz a térítés, mint
   az enterprise-theme.css-ben, csak a Quiet Luxury (grafit/elefántcsont)
   palettára. A --chart-* kategória-paletta (P71) itt is szándékosan
   változatlan marad. */
html.enterprise-elegant-theme {
  --curator-surface: var(--qle-page);
  --curator-surface-low: var(--qle-page-deep);
  --curator-surface-container: var(--qle-surface);
  --curator-surface-container-high: var(--qle-surface-muted);
  --curator-on-surface: var(--qle-text);
  --curator-on-surface-variant: var(--qle-text-muted);
  --curator-outline-variant: var(--qle-border);
  --curator-outline-variant-strong: var(--qle-border-strong);

  --ink-1: var(--qle-text);
  --ink-2: var(--qle-text);
  --ink-3: var(--qle-text-muted);
  --ink-4: var(--qle-text-muted);
  --line: var(--qle-border);
  --track: color-mix(in srgb, var(--qle-border) 60%, transparent);

  --kod-badge-bg: var(--qle-accent-wash);
  --kod-badge-fg: var(--qle-accent);
  --kod-badge-line: color-mix(in srgb, var(--qle-accent) 25%, transparent);
  --kever-fg: var(--qle-accent);
}

html.enterprise-elegant-theme .fi-body {
  background: linear-gradient(135deg, var(--qle-page) 0%, var(--qle-page-deep) 100%) !important;
  color: var(--qle-text) !important;
}

html.enterprise-elegant-theme .fi-header-heading,
html.enterprise-elegant-theme .fi-simple-header-heading,
html.enterprise-elegant-theme .fi-section-header-heading,
html.enterprise-elegant-theme .fi-ta-empty-state-heading,
html.enterprise-elegant-theme .fi-empty-state-heading {
  font-family: var(--font-serif) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 1.3 !important;
}

html.enterprise-elegant-theme .fi-topbar {
  background: color-mix(in srgb, var(--qle-surface) 92%, transparent) !important;
  border-bottom: 1px solid var(--qle-border) !important;
  box-shadow: 0 1px 0 var(--qle-border) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

html.enterprise-elegant-theme .fi-sidebar {
  background: var(--qle-sidebar) !important;
  border-right: 1px solid color-mix(in srgb, var(--qle-border) 35%, transparent) !important;
}

html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-label,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-group-label,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-icon {
  color: #e8dfc9 !important;
}

html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-button:hover,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-button:focus-visible,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-btn:hover,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-btn:focus-visible {
  background: var(--qle-sidebar-hover) !important;
  transform: none !important;
  border-left: 0 !important;
  box-shadow: inset 3px 0 0 var(--qle-accent) !important;
}

html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-button,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
  background: color-mix(in srgb, var(--qle-accent) 16%, var(--qle-sidebar)) !important;
  color: #ffffff !important;
  border-left: 0 !important;
  box-shadow: inset 3px 0 0 var(--qle-accent) !important;
  animation: none !important;
}

html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-icon,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item-active .fi-sidebar-item-label,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-icon,
html.enterprise-elegant-theme .fi-sidebar .fi-sidebar-item.fi-active .fi-sidebar-item-label {
  color: #ffffff !important;
  filter: none !important;
  transform: none !important;
}

html.enterprise-elegant-theme .fi-section:not(.fi-section-not-contained),
html.enterprise-elegant-theme .fi-modal-window-ctn > .fi-modal-window,
html.enterprise-elegant-theme .fi-simple-main {
  background: var(--qle-surface) !important;
  border: 1px solid var(--qle-border) !important;
  border-radius: 6px !important;
  box-shadow: var(--qle-shadow) !important;
  --tw-ring-color: var(--qle-border) !important;
}

html.enterprise-elegant-theme .fi-section.fi-secondary,
html.enterprise-elegant-theme .fi-section.fi-aside {
  background: var(--qle-surface-muted) !important;
}

html.enterprise-elegant-theme .fi-section > .fi-section-content-ctn > .fi-section-footer,
html.enterprise-elegant-theme .fi-section-has-header:not(.fi-collapsed) > .fi-section-content-ctn {
  border-color: var(--qle-border) !important;
}

html.enterprise-elegant-theme .fi-input-wrp {
  background: var(--qle-surface) !important;
  outline: 1px solid var(--qle-border-strong) !important;
  box-shadow: none !important;
  --tw-ring-color: var(--qle-border-strong) !important;
}

html.enterprise-elegant-theme .fi-input-wrp:focus-within {
  outline: 2px solid var(--qle-focus) !important;
}

html.enterprise-elegant-theme .fi-ta-content,
html.enterprise-elegant-theme .fi-ta-record,
html.enterprise-elegant-theme .fi-ta-table > thead > tr,
html.enterprise-elegant-theme .fi-ta-content-header {
  background: var(--qle-surface) !important;
}

html.enterprise-elegant-theme .fi-ta-table > thead > tr,
html.enterprise-elegant-theme .fi-ta-content-header {
  color: var(--qle-text-muted) !important;
  border-bottom: 1px solid var(--qle-border) !important;
}

html.enterprise-elegant-theme .fi-ta-record {
  border-bottom-color: var(--qle-border) !important;
  --tw-ring-color: var(--qle-border) !important;
}

html.enterprise-elegant-theme .fi-ta-row.fi-clickable:hover,
html.enterprise-elegant-theme .fi-ta-row.fi-selected,
html.enterprise-elegant-theme .fi-ta-record.fi-clickable:hover,
html.enterprise-elegant-theme .fi-ta-record.fi-selected {
  background: var(--qle-accent-wash) !important;
  outline: 0 !important;
}

html.enterprise-elegant-theme .fi-btn:hover,
html.enterprise-elegant-theme .fi-icon-btn:hover,
html.enterprise-elegant-theme .fi-ac-action:hover,
html.enterprise-elegant-theme .fi-ta-action:hover,
html.enterprise-elegant-theme .fi-topbar-item-button:hover {
  transform: none !important;
  filter: none !important;
}

html.enterprise-elegant-theme .fi-btn.fi-color-primary,
html.enterprise-elegant-theme .fi-btn.fi-color-success {
  box-shadow: none !important;
}

html.enterprise-elegant-theme .fi-btn.fi-color-primary:hover,
html.enterprise-elegant-theme .fi-btn.fi-color-success:hover {
  box-shadow: 0 4px 12px -8px color-mix(in srgb, var(--qle-accent) 60%, transparent) !important;
}

html.enterprise-elegant-theme .fi-topbar-item-btn:hover {
  background: var(--qle-accent-wash) !important;
  transform: none !important;
  box-shadow: none !important;
}

html.enterprise-elegant-theme .fi-wi-stats-overview-stat {
  background: var(--qle-surface) !important;
  border: 1px solid var(--qle-border) !important;
  border-radius: 6px !important;
  box-shadow: var(--qle-shadow) !important;
}

html.enterprise-elegant-theme .fi-wi-stats-overview-stat:hover {
  border-color: var(--qle-border-strong) !important;
  box-shadow: 0 12px 22px -20px rgba(20, 15, 5, 0.4) !important;
}

html.dark.enterprise-elegant-theme .fi-wi-stats-overview-stat:hover {
  box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.82) !important;
}

html.enterprise-elegant-theme .kpi-highlight {
  border-color: color-mix(in srgb, var(--qle-accent) 50%, var(--qle-border)) !important;
  box-shadow: inset 0 0 26px -22px var(--qle-accent-wash), var(--qle-shadow) !important;
}

html.enterprise-elegant-theme .kpi-highlight .fi-wi-stats-overview-stat-value {
  color: var(--qle-accent) !important;
}

html.enterprise-elegant-theme .fi-wi-stats-overview-stat-label,
html.enterprise-elegant-theme .fi-wi-stats-overview-stat-description,
html.enterprise-elegant-theme .fi-wi-stats-overview-stat-label-ctn svg {
  color: var(--qle-text-muted) !important;
}

html.enterprise-elegant-theme .fi-badge {
  border-radius: 3px !important;
  font-weight: 600 !important;
}

html.enterprise-elegant-theme .fi-page,
html.enterprise-elegant-theme .fi-main {
  color: var(--qle-text) !important;
}

@media (max-width: 1023px) {
  html.enterprise-elegant-theme .fi-sidebar {
    box-shadow: 16px 0 32px -20px rgba(0, 0, 0, 0.55) !important;
  }
}
