/* ==========================================================================
   akteknik ERP v4.0 - Kurumsal İnşaat & Proje Yönetim Sistemi
   Tasarım Standardı: SAP/IFS Disiplini + e-MOR Operasyon Yoğunluğu
   Renk Standardı: Koyu Lacivert Üst Bar + Açık Gri (#F4F7FB) Çalışma Alanı
   ========================================================================== */

:root {
  /* Kurumsal Renk Standartları */
  --win-topbar-bg: #0f172a;       /* Koyu kurumsal lacivert */
  --win-topbar-border: #1e293b;
  --win-context-bg: #e9edf3;      /* Bağlam çubuğu açık gri */
  --win-tabbar-bg: #dbe1e8;       /* Sekme çubuğu gri */
  --app-canvas: #f4f7fb;          /* Çalışma alanı ana zemini (Tam istenen #F4F7FB) */
  --app-surface: #ffffff;         /* Kart ve tablo yüzeyi (Saf beyaz) */
  --app-sidebar-bg: #f8fafc;      /* Sol menü arka planı */

  /* Kenarlık ve Ayrım Çizgileri */
  --app-border: #cbd5e1;          /* 1px net belirgin kenarlık */
  --app-border-light: #e2e8f0;    /* İnce tablo ve kart çizgileri */
  --app-border-dark: #94a3b8;

  /* Metin ve Kontrast */
  --text-main: #0f172a;           /* Çok net ve koyu ana metin */
  --text-body: #1e293b;           /* Gövde ve tablo metni */
  --text-muted: #475569;          /* Yardımcı kurumsal gri metin */
  --text-dim: #64748b;            /* Açıklama ve etiket metni */

  /* Kurumsal Aksiyon Renkleri */
  --primary-navy: #1e3a8a;        /* Koyu lacivert / Royal Blue */
  --primary-navy-hover: #1e40af;
  --primary-navy-light: #eff6ff;

  /* Vurgular (AK Teknik Ölçülü Sarı + Durumlar) */
  --accent-gold: #f59e0b;         /* Ölçülü inşaat/kurumsal sarı */
  --accent-gold-hover: #d97706;
  
  --status-success-bg: #ecfdf5;   /* Yeşil */
  --status-success-text: #065f46;
  --status-warning-bg: #fffbeb;   /* Amber */
  --status-warning-text: #92400e;
  --status-danger-bg: #fef2f2;    /* Kırmızı */
  --status-danger-text: #991b1b;
  --status-info-bg: #eff6ff;      /* Mavi/Lacivert */
  --status-info-text: #1e40af;
  --status-neutral-bg: #f1f5f9;   /* Nötr gri */
  --status-neutral-text: #334155;

  /* Boyutlar (Yükseklik Tasarrufu Yapılmış Kompakt Header) */
  --topbar-height: 38px;          /* Başlık ve Menü tek kompakt satırda */
  --contextbar-height: 38px;      /* Şirket-Proje-Dönem satırı */
  --tabbar-height: 32px;          /* Sekme çubuğu */
  --statusbar-height: 26px;       /* Alt durum çubuğu */
  --sidebar-width: 264px;         /* Sol gezinme paneli */

  /* Tipografi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

/* Sıfırlama */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  background-color: #cbd5e1;
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  font-size: 13px;
}

/* ==========================================================================
   1. MASAÜSTÜ PENCERE GÖVDESİ (DESKTOP SHELL)
   ========================================================================== */
.desktop-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--app-canvas);
}

/* 1.1 Birleşik Üst Bar (Titlebar + Menü Tek Satırda) */
.win-unified-topbar {
  height: var(--topbar-height);
  background: var(--win-topbar-bg);
  color: #ffffff;
  border-bottom: 1px solid var(--win-topbar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  gap: 12px;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.win-logo-img {
  height: 18px;
  width: auto;
  filter: brightness(1.2);
}

.brand-title {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.topbar-menu-items {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 8px;
}

.top-menu-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.12s ease;
}

.top-menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.topbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 440px;
  margin: 0 12px;
}

.topbar-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-search:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.topbar-search kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
  color: #94a3b8;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 3px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.user-badge-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 3px 8px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.user-badge-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.user-avatar-sq {
  width: 18px;
  height: 18px;
  background: var(--primary-navy);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.win-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 6px;
}

