/* =============================================================
   PERIPLUS — Fluent arayüz: ana ekran (/uygulama)
   Düzen: başlık çubuğu / ribbon / kenetleme alanı (dockview) / durum çubuğu.
   Kenetleme alanında: merkez Harita (+ sayfa sekmeleri), sol kenar Parsel arama,
   sağ kenar Parsel bilgisi. Mevcut DOM ve ID'ler korunur (mobil katman aynı düğümleri kullanır).
   Yalnız html.ui-fluent + fareli geniş ekran.
   ============================================================= */

@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {

  /* ---------- 1. Izgara ---------- */
  html.ui-fluent body { background: var(--fx-zemin) !important; }
  html.ui-fluent #app {
    grid-template-rows: var(--fx-baslik-h) auto minmax(0, 1fr) var(--fx-durum-h) !important;
    background: var(--fx-zemin);
  }

  /* ---------- 2. Başlık çubuğu (mevcut header) ---------- */
  html.ui-fluent body header {
    height: var(--fx-baslik-h) !important; padding: 0 12px !important; gap: 16px;
    background: var(--fx-zemin) !important; border-bottom: 0 !important; box-shadow: none !important;
  }
  html.ui-fluent body header { justify-content: flex-start !important; position: relative; }
  /* Arama kutusu başlıkta hep açık: sekmelerle Çıkış arasını dengeler */
  html.ui-fluent body header .searchbar {
    display: flex !important; align-items: center; position: relative !important; flex: 1 1 380px; min-width: 150px; max-width: 380px;
    margin: 0 4px 0 auto !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
  }
  html.ui-fluent body header .searchbar .icon {
    display: flex !important; position: absolute !important; left: 9px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--fx-metin-3); pointer-events: none; z-index: 1;
  }
  html.ui-fluent body header .searchbar .icon svg { width: 16px; height: 16px; }
  /* Dar ekran: arama büyüteç ikonuna iner, tıklayınca altta açılır */
  html.ui-fluent body header .fx-arama-dugme { display: none; }
  html.ui-fluent body header.fx-arama-dar .fx-arama-dugme { display: inline-flex; }
  html.ui-fluent body header.fx-arama-dar .searchbar {
    display: none !important; position: absolute !important; top: calc(var(--fx-baslik-h) - 4px); right: 12px; z-index: 9500;
    flex: none; width: 360px; max-width: calc(100vw - 24px); margin: 0 !important; padding: 8px !important; box-sizing: border-box;
    background: var(--fx-yuzey) !important; border: 1px solid var(--fx-cizgi) !important; border-radius: var(--fx-kose-b) !important;
    box-shadow: var(--fx-golge-menu) !important;
  }
  html.ui-fluent body header.fx-arama-dar.fx-arama-acik .searchbar { display: flex !important; }
  html.ui-fluent body header.fx-arama-dar .searchbar .icon { left: 17px; }
  html.ui-fluent body header .header-actions { margin-left: 0 !important; }
  /* Sağ üstte yalnız arama ikonu ve Çıkış: kullanıcı kartı ve yönetim düğmesi ribbon'da */
  html.ui-fluent body header #userInfoContainer,
  html.ui-fluent body header #loginBtn { display: none !important; }
  html.ui-fluent body header .searchbar .icon { color: var(--fx-metin-3); }
  html.ui-fluent body header .searchbar input {
    width: 100% !important; padding: 0 10px 0 32px !important; box-sizing: border-box;
    height: 32px !important; border: 1px solid var(--fx-cizgi-1) !important; border-bottom-color: var(--fx-cizgi-alt) !important;
    border-radius: var(--fx-kose) !important; background: var(--fx-yuzey) !important; color: var(--fx-metin) !important;
    font: 400 14px var(--fx-font) !important; box-shadow: none !important;
  }
  html.ui-fluent body header .searchbar input:focus { border-bottom: 2px solid var(--fx-marka) !important; }
  html.ui-fluent body header .header-actions { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
  html.ui-fluent body header .user-info-container {
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    padding: 2px 8px !important; border-radius: var(--fx-kose) !important; height: 34px; box-sizing: border-box; cursor: pointer;
  }
  html.ui-fluent body header .user-info-container:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent body header .user-avatar {
    width: 28px !important; height: 28px !important; font: 600 12px var(--fx-font) !important;
    background: var(--colorBrandBackground2, #ebf3fc) !important; color: var(--fx-marka-metin) !important;
    box-shadow: none !important; border: 0 !important;
  }
  html.ui-fluent body header .user-name { font: 600 13px/16px var(--fx-font) !important; color: var(--fx-metin) !important; }
  html.ui-fluent body header .user-role { font: 400 11px/14px var(--fx-font) !important; color: var(--fx-metin-3) !important; }
  html.ui-fluent body header #loginBtn,
  html.ui-fluent body header #logoutBtn {
    height: 32px !important; min-height: 32px !important; padding: 0 10px !important;
    background: transparent !important; color: var(--fx-metin) !important;
    border: 1px solid transparent !important; border-radius: var(--fx-kose) !important;
    box-shadow: none !important; font: 400 14px var(--fx-font) !important; transform: none !important;
  }
  html.ui-fluent body header #loginBtn:hover,
  html.ui-fluent body header #logoutBtn:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent body header #logoutBtn { white-space: nowrap; flex: none; }

  /* ---------- 3. Kenetleme alanı (dockview) ---------- */
  html.ui-fluent body main {
    display: block !important; position: relative !important; height: auto !important; min-height: 0 !important;
    overflow: hidden !important; background: var(--fx-zemin);
  }
  html.ui-fluent #fxDock { position: absolute; inset: 0 4px 4px; }
  html.ui-fluent .fx-dock { font-family: var(--fx-font); }
  html.ui-fluent .fx-dock,
  html.ui-fluent .fx-dock .dockview-theme-light {
    --dv-group-view-background-color: var(--fx-yuzey);
    --dv-tabs-and-actions-container-background-color: var(--fx-zemin);
    --dv-tabs-and-actions-container-height: 20px;
    --dv-tabs-and-actions-container-font-size: 12px;
    --dv-activegroup-visiblepanel-tab-background-color: var(--fx-yuzey);
    --dv-activegroup-hiddenpanel-tab-background-color: var(--fx-zemin);
    --dv-inactivegroup-visiblepanel-tab-background-color: var(--fx-yuzey);
    --dv-inactivegroup-hiddenpanel-tab-background-color: var(--fx-zemin);
    --dv-activegroup-visiblepanel-tab-color: var(--fx-metin);
    --dv-activegroup-hiddenpanel-tab-color: var(--fx-metin-3);
    --dv-inactivegroup-visiblepanel-tab-color: var(--fx-metin-2);
    --dv-inactivegroup-hiddenpanel-tab-color: var(--fx-metin-3);
    --dv-tab-divider-color: transparent;
    --dv-separator-border: var(--fx-cizgi);
    --dv-paneview-header-border-color: var(--fx-cizgi);
    --dv-drag-over-background-color: rgba(15, 108, 189, 0.12);
    --dv-drag-over-border: 2px solid var(--fx-marka);
    --dv-edge-dock-indicator-color: var(--fx-marka);
    --dv-active-sash-color: var(--fx-marka);
    --dv-floating-box-shadow: var(--fx-golge-menu);
    --dv-floating-border: 1px solid var(--fx-cizgi);
    --dv-icon-hover-background-color: var(--fx-yuzey-hover);
  }
  /* Sekme: Fluent sekme dili (etkin sekmede alt çizgi) */
  html.ui-fluent .fx-dock .dv-tab { font-family: var(--fx-font); padding: 0 2px; }
  html.ui-fluent .fx-dock .dv-tab .dv-default-tab { padding: 0 6px; gap: 4px; }
  html.ui-fluent .fx-dock .dv-groupview.dv-active-group > .dv-tabs-and-actions-container .dv-tab.dv-active-tab {
    box-shadow: inset 0 -2px 0 var(--fx-marka);
  }
  html.ui-fluent .fx-dock .dv-tab.dv-active-tab { font-weight: 600; }
  /* Gruplar arasında tek ayırıcı çizgi (dockview sash); çift kenarlık yok */
  html.ui-fluent .fx-dock .dv-groupview { border: 0; }
  html.ui-fluent .fx-dock .dv-tabs-and-actions-container { border-bottom: 1px solid var(--fx-cizgi); box-sizing: border-box; }
  html.ui-fluent .fx-dock .fx-sabit-sekme { display: flex; align-items: center; height: 100%; }
  /* Daraltılmış kenar şeridi: dar ve uzun dikey sekme, yazı tam görünür */
  html.ui-fluent .fx-dock .dv-groupview-header-vertical { background: var(--fx-zemin); --dv-tabs-and-actions-container-height: 22px; }
  html.ui-fluent .fx-dock .dv-groupview-header-vertical .dv-tab {
    padding: 14px 0 !important; min-height: 112px; box-sizing: border-box; justify-content: center;
    font-weight: 400 !important; box-shadow: none !important; cursor: pointer;
  }
  html.ui-fluent .fx-dock .dv-groupview-header-vertical .dv-tab:hover { background: var(--fx-yuzey-hover); }
  html.ui-fluent .fx-dock .dv-groupview-header-vertical .dv-tab .dv-default-tab,
  html.ui-fluent .fx-dock .dv-groupview-header-vertical .dv-tab .fx-sabit-sekme { padding: 0 !important; height: auto; }
  html.ui-fluent .fx-dock .dv-groupview-header-vertical .fx-grup-eylem { display: none; }
  /* Sol kenar sekmesindeki X: sekmeyi kenardan kaldırır */
  html.ui-fluent .fx-dock .fx-kenar-sekme { gap: 6px; justify-content: center; }
  html.ui-fluent .fx-dock .fx-kenar-sekme .dv-default-tab-content { flex: none; }
  html.ui-fluent .fx-dock .fx-sekme-kapat {
    display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none;
    font-size: 12px; border-radius: 3px; color: var(--fx-metin-3); cursor: pointer;
  }
  html.ui-fluent .fx-dock .fx-sekme-kapat:hover { background: var(--fx-cizgi); color: var(--fx-metin); }
  html.ui-fluent .fx-dock .fx-sekme-kapat:focus-visible { outline: 2px solid var(--fx-marka); outline-offset: 1px; }
  html.ui-fluent .fx-grup-eylem { display: flex; align-items: center; height: 100%; padding: 0 2px; }
  html.ui-fluent .fx-grup-eylem fluent-button { min-width: 20px; height: 20px; min-height: 20px; padding: 0 !important; }
  /* Daraltılmış kenar şeridi: dikey sekme adı */
  html.ui-fluent .fx-dock .dv-tab .fx-sabit-sekme .dv-default-tab-content { white-space: nowrap; }

  html.ui-fluent .fx-dp { position: relative; width: 100%; height: 100%; overflow: hidden; background: var(--fx-yuzey); }
  html.ui-fluent .fx-dp-harita > .map-wrap { position: absolute !important; inset: 0 !important; }
  html.ui-fluent .fx-dp-harita > .map-wrap > #map { width: 100%; height: 100%; }
  /* map.js #map'e satır içi visibility:visible veriyor: sekme arkadayken (katman gizli) harita da gizlensin,
     yoksa konumu güncellenmeyen katman sekme çubuğunun üstüne biner ve tıklamaları yutar */
  html.ui-fluent .dv-render-overlay[style*="visibility: hidden"] .fx-dp-harita #map { visibility: hidden !important; }
  html.ui-fluent .fx-dp-sayfa iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--fx-yuzey); }
  html.ui-fluent .fx-parsel-bos {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 24px; text-align: center; color: var(--fx-metin-3); font: 400 13px/18px var(--fx-font);
  }
  html.ui-fluent .fx-parsel-bos[hidden] { display: none; }
  html.ui-fluent .fx-parsel-bos b { color: var(--fx-metin); font-weight: 600; font-size: 14px; }

  /* Sol kenar panelleri: üstte ad + kapat, altında kaydırılan içerik */
  html.ui-fluent .fx-dp-arama, html.ui-fluent .fx-dp-altlik, html.ui-fluent .fx-dp-alanlar { display: flex; flex-direction: column; }
  html.ui-fluent .fx-kenar-baslik {
    flex: none; display: flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 4px 0 12px;
    border-bottom: 1px solid var(--fx-cizgi); font: 600 13px/18px var(--fx-font); color: var(--fx-metin);
  }
  html.ui-fluent .fx-kenar-baslik fluent-button { min-width: 24px; height: 24px; min-height: 24px; padding: 0 !important; }
  html.ui-fluent .fx-dp-arama > #filterPanel { flex: 1; min-height: 0; height: auto !important; }
  /* Altlık ve Alanlar: mevcut açılır menüler panelde hep açık durur (satır içi display'i ezer) */
  html.ui-fluent .fx-dp-altlik > #layerDropdownMenu, html.ui-fluent .fx-dp-alanlar > #areasDropdown { flex: 1; min-height: 0; overflow-y: auto !important; }
  html.ui-fluent .fx-dp-altlik > #layerDropdownMenu,
  html.ui-fluent .fx-dp-alanlar > #areasDropdown {
    display: block !important; position: static !important; inset: auto !important; margin: 0 !important;
    width: auto !important; min-width: 0 !important; max-height: none !important;
    background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    padding: 4px 0 8px !important; font: 400 13px/18px var(--fx-font); color: var(--fx-metin);
  }
  /* Bölüm başlıkları (Harita katmanı, Ortofoto katmanları) */
  html.ui-fluent #layerDropdownMenu > div:not([id]),
  html.ui-fluent #orthoSection > div:not([id]) {
    background: transparent !important; border: 0 !important; padding: 10px 12px 4px !important;
    font: 600 12px/16px var(--fx-font) !important; color: var(--fx-metin-3) !important;
  }
  html.ui-fluent #layerDropdownMenu .layer-option,
  html.ui-fluent #orthoLayerList label {
    min-height: 32px; padding: 0 12px !important; box-sizing: border-box; border-radius: var(--fx-kose);
    margin: 0 4px; background: transparent !important;
  }
  html.ui-fluent #layerDropdownMenu .layer-option:hover,
  html.ui-fluent #orthoLayerList label:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent #layerDropdownMenu .layer-option span,
  html.ui-fluent #orthoLayerList label span { font: 400 13px/18px var(--fx-font) !important; color: var(--fx-metin) !important; }
  html.ui-fluent #layerDropdownMenu input, html.ui-fluent #areasDropdown input[type="checkbox"]:not(.group-cb) { accent-color: var(--fx-marka); }
  html.ui-fluent .fx-dp-alanlar > #areasDropdown { padding: 8px !important; }
  html.ui-fluent #areasDropdown .area-header { background: var(--fx-yuzey-2) !important; padding: 6px 8px !important; border-radius: var(--fx-kose) !important; }
  html.ui-fluent #areasDropdown .area-header:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent #areasDropdown span, html.ui-fluent #areasDropdown label { font-family: var(--fx-font) !important; }

  /* ---------- Pencereler, sağ tık menüsü, bildirimler (mevcut kodun satır içi stilleri ezilir; ana.js katmanlariUyarla) ---------- */
  html.ui-fluent .fx-modal-ortu { background: rgba(0, 0, 0, .4) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  html.ui-fluent .fx-modal-ortu > div:first-child {
    background: var(--fx-yuzey) !important; border: 0 !important; border-radius: 8px !important; color: var(--fx-metin);
    box-shadow: var(--shadow64, 0 0 8px rgba(0,0,0,.12), 0 32px 64px rgba(0,0,0,.14)) !important; font-family: var(--fx-font) !important;
  }
  html.ui-fluent .fx-modal-ortu > div:first-child > :first-child { background: var(--fx-yuzey) !important; border-bottom-color: var(--fx-cizgi) !important; }
  html.ui-fluent .fx-modal-ortu > div:first-child > :first-child :is(h1, h2, h3) { font: 600 16px/22px var(--fx-font) !important; color: var(--fx-metin) !important; }
  html.ui-fluent .fx-modal-ortu :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select, textarea) {
    border: 1px solid var(--fx-cizgi-1) !important; border-bottom-color: var(--fx-cizgi-alt) !important; border-radius: var(--fx-kose) !important;
    background-color: var(--fx-yuzey) !important; box-shadow: none !important; font-family: var(--fx-font) !important; font-size: 14px !important;
  }
  html.ui-fluent .fx-modal-ortu :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), select) {
    height: 32px !important; min-height: 32px; padding: 0 10px !important; box-sizing: border-box;
  }
  html.ui-fluent .fx-modal-ortu :is(input, select, textarea):focus { outline: none !important; border-bottom: 2px solid var(--fx-marka) !important; }
  html.ui-fluent .fx-modal-ortu :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--fx-marka); }
  html.ui-fluent .fx-modal-ortu button { font-family: var(--fx-font) !important; border-radius: var(--fx-kose) !important; }
  html.ui-fluent .fx-modal-ortu button:is([style*="2546A9" i], [style*="rgb(37, 70, 169)"], [style*="2563eb" i], [style*="rgb(37, 99, 235)"]) {
    background: var(--fx-marka) !important; border-color: var(--fx-marka) !important; color: #fff !important;
  }
  html.ui-fluent .fx-ctx {
    background: var(--fx-yuzey) !important; border: 1px solid var(--fx-cizgi) !important; border-radius: var(--fx-kose-b) !important;
    box-shadow: var(--fx-golge-menu) !important; padding: 4px !important; font: 400 14px/20px var(--fx-font) !important; color: var(--fx-metin) !important;
  }
  html.ui-fluent .fx-ctx > button { box-sizing: border-box !important; min-height: 32px; padding: 6px 10px !important; border-radius: var(--fx-kose) !important; }
  html.ui-fluent .fx-ctx > button:hover { background: var(--fx-yuzey-hover) !important; }
  /* Bildirimler: haritanın alt ortası (iki yan paneli de örtmez), durum çubuğunun üstü */
  html.ui-fluent #periplus-toast-wrap { left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: calc(var(--fx-durum-h) + 12px) !important; }
  html.ui-fluent .periplus-toast { border-color: var(--fx-cizgi) !important; border-radius: var(--fx-kose-b) !important; box-shadow: var(--fx-golge-menu) !important; }
  html.ui-fluent .periplus-toast-hd { border-bottom-color: var(--fx-cizgi) !important; }
  html.ui-fluent .periplus-toast-body { font: 400 14px/20px var(--fx-font) !important; color: var(--fx-metin) !important; }
  html.ui-fluent .periplus-toast-bar.info { background: var(--fx-marka) !important; }
  html.ui-fluent .periplus-toast-bar.success { background: var(--colorStatusSuccessBackground3, #107c10) !important; }
  html.ui-fluent .periplus-toast-bar.warning { background: var(--colorStatusWarningBackground3, #f7630c) !important; }
  html.ui-fluent .periplus-toast-bar.error { background: var(--colorStatusDangerBackground3, #d13438) !important; }

  /* ---------- 4. Sol: Parsel arama ---------- */
  html.ui-fluent body .filter {
    position: relative !important; left: auto !important; top: auto !important; inset: auto !important;
    width: 100% !important; min-width: 0 !important; max-height: none !important; height: 100% !important;
    transform: none !important; opacity: 1 !important; pointer-events: auto !important;
    background: var(--fx-yuzey) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    overflow: visible !important; z-index: 1; transition: none !important;
    display: flex !important; flex-direction: column;
  }
  html.ui-fluent body .filter.collapsed { width: 100% !important; min-width: 0 !important; transform: none !important; opacity: 1 !important; pointer-events: auto !important; }
  html.ui-fluent body .filter .filter-content,
  html.ui-fluent body .filter.collapsed .filter-content {
    display: flex !important; flex-direction: column; flex: 1; min-height: 0; height: 100%; background: transparent !important;
  }
  /* Başlık ve huni sekmesi kenetleme sekmesiyle değişti */
  html.ui-fluent body .filter-head,
  html.ui-fluent body .filter .filter-tab { display: none !important; }

  html.ui-fluent body .filter-body {
    flex: 1; min-height: 0; overflow-y: auto !important; padding: 10px 10px 10px !important; scrollbar-width: thin;
    display: flex; flex-direction: column; gap: 8px;
  }
  html.ui-fluent body .filter-trail:empty { display: none; }
  html.ui-fluent body .filter-trail { font: 400 12px var(--fx-font); color: var(--fx-metin-3); }
  html.ui-fluent body .filter-group { margin: 0 !important; display: flex; flex-direction: column; gap: 4px; position: relative; }
  html.ui-fluent body .filter-group label {
    font: 600 12px/16px var(--fx-font) !important; color: var(--fx-metin-2) !important;
    text-transform: none !important; letter-spacing: 0 !important; margin: 0 !important;
  }
  html.ui-fluent body .filter-options {
    border: 1px solid var(--fx-cizgi) !important; border-radius: var(--fx-kose) !important;
    background: var(--fx-yuzey) !important; box-shadow: var(--fx-golge-menu) !important; font: 400 13px var(--fx-font) !important;
  }

  /* Akordiyonlar (Fluent akordiyon görünümü; mevcut aç/kapa mantığı korunur) */
  html.ui-fluent body .filter-accordion {
    margin: 0 -10px !important; border: 0 !important; border-top: 1px solid var(--fx-cizgi) !important;
    border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  }
  html.ui-fluent body .filter-accordion__toggle {
    width: 100%; height: 34px; padding: 0 10px !important; box-sizing: border-box;
    display: flex !important; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 8px;
    background: transparent !important; border: 0 !important; border-radius: 0 !important;
    font: 600 13px/18px var(--fx-font) !important; color: var(--fx-metin) !important; cursor: pointer; box-shadow: none !important;
  }
  html.ui-fluent body .filter-accordion__toggle:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent body .filter-accordion__toggle > span { display: flex; align-items: center; gap: 8px; }
  html.ui-fluent body .filter-accordion__icon { transform: rotate(-90deg); transition: transform .1s linear; color: var(--fx-metin-2); }
  html.ui-fluent body .filter-accordion__toggle[aria-expanded="true"] .filter-accordion__icon { transform: rotate(0deg); }
  html.ui-fluent body .fx-sayac {
    min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px;
    background: var(--fx-marka); color: #fff; font: 600 11px/18px var(--fx-font); text-align: center;
  }
  html.ui-fluent body .fx-sayac[hidden] { display: none; }
  html.ui-fluent body .filter-accordion__content { padding: 0 10px 8px 10px !important; background: transparent !important; border: 0 !important; }
  html.ui-fluent body .filter-area-list,
  html.ui-fluent body .filter-asset-list { display: flex; flex-direction: column; gap: 0 !important; max-height: none !important; }
  html.ui-fluent body .filter-area-item,
  html.ui-fluent body .filter-asset-item {
    display: flex !important; align-items: center; gap: 8px; min-height: 28px; padding: 0 4px !important; margin: 0 !important;
    border: 0 !important; border-radius: var(--fx-kose) !important; background: transparent !important;
    font: 400 13px/18px var(--fx-font) !important; color: var(--fx-metin) !important; box-shadow: none !important; cursor: pointer;
  }
  html.ui-fluent body .filter-area-item:hover,
  html.ui-fluent body .filter-asset-item:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent body .filter-area-item > span:not(.color-dot),
  html.ui-fluent body .filter-asset-item > span { flex: 1; min-width: 0; }
  html.ui-fluent body .filter-area-item .color-dot {
    width: 12px !important; height: 12px !important; border-radius: 2px !important; flex: none;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.2) !important;
  }
  /* Fluent anahtar (switch) */
  html.ui-fluent body .filter-toggle {
    width: 40px !important; height: 20px !important; box-sizing: border-box;
    background: var(--fx-yuzey) !important; border: 1px solid var(--fx-cizgi-alt) !important;
    border-radius: 999px !important; box-shadow: none !important; transition: none !important; flex: none;
  }
  html.ui-fluent body .filter-toggle::before {
    top: 3px !important; left: 3px !important; width: 12px !important; height: 12px !important;
    background: var(--fx-metin-2) !important; box-shadow: none !important; transition: left .1s linear !important;
  }
  html.ui-fluent body .filter-toggle-wrap input[type="checkbox"]:checked + .filter-toggle { background: var(--fx-marka) !important; border-color: var(--fx-marka) !important; }
  html.ui-fluent body .filter-toggle-wrap input[type="checkbox"]:checked + .filter-toggle::before { left: 23px !important; background: #fff !important; }
  html.ui-fluent body .filter-toggle-wrap.loading .filter-toggle { background: var(--colorPaletteYellowBackground2, #fef7b2) !important; animation: none !important; }

  html.ui-fluent body .filter-actions {
    padding: 10px 10px 6px !important; margin: 0 !important; border-top: 1px solid var(--fx-cizgi) !important;
    background: var(--fx-yuzey) !important; display: flex; flex-direction: column; gap: 6px;
  }
  html.ui-fluent body #filterSearch {
    height: 32px !important; width: 100%; border-radius: var(--fx-kose) !important;
    background: var(--fx-marka) !important; color: #fff !important; border: 0 !important;
    font: 600 14px var(--fx-font) !important; box-shadow: none !important; transform: none !important;
  }
  html.ui-fluent body #filterSearch:not(:disabled):hover { background: var(--fx-marka-hover) !important; }
  html.ui-fluent body #filterSearch:disabled { background: var(--colorNeutralBackgroundDisabled, #f0f0f0) !important; color: var(--colorNeutralForegroundDisabled, #bdbdbd) !important; opacity: 1 !important; }
  html.ui-fluent body .filter-hint { font: 400 12px/16px var(--fx-font) !important; color: var(--fx-metin-3) !important; margin: 0 !important; }
  html.ui-fluent body .filter-warning:empty { display: none; }
  html.ui-fluent body .filter-warning { font: 400 12px/16px var(--fx-font) !important; color: var(--colorPaletteRedForeground1, #bc2f32) !important; }
  html.ui-fluent body .filter-meta {
    display: flex !important; flex-direction: row !important; gap: 6px; padding: 0 10px 10px !important; margin: 0 !important;
    background: var(--fx-yuzey) !important; border: 0 !important;
  }
  html.ui-fluent body .filter-meta button {
    flex: 1; min-width: 0; height: 28px !important; padding: 0 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    background: var(--fx-yuzey) !important; color: var(--fx-metin) !important;
    border: 1px solid var(--fx-cizgi-1) !important; border-radius: var(--fx-kose) !important;
    font: 400 12px var(--fx-font) !important; box-shadow: none !important; cursor: pointer;
  }
  html.ui-fluent body .filter-meta button:hover { background: var(--fx-yuzey-hover) !important; }

  /* ---------- 5. Sağ: Parsel bilgisi ----------
     Tek sol hiza (16px), 8px'lik dikey ritim. Sıra: kimlik → özellikler (SİT, risk) → hızlı eylemler → bölümler. */
  html.ui-fluent body .panel {
    position: relative !important; right: auto !important; top: auto !important; inset: auto !important;
    width: 100% !important; min-width: 0 !important; max-height: none !important; height: 100% !important;
    background: var(--fx-yuzey) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    flex-direction: column; overflow: hidden !important; z-index: 1; transform: none !important;
  }
  html.ui-fluent body .panel-hd {
    display: flex !important; align-items: flex-start; gap: 8px; min-height: 0; box-sizing: border-box;
    padding: 14px 8px 12px 16px !important; border-bottom: 0 !important; background: transparent !important;
  }
  html.ui-fluent body .panel-hd > div:has(> #panelTitle) { display: none !important; }
  html.ui-fluent .fx-kimlik { flex: 1; min-width: 0; }
  html.ui-fluent .fx-kimlik-ad { font: 600 16px/22px var(--fx-font); color: var(--fx-metin); }
  html.ui-fluent .fx-kimlik-yer { font: 400 12px/16px var(--fx-font); color: var(--fx-metin-3); margin-top: 2px; }
  html.ui-fluent .fx-kimlik-kod {
    display: inline-flex; align-items: center; height: 20px; margin-top: 8px; padding: 0 6px; box-sizing: border-box;
    border: 1px solid var(--fx-cizgi); border-radius: var(--fx-kose); background: var(--fx-yuzey-2);
    font: 600 11px/1 var(--fx-font); letter-spacing: .02em; color: var(--fx-metin-2);
  }
  html.ui-fluent .fx-kimlik-kod[hidden] { display: none; }
  html.ui-fluent .fx-kimlik-eylem { display: flex; gap: 0; align-items: center; margin-top: -4px; }
  html.ui-fluent .fx-kimlik-eylem fluent-button { color: var(--fx-metin-3); }
  html.ui-fluent .fx-kimlik-eylem .fx-secili { color: var(--fx-marka-metin); }
  html.ui-fluent body #closePanel {
    width: 28px !important; height: 28px !important; min-height: 28px !important; padding: 0 !important; margin-top: -4px;
    font-size: 0 !important; display: inline-flex !important; align-items: center; justify-content: center;
    background: transparent !important; border: 0 !important; border-radius: var(--fx-kose) !important;
    color: var(--fx-metin-3) !important; box-shadow: none !important;
  }
  html.ui-fluent body #closePanel:hover { background: var(--fx-yuzey-hover) !important; color: var(--fx-metin) !important; }
  html.ui-fluent body #closePanel::before {
    content: ""; width: 16px; height: 16px; background-color: currentColor;
    -webkit-mask: var(--fi) center/contain no-repeat; mask: var(--fi) center/contain no-repeat;
  }
  html.ui-fluent body .panel-body { padding: 0 !important; overflow-y: auto !important; flex: 1; min-height: 0; scrollbar-width: thin; }
  html.ui-fluent #panelBody .fx-kod-secim { padding: 0 16px 12px; }

  html.ui-fluent #panelBody .fx-gizli,
  html.ui-fluent #panelBody > .divider,
  html.ui-fluent #panelBody .kv,
  html.ui-fluent #panelBody #measureControls { display: none !important; }

  /* Özellikler: etiket sütunu + çerçevesiz (tint) rozetler */
  html.ui-fluent #panelBody .fx-rozetler { display: grid; gap: 8px; padding: 0 16px 16px; }
  html.ui-fluent #panelBody .fx-rozet-grup { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: start; gap: 8px; }
  html.ui-fluent #panelBody .fx-rozet-etiket { padding-top: 2px; font: 400 12px/18px var(--fx-font); color: var(--fx-metin-3); }
  html.ui-fluent #panelBody .fx-rozet-grup .chips { display: flex; flex-wrap: wrap; gap: 4px !important; max-height: none !important; min-height: 0 !important; }
  html.ui-fluent #panelBody .chip,
  html.ui-fluent #panelBody .badge {
    display: inline-flex; align-items: center; height: 22px; box-sizing: border-box; margin: 0 !important;
    border: 0 !important; border-radius: var(--fx-kose) !important; font: 600 12px/16px var(--fx-font) !important;
    padding: 0 8px !important; box-shadow: none !important; background-image: none !important;
  }
  html.ui-fluent #panelBody .badge { background: color-mix(in srgb, currentColor 12%, transparent) !important; }
  /* Değer yoksa (—) rozet değil düz metin; SİT ve Risk aynı görünür */
  html.ui-fluent #panelBody .badge:not([class*="risk-"]),
  html.ui-fluent #panelBody .fx-rozet-grup .chips > span:only-child:not(.chip) {
    padding: 0 !important; background: transparent !important; color: var(--fx-metin-3) !important; font: 400 12px/22px var(--fx-font) !important;
  }

  /* Hızlı eylemler: açık zeminli kutucuklar, ikon üstte */
  html.ui-fluent #panelBody .fx-panel-eylem {
    display: grid !important; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)) !important; gap: 8px !important;
    margin: 0 !important; padding: 0 16px 16px !important; border: 0 !important; background: transparent !important;
  }
  html.ui-fluent #panelBody .fx-panel-eylem .btn {
    height: 60px !important; min-height: 60px !important; padding: 4px !important; width: auto !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    background: var(--fx-yuzey-2) !important; color: var(--fx-metin) !important;
    border: 1px solid var(--fx-cizgi) !important; border-radius: var(--fx-kose-b) !important;
    font: 400 12px/16px var(--fx-font) !important; box-shadow: none !important; transform: none !important; cursor: pointer;
  }
  html.ui-fluent #panelBody .fx-panel-eylem .btn[hidden] { display: none !important; }
  html.ui-fluent #panelBody .fx-panel-eylem .btn .ri { width: 24px; height: 24px; }
  html.ui-fluent #panelBody .fx-panel-eylem .btn:hover:not(:disabled):not(.periplus-disabled) { background: var(--fx-yuzey-hover) !important; border-color: var(--fx-cizgi-1) !important; }
  html.ui-fluent #panelBody .fx-panel-eylem .btn:active:not(:disabled):not(.periplus-disabled) { background: var(--colorNeutralBackground1Pressed, #e0e0e0) !important; }
  html.ui-fluent #panelBody .fx-panel-eylem .btn.periplus-disabled,
  html.ui-fluent #panelBody .fx-panel-eylem .btn:disabled { color: var(--colorNeutralForegroundDisabled, #bdbdbd) !important; background: var(--fx-yuzey) !important; cursor: default; }
  html.ui-fluent #panelBody .fx-panel-eylem .btn.periplus-disabled .ri,
  html.ui-fluent #panelBody .fx-panel-eylem .btn:disabled .ri { opacity: .4; filter: grayscale(1); }
  html.ui-fluent #panelBody .fx-eylem-ad { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

  /* Bölümler (Fluent akordiyon, ok sağda) */
  html.ui-fluent #panelBody .fx-bolumler { display: flex !important; flex-direction: column; align-items: stretch; width: 100%; border-top: 1px solid var(--fx-cizgi); }
  html.ui-fluent #panelBody fluent-accordion-item { display: block; width: 100%; max-width: none !important; border-bottom: 1px solid var(--fx-cizgi); }
  html.ui-fluent #panelBody fluent-accordion-item::part(heading) { padding-inline: 16px 8px; }
  html.ui-fluent #panelBody fluent-accordion-item::part(button) { padding: 0; }
  html.ui-fluent #panelBody fluent-accordion-item::part(content) { margin: 0; padding: 0 16px 16px; }
  html.ui-fluent #panelBody .fx-bolum-baslik { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 600 13px/18px var(--fx-font); color: var(--fx-metin); }
  html.ui-fluent #panelBody #noteIndicator { width: 6px !important; height: 6px !important; background: var(--fx-marka) !important; }

  /* Hatırlatıcı */
  html.ui-fluent #panelBody #accordionNotes,
  html.ui-fluent #panelBody #accordionShare {
    display: block !important; position: static !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    box-shadow: none !important; max-height: none !important; overflow: visible !important; background: transparent !important;
  }
  html.ui-fluent #panelBody #parcelNote,
  html.ui-fluent #panelBody #shareLink {
    box-sizing: border-box; width: 100% !important;
    border: 1px solid var(--fx-cizgi-1) !important; border-bottom-color: var(--fx-cizgi-alt) !important;
    border-radius: var(--fx-kose) !important; background: var(--fx-yuzey) !important; color: var(--fx-metin) !important;
    font: 400 13px/20px var(--fx-font) !important;
  }
  html.ui-fluent #panelBody #parcelNote { min-height: 72px !important; max-height: 200px !important; resize: vertical !important; padding: 8px 10px !important; }
  html.ui-fluent #panelBody #parcelNote::placeholder { color: var(--fx-metin-4); }
  html.ui-fluent #panelBody #parcelNote:focus,
  html.ui-fluent #panelBody #shareLink:focus { outline: none !important; border-bottom: 2px solid var(--fx-marka) !important; }
  html.ui-fluent #panelBody .fx-not-eylem { display: flex; justify-content: flex-end; gap: 8px; }
  html.ui-fluent #panelBody .fx-not-eylem:has(> div:not([style*="display: none"]):not([style*="display:none"])) { margin-top: 8px; }
  html.ui-fluent #panelBody .fx-not-eylem > div { gap: 8px !important; }
  html.ui-fluent #panelBody #btnNoteSave,
  html.ui-fluent #panelBody #btnNoteCancel,
  html.ui-fluent #panelBody #btnNoteDelete {
    width: auto !important; height: 28px !important; padding: 0 12px !important; border-radius: var(--fx-kose) !important;
    font: 600 13px var(--fx-font) !important; cursor: pointer;
  }
  html.ui-fluent #panelBody #btnNoteSave { background: var(--fx-marka) !important; border: 1px solid var(--fx-marka) !important; color: #fff !important; }
  html.ui-fluent #panelBody #btnNoteCancel,
  html.ui-fluent #panelBody #btnNoteDelete { background: var(--fx-yuzey) !important; border: 1px solid var(--fx-cizgi-1) !important; color: var(--fx-metin) !important; }

  /* Planlamalar: öncelik noktası · başlık · tarih (tek satır) */
  html.ui-fluent #panelBody #parcelPlannings { margin: 0 !important; padding: 0 !important; border: 0 !important; min-height: 0 !important; }
  html.ui-fluent #panelBody #parcelPlannings > div:not(.planning-sidebar-item) { display: none !important; }
  html.ui-fluent #panelBody #parcelPlannings:empty::before {
    content: "Bu parsel için planlama yok."; display: block; padding: 2px 0 4px; font: 400 13px var(--fx-font); color: var(--fx-metin-3);
  }
  html.ui-fluent #panelBody .planning-sidebar-item {
    display: grid !important; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
    min-height: 36px; margin: 0 -8px !important; padding: 0 8px !important; box-sizing: border-box;
    border: 0 !important; border-radius: var(--fx-kose) !important; background: transparent !important;
    font: 400 13px/18px var(--fx-font) !important;
  }
  html.ui-fluent #panelBody .planning-sidebar-item::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fx-oncelik, var(--fx-marka));
  }
  html.ui-fluent #panelBody .planning-sidebar-item:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent #panelBody .planning-sidebar-item > div { margin: 0 !important; font-size: 13px !important; font-weight: 400 !important; color: var(--fx-metin) !important; }
  html.ui-fluent #panelBody .planning-sidebar-item > div + div { font-size: 12px !important; color: var(--fx-metin-3) !important; white-space: nowrap; }
  html.ui-fluent #panelBody .fx-yeni-plan { margin: 8px 0 0 -8px; }

  /* Başlıktaki arama: tarayıcının temizle düğmesi ince gri ×, öneri listesi Fluent menü */
  html.ui-fluent header #search::-webkit-search-cancel-button {
    -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 4px; cursor: pointer; background-color: var(--fx-metin-3);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='1.3' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat;
  }
  html.ui-fluent header #search::-webkit-search-cancel-button:hover { background-color: var(--fx-metin); }
  html.ui-fluent #search_suggest {
    top: calc(100% + 4px) !important; padding: 4px !important; border: 1px solid var(--fx-cizgi) !important;
    border-radius: var(--fx-kose-b) !important; box-shadow: var(--fx-golge-menu) !important; background: var(--fx-yuzey) !important;
    font: 400 14px/20px var(--fx-font) !important; color: var(--fx-metin) !important;
  }
  html.ui-fluent #search_suggest .srow { min-height: 32px; box-sizing: border-box; padding: 6px 8px !important; border-radius: var(--fx-kose) !important; }
  html.ui-fluent #search_suggest .srow:hover { background: var(--fx-yuzey-hover) !important; }
  html.ui-fluent #search_suggest .srow > span:first-child {
    border: 0 !important; border-radius: var(--fx-kose) !important; background: var(--fx-yuzey-2); color: var(--fx-metin-3) !important;
    font: 600 11px/16px var(--fx-font) !important; padding: 0 6px !important;
  }

  /* ---------- 6. Durum çubuğu (mevcut alt bar) ---------- */
  html.ui-fluent #subHeaderHint:empty { display: none !important; }
  html.ui-fluent body .sub-header {
    height: var(--fx-durum-h) !important; padding: 0 12px !important; gap: 16px !important;
    background: var(--fx-zemin) !important; border-top: 0 !important;
    font: 400 12px var(--fx-font) !important; color: var(--fx-metin-3) !important; box-shadow: none !important;
  }
  html.ui-fluent body .sub-header-left,
  html.ui-fluent body .sub-header-right { gap: 16px !important; }
  html.ui-fluent body .sub-header-hint,
  html.ui-fluent body .sub-header-coords,
  html.ui-fluent body .sub-header-coords-hint,
  html.ui-fluent body .sub-header-measure { font: 400 12px var(--fx-font) !important; color: var(--fx-metin-3) !important; background: transparent !important; border: 0 !important; padding: 0 !important; }
  html.ui-fluent body .sub-header-brand { font: 400 11px var(--fx-font) !important; color: var(--fx-metin-4) !important; position: static !important; transform: none !important; order: 9; }
  html.ui-fluent body .sub-header-right { order: 8; }
  /* Komutlar ribbon'a taşındı: alt bardaki düğmeler gizli (DOM'da kalır, ribbon onları tıklatır) */
  html.ui-fluent body #subHeaderFilterBtn,
  html.ui-fluent body #subHeaderToolsBtn,
  html.ui-fluent body #subHeaderAreasBtn,
  html.ui-fluent body #subHeaderPlanning,
  html.ui-fluent body #subHeaderMapQuery,
  html.ui-fluent body #subHeaderLocate,
  html.ui-fluent body #layerDropdownBtn,
  html.ui-fluent body #subHeaderZoomIn,
  html.ui-fluent body #subHeaderZoomOut,
  html.ui-fluent body .theme-switch { display: none !important; }
  html.ui-fluent body .tools-dropdown-wrapper,
  html.ui-fluent body .areas-dropdown-wrapper,
  html.ui-fluent body #layerDropdown { position: static !important; width: 0; height: 0; min-width: 0 !important; overflow: visible; }
  html.ui-fluent body #layerDropdownMenu,
  html.ui-fluent body #toolsDropdown { display: none !important; }
  html.ui-fluent body .sub-header-loading-pct { font: 600 12px var(--fx-font) !important; color: var(--fx-marka-metin) !important; }
  html.ui-fluent body .fx-durum-ek { font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* Hava durumu: düz metin */
  html.ui-fluent body #weatherCard {
    height: auto !important; min-height: 0 !important; width: auto !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    color: var(--fx-metin-3) !important; display: flex; align-items: center; gap: 6px; overflow: visible !important;
  }
  html.ui-fluent body #weatherCard[style*="display: none"],
  html.ui-fluent body #weatherCard[style*="display:none"] { display: none !important; }
  html.ui-fluent body #weatherCard .background,
  html.ui-fluent body #weatherCard .cloud,
  html.ui-fluent body #weatherCard .sun,
  html.ui-fluent body #weatherCard .rain { display: none !important; }
  html.ui-fluent body #weatherCard .main-text,
  html.ui-fluent body #weatherCard .info,
  html.ui-fluent body #weatherCard .location,
  html.ui-fluent body #weatherCard .description {
    position: static !important; transform: none !important; display: inline !important;
    font: 400 12px var(--fx-font) !important; color: var(--fx-metin-3) !important; text-shadow: none !important; margin: 0 !important;
  }
  html.ui-fluent body #weatherCard .main-text { font-weight: 600 !important; color: var(--fx-metin-2) !important; }
  html.ui-fluent body #weatherCard .info { display: inline-flex !important; flex-direction: row !important; gap: 6px; }

  /* ---------- 7. Alanlar paneli (ribbon düğmesinin altında) ve menüler ---------- */
  html.ui-fluent body #areasDropdown {
    position: fixed !important; top: var(--fx-ac-ust, 120px) !important; left: var(--fx-ac-sol, 12px) !important;
    bottom: auto !important; right: auto !important; margin: 0 !important; z-index: 9000 !important;
    min-width: 280px !important; padding: 4px 0 !important;
    background: var(--fx-yuzey) !important; border: 1px solid var(--fx-cizgi) !important;
    border-radius: var(--fx-kose-b) !important; box-shadow: var(--fx-golge-menu) !important;
    max-height: min(480px, calc(100vh - var(--fx-ac-ust, 120px) - 40px)) !important;
  }
  html.ui-fluent body #areasDropdown,
  html.ui-fluent body #areasDropdown * { font-family: var(--fx-font) !important; }
  html.ui-fluent .fx-menu-baslik { padding: 6px 12px 2px; font: 600 12px/16px var(--fx-font); color: var(--fx-metin-3); }

  /* ---------- 8. "Nerede açılsın?" penceresi ---------- */
  html.ui-fluent .fx-sor { font: 400 14px/20px var(--fx-font); color: var(--fx-metin); }
  html.ui-fluent .fx-sor p { margin: 0 0 12px; }
  html.ui-fluent .fx-sor-hatirla { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
  html.ui-fluent .fx-sor-hatirla input { width: 16px; height: 16px; accent-color: var(--fx-marka); margin: 0; }
  html.ui-fluent .fx-sor-not { margin-top: 12px !important; font-size: 12px; color: var(--fx-metin-3); }
}
