/* ============================================================
   داشبورد لوکس سه‌بخشی — نمایش هم‌زمان (بدون چرخش) روی یک مانیتور جدا،
   کنار داشبورد کیوسک (کیوسک می‌چرخد، این یکی هر سه بخش را همیشه با هم نشان
   می‌دهد): خروجی انبار + تیکت پشتیبانی + جدیدترین قطعات وارد گردش.
   همان تکنیک بومِ ثابت ۱۹۲۰×۱۰۸۰ + transform:scale() کیوسک، برای تناسب
   پیکسل‌به‌پیکسل با هر رزولوشن واقعی مانیتور. تمِ روشنِ لوکس (طلایی/سرمه‌ای)
   — طبق بازخورد قبلی کاربر درباره‌ی تمِ تیره، عمداً روشن طراحی شده است.
   ============================================================ */

.lux-root {
  display: none;
  position: fixed; inset: 0; z-index: 99998;
  background: #faf7f0;
  align-items: center; justify-content: center;
  overflow: hidden;
  direction: rtl;
  font-family: var(--font, system-ui, -apple-system, "Segoe UI", sans-serif);
}
.lux-root.on { display: flex; }

.lux-scale {
  width: 1920px; height: 1080px;
  flex-shrink: 0;
  position: relative;
  transform-origin: center center;
  background: #faf7f0;
  display: flex;
}

.lux-logo-bg {
  position: absolute; inset: 0; z-index: 0;
  background-repeat: no-repeat; background-position: center;
  background-size: 1700px;
  filter: grayscale(1) sepia(.3);
  opacity: 0.05;
  pointer-events: none;
}

.lux-exit {
  position: fixed; top: 18px; left: 18px; z-index: 100000;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(184,134,11,.25);
  color: #4a3f2a;
  padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(20,32,46,.10);
  opacity: .65;
  transition: opacity .2s;
}
.lux-exit:hover { opacity: 1; }
.lux-exit button {
  background: rgba(184,134,11,.12); border: none; color: #7a5c00;
  padding: 4px 12px; border-radius: 999px; font-family: inherit;
  font-size: 12px; font-weight: 700; cursor: pointer;
}
.lux-exit button:hover { background: rgba(184,134,11,.22); }

/* ============================================================
   سه ستون
   ============================================================ */
.lux-col {
  flex: 1; min-width: 0; height: 100%;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
  padding: 40px 30px;
  border-inline-start: 1px solid rgba(184,134,11,.22);
}
.lux-col:first-child { border-inline-start: none; }

.lux-head { flex-shrink: 0; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.lux-head-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #8a6d1f);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 6px;
  box-shadow: 0 6px 18px rgba(184,134,11,.35);
}
.lux-title { font-size: 22px; font-weight: 800; color: #2a2415; letter-spacing: .2px; }
.lux-sub { font-size: 12.5px; font-weight: 600; color: #9a8a5c; text-transform: uppercase; letter-spacing: 1px; }
.lux-rule { width: 46px; height: 2px; background: linear-gradient(90deg, transparent, #d4af37, transparent); margin: 8px auto 0; }

/* --- KPI جمع‌وجور --- */
.lux-kpis { flex-shrink: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.lux-kpi {
  background: #fff;
  border: 1px solid rgba(184,134,11,.18);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(20,32,46,.05);
}
.lux-kpi-value { font-size: 34px; font-weight: 800; color: #2a2415; line-height: 1; font-variant-numeric: tabular-nums; }
.lux-kpi-label { font-size: 12px; font-weight: 700; color: #9a8a5c; margin-top: 5px; }
.lux-kpi--warn .lux-kpi-value { color: #c98500; }
.lux-kpi--crit .lux-kpi-value { color: #b3261e; }
.lux-kpi--good .lux-kpi-value { color: #0ca30c; }

/* --- لیست --- */
/* نکته: .lux-list عمداً بدون height/overflow خودش است — اگر این‌جا هم
   overflow:hidden می‌گذاشتیم، محتوا همین‌جا (قبل از رسیدن به scrollHeight
   واقعیِ .lux-list-wrap) کلیپ می‌شد و اسکرول هیچ‌وقت واقعاً رخ نمی‌داد؛
   دقیقاً همین باعث می‌شد اسکرول هیچ‌کدام از سه ستون کار نکند. */
.lux-list-wrap { flex: 1; min-height: 0; overflow: hidden; }
.lux-list { display: flex; flex-direction: column; gap: 10px; }
.lux-card {
  background: #fff;
  border: 1px solid rgba(184,134,11,.15);
  border-inline-end: 4px solid var(--lux-accent, #d4af37);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(20,32,46,.04);
  flex-shrink: 0;
}
.lux-card-title { font-size: 16.5px; font-weight: 700; color: #2a2415; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lux-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 5px; }
.lux-card-meta { font-size: 13px; color: #8a7d5c; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* تاریخ خیلی مهم است - رنگ و وزن متمایز از بقیه‌ی متن کمکی */
.lux-card-date { font-size: 13px; color: #a8790b; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 4px; }
.lux-card-tag { flex-shrink: 0; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.lux-card--good     { --lux-accent: #0ca30c; }
.lux-card--warning  { --lux-accent: #c98500; }
.lux-card--serious  { --lux-accent: #c2571f; }
.lux-card--critical { --lux-accent: #b3261e; }
.lux-card--accent   { --lux-accent: #2a4a7a; }
.lux-card--muted    { --lux-accent: #b8a887; }

.lux-tag--good     { background: #e7f7e7; color: #0ca30c; }
.lux-tag--warning  { background: #fdf1dc; color: #a86a00; }
.lux-tag--serious  { background: #fdeee5; color: #c2571f; }
.lux-tag--critical { background: #fbe9e9; color: #b3261e; }
.lux-tag--accent   { background: #eaf0fa; color: #2a4a7a; }
.lux-tag--muted    { background: #f4f0e6; color: #8a7d5c; }

.lux-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; color: #b8a887;
  text-align: center; padding: 20px;
}