.win-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  cursor: pointer;
  font-size: 11px;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.win-btn.close:hover {
  background: #dc2626;
  color: #ffffff;
}

/* ==========================================================================
   2. BAĞLAM ÇUBUĞU (CONTEXT STRIP - Şirket, Proje, Dönem)
   ========================================================================== */
.win-contextbar {
  height: var(--contextbar-height);
  background: var(--win-context-bg);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 12px;
}

.context-selectors {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ctx-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctx-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ctx-select, .ctx-input {
  background: #ffffff;
  border: 1px solid var(--app-border);
  border-radius: 3px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  outline: none;
  cursor: pointer;
  height: 27px;
}

.ctx-select:focus, .ctx-input:focus {
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.15);
}

.context-quick-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   3. MDI SEKME ÇUBUĞU (MULTI-DOCUMENT TABS)
   ========================================================================== */
.win-tabbar {
  height: var(--tabbar-height);
  background: var(--win-tabbar-bg);
  border-bottom: 1px solid var(--app-border);
  display: flex;
  align-items: flex-end;
  padding: 0 8px;
  gap: 2px;
  overflow-x: auto;
}

.tab-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #cbd5e1;
  border: 1px solid var(--app-border);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  height: 28px;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.tab-item:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.tab-item.active {
  background: var(--app-canvas);
  color: var(--primary-navy);
  font-weight: 700;
  border-color: var(--app-border);
  border-top: 2px solid var(--primary-navy);
  height: 30px;
}

.tab-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  font-size: 10px;
  opacity: 0.6;
}

.tab-close:hover {
  background: #cbd5e1;
  opacity: 1;
  color: #dc2626;
}

.new-tab-btn {
  background: transparent;
  border: none;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  color: #475569;
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 2px;
}

.new-tab-btn:hover {
  background: #cbd5e1;
  color: var(--text-main);
}

/* ==========================================================================
   4. ANA GÖVDE: SOL MENÜ (SIDEBAR) + CANVAS
   ========================================================================== */
.win-body {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--app-canvas);
}

/* 4.1 Sol Menü Ağacı */
.win-sidebar {
  width: var(--sidebar-width);
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-search-box {
  padding: 6px 10px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--app-border-light);
}

.sidebar-search-input {
  width: 100%;
  padding: 5px 8px;
  font-size: 12px;
  border: 1px solid var(--app-border);
  border-radius: 3px;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
}

.sidebar-search-input:focus {
  border-color: var(--primary-navy);
}

.sidebar-nav-container {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

/* Menü Ağacı Grupları */
.nav-group-title {
  padding: 10px 12px 4px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--app-sidebar-bg);
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}

.nav-module-item {
  display: flex;
  flex-direction: column;
}

.nav-module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.12s ease;
}

.nav-module-header:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
}

.nav-module-header.expanded {
  background: #e2e8f0;
  color: var(--primary-navy);
  border-left-color: var(--primary-navy);
}

.nav-module-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-module-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  color: #475569;
}

.nav-module-header.expanded .nav-module-icon {
  color: var(--primary-navy);
}

.nav-module-chevron {
  font-size: 10px;
  color: #94a3b8;
  transition: transform 0.15s ease;
}

.nav-module-header.expanded .nav-module-chevron {
  transform: rotate(90deg);
}

.nav-screens-list {
  display: none;
  background: #edf2f7;
  border-bottom: 1px solid var(--app-border-light);
  padding: 2px 0;
}

.nav-module-item.open .nav-screens-list {
  display: block;
}

.nav-screen-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 6px 34px;
  font-size: 12.5px;
  color: var(--text-body);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
}

.nav-screen-link:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
  font-weight: 600;
}

.nav-screen-link.active {
  background: var(--primary-navy);
  color: #ffffff !important;
  font-weight: 700;
}

.nav-count-badge {
  font-size: 10px;
  font-weight: 700;
  background: #cbd5e1;
  padding: 1px 5px;
  border-radius: 10px;
  color: #1e293b;
}

.nav-screen-link.active .nav-count-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.sidebar-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--app-border);
  background: #f1f5f9;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

/* ==========================================================================
   5. ANA ÇALIŞMA ALANI (CANVAS & LAYOUT)
   ========================================================================== */
.win-canvas {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--app-canvas);
}

/* Sayfa Başlık Çubuğu */
.screen-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 4px;
  padding: 10px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.screen-header-title h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.screen-header-title p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.screen-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 3px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.12s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-navy-hover);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--app-border);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 11.5px;
}

/* ==========================================================================
   6. İKİ PANELLİ ÇALIŞMA ALANI (OPERASYONEL YOĞUNLUK & SAĞ PANEL)
   ========================================================================== */
.workspace-split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
  align-items: start;
}

.workspace-split-layout.full-width {
  grid-template-columns: 1fr;
}

/* Sağ Bağlamsal Panel (Quick Inspector) */
.side-inspector-panel {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.inspector-head {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid var(--app-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.inspector-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.inspector-meta-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--app-border-light);
}

.inspector-meta-label {
  color: var(--text-muted);
  font-weight: 500;
}

.inspector-meta-value {
  font-weight: 600;
  color: var(--text-main);
}

.inspector-actions-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   7. KURUMSAL ERP VERİ TABLOSU (ENTERPRISE DATA GRID)
   ========================================================================== */
.table-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.table-toolbar {
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--app-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-pill {
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid var(--app-border);
  border-radius: 3px;
  background: #ffffff;
  color: var(--text-body);
  cursor: pointer;
}

.filter-pill.active {
  background: var(--primary-navy-light);
  border-color: var(--primary-navy);
  color: var(--primary-navy);
  font-weight: 700;
}

.table-scroll-wrap {
  overflow-x: auto;
  max-height: 520px;
}

.erp-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.erp-data-table th {
  background: #e9edf3;
  color: #334155;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--app-border);
  border-right: 1px solid #dbe1e8;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.erp-data-table th:last-child {
  border-right: none;
}

.erp-data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--app-border-light);
  border-right: 1px solid #f1f5f9;
  color: var(--text-body);
  vertical-align: middle;
}

.erp-data-table td:last-child {
  border-right: none;
}

.erp-data-table tr:hover td {
  background: #f1f5f9;
}

.erp-data-table tr.selected td {
  background: #e0f2fe;
}

.erp-data-table td.num, .erp-data-table th.num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Durum Rozetleri */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.badge-success { background: var(--status-success-bg); color: var(--status-success-text); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning-text); }
.badge-danger { background: var(--status-danger-bg); color: var(--status-danger-text); }
.badge-info { background: var(--status-info-bg); color: var(--status-info-text); }
.badge-neutral { background: var(--status-neutral-bg); color: var(--status-neutral-text); }

/* Tablo Alt Bilgi Çubuğu */
.table-footbar {
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid var(--app-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   8. METRİKLER VE DASHBOARD (ÖLÇÜLÜ & DİSİPLİNLİ)
   ========================================================================== */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.metric-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 4px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.metric-card-val {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.metric-card-sub {
  font-size: 11px;
  color: var(--text-dim);
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 12px;
}

/* ==========================================================================
   9. ALT DURUM ÇUBUĞU (STATUS BAR - PROFESYONEL İŞLETME UYGULAMASI)
   ========================================================================== */
.win-statusbar {
  height: var(--statusbar-height);
  background: #e2e8f0;
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 11.5px;
  color: #334155;
  font-weight: 600;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   10. MODALLAR (OTURUM AÇMA & GLOBAL ARAMA)
   ========================================================================== */
.dialog-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(3px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.dialog-overlay.active {
  display: flex;
}

.modal-box {
  background: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--app-border);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.modal-head {
  background: var(--win-topbar-bg);
  color: #ffffff;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 1200px) {
  .workspace-split-layout {
    grid-template-columns: 1fr;
  }
  .side-inspector-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .win-sidebar {
    position: absolute;
    top: calc(var(--topbar-height) + var(--contextbar-height));
    bottom: var(--statusbar-height);
    left: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .win-sidebar.mobile-open {
    transform: translateX(0);
  }
  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}
