/* ==========================================================================
   نظام إدارة وجدولة مواعيد رئيس اتحاد الغرف التجارية العراقية
   الهندسة والتصميم التنفيذي الرئاسي الرفيع - Presidential Executive Precision Design System
   ========================================================================== */

/* الخطوط تُحمَّل من index.php (بدون @import مكرر لتسريع الصفحة) */

:root {
  /* لوحة الألوان الرئاسية والتنفيذية الرسمية */
  --primary: #0284c7;             /* أزرق سماوي ملكي ناصع */
  --primary-hover: #0369a1;       /* أزرق نيلي تنفيذي */
  --primary-dark: #075985;        /* كحلي ملكي عميق */
  --primary-subtle: #f0f9ff;      /* خلفية زرقاء فائقة النقاء */
  --primary-border: #bae6fd;      /* إطار أزرق سماوي ناعم */
  --primary-glow: rgba(2, 132, 199, 0.18);

  --gold: #d97706;                /* ذهبي عنبري رسمي دافئ */
  --gold-light: #f59e0b;          /* ذهبي ساطع مشرق */
  --gold-hover: #b45309;          /* ذهبي برونزي فاخر */
  --gold-subtle: #fffbeb;         /* خلفية ذهبية ناعمة */
  --gold-border: #fde68a;         /* إطار ذهبي رقيق */
  --gold-glow: rgba(245, 158, 11, 0.22);

  --emerald: #059669;             /* أخضر زمردي رسمي */
  --emerald-light: #10b981;       /* زمردي حيوي للمواعيد والتأكيد */
  --emerald-hover: #047857;
  --emerald-subtle: #ecfdf5;      /* خلفية خضراء هادئة */
  --emerald-border: #a7f3d0;
  --emerald-glow: rgba(16, 185, 129, 0.2);

  --rose: #e11d48;                /* أحمر قرمزي رسمي للتنبيهات العاجلة */
  --rose-light: #f43f5e;
  --rose-subtle: #fff1f2;
  --rose-border: #fecdd3;
  --rose-glow: rgba(244, 63, 94, 0.2);

  --purple: #7c3aed;              /* بنفسجي تنفيذي نقي */
  --purple-subtle: #f5f3ff;
  --purple-border: #ddd6fe;

  /* درجات الرمادي والأسطح */
  --slate-900: #0f172a;           /* أسود نيلي للخطوط الرئيسية */
  --slate-800: #1e293b;
  --slate-700: #334155;           /* رمادي غامق للقراءة المريحة */
  --slate-600: #475569;
  --slate-500: #64748b;           /* رمادي وسيط للعناوين الفرعية */
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;           /* إطارات رقيقة */
  --slate-100: #f1f5f9;           /* خلفيات الحاويات */
  --slate-50: #f8fafc;            /* أرضية الشاشة */

  --surface-white: #ffffff;
  --surface-ground: #f8fafc;
  --text-main: var(--slate-900);
  --text-muted: var(--slate-500);
  --border-light: #e2e8f0;

  /* ظلال ناعمة هندسية متعددة الطبقات (Layered Executive Shadows) */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 5px -1px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow-blue: 0 8px 24px -2px var(--primary-glow);
  --shadow-glow-gold: 0 8px 24px -2px var(--gold-glow);

  --font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --font-heading: 'Cairo', 'Tajawal', system-ui, sans-serif;
}

/* ==========================================================================
   التنسيق العام وخلفية النظام الرئاسية
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ملاحظة: overflow-x على html فقط — وضعه على body يكسر position:sticky لشريط التنقل */
html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface-ground);
  background-image: 
    radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.75) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(254, 243, 199, 0.55) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(209, 250, 229, 0.45) 0px, transparent 55%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* حاوية النظام الرئيسية المنضبطة لكافة الشاشات والمقاسات */
.executive-main-container {
  max-width: 1580px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

h1, h2, h3, h4, h5, h6, .fw-bold, .fw-bolder {
  font-family: var(--font-heading);
  letter-spacing: -0.2px;
}

/* شريط تمرير أنيق ونحيف مخصص */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ==========================================================================
   البطاقات التنفيذية الرئاسية (Executive Precision Cards)
   ========================================================================== */
.executive-card {
  background: var(--surface-white);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.executive-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

/* ==========================================================================
   شريط التنقل العلوي الفاخر (Executive Navbar)
   ========================================================================== */
.executive-navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1.5px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.2s ease;
}

/* خط تزييني ذهبي-أزرق ناعم أسفل شريط التنقل */
.executive-navbar::after {
  content: '';
  position: absolute;
  bottom: -1.5px;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 35%, #f59e0b 70%, #d97706 100%);
  opacity: 0.9;
}

.system-logo-img {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-logo-img:hover {
  transform: scale(1.03);
}

.dynamic-site-title {
  color: var(--slate-900);
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}

/* ساعة بغداد الحية الرسمية */
.live-clock-badge {
  background: #ffffff;
  border: 1.5px solid var(--primary-border);
  color: var(--primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.45rem 1.1rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease;
}

.live-clock-badge:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.14);
}

/* نبض البث المباشر الحي */
.sse-pulse-dot {
  width: 9px;
  height: 9px;
  background-color: var(--emerald-light);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ssePulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes ssePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* زر إشعارات سطح المكتب (Desktop Push Pill) */
#btnToggleDesktopNotif {
  border: 1.5px solid #cbd5e1;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#btnToggleDesktopNotif:hover {
  background: var(--primary-subtle) !important;
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}

/* جرس التنبيهات الرئاسي الفاخر */
.notification-bell-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #ffffff;
  border: 1.5px solid var(--primary-border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
}

.notification-bell-btn:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-blue);
}

.notification-bell-btn .bell-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.notification-bell-btn.has-urgent .bell-badge {
  animation: pulseAlert 1.5s infinite;
}

@keyframes pulseAlert {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(225, 29, 72, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
}

/* ==========================================================================
   بطاقة الموعد القادم لرئيس الاتحاد (Hero Presidential Hub)
   ========================================================================== */
.presidential-next-hub {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #f0fdf4 100%);
  border: 1.5px solid #bae6fd;
  border-radius: 22px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.presidential-next-hub::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
}

.presidential-next-hub:hover {
  box-shadow: var(--shadow-lg);
  border-color: #7dd3fc;
  transform: translateY(-2px);
}

#nextAppTitle {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.35;
}

/* خانات العداد التنازلي الرئاسي */
.countdown-digit-box {
  background: #ffffff;
  border: 1.5px solid #e0f2fe;
  border-radius: 14px;
  padding: 0.6rem 0.95rem;
  min-width: 72px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(2, 132, 199, 0.08);
  transition: all 0.2s ease;
}

.countdown-digit-box:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.countdown-digit-box .count-num {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

.countdown-digit-box .count-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-500);
  margin-top: 2px;
}

/* مؤشر الاجتماع الجاري الآن */
#activeMeetingProgressBox {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--emerald-border);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.08);
}

/* ==========================================================================
   بطاقات المؤشرات الثلاث (Metric Cards)
   ========================================================================== */
.metric-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 20px;
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.metric-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.metric-card.border-primary-accent::after { background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%); }
.metric-card.border-warning-accent::after { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.metric-card.border-success-accent::after { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #e2e8f0;
}

.metric-card h2 {
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.metric-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}

.metric-card:hover .metric-icon-box {
  transform: scale(1.08) rotate(-4deg);
}

/* ==========================================================================
   شريط أقسام التنقل الموحدة (Segmented Unified Nav Pills) المتجاوب
   ========================================================================== */
.nav-pills-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
  padding-bottom: 2px;
}

.nav-pills-scroll-container::-webkit-scrollbar {
  display: none;
}

.nav-executive-pills {
  background: #f1f5f9;
  padding: 5px;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  display: inline-flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  gap: 3px;
}

.nav-executive-pills .nav-link {
  border-radius: 12px;
  color: var(--slate-600);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border: none;
  font-size: 0.92rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-executive-pills .nav-link i {
  font-size: 1.05rem;
}

.nav-executive-pills .nav-link.active {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.08);
}

.nav-executive-pills .nav-link:hover:not(.active) {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.65);
}

/* حاوية أزرار الفلترة السريعة القابلة للتمرير على الهواتف */
.quick-filters-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  max-width: 100%;
}

.quick-filters-scroll-container::-webkit-scrollbar {
  display: none;
}

/* أزرار الفلترة السريعة للمواعيد (Quick Date Pills) */
.quick-filter-btn {
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  color: var(--slate-600);
  border-radius: 25px;
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.4rem 1.05rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xs);
}

.quick-filter-btn:hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: var(--primary-border);
  transform: translateY(-1px);
}

.quick-filter-btn.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   الأزرار الرسمية والتنفيذية الفاخرة (Vibrant Buttons)
   ========================================================================== */
.btn-vibrant-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 14px;
  padding: 0.65rem 1.45rem;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-vibrant-gold:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.38);
}

.btn-vibrant-gold:active {
  transform: scale(0.98);
}

.btn-vibrant-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 14px;
  padding: 0.65rem 1.45rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vibrant-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.38);
}

.btn-vibrant-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 14px;
  padding: 0.65rem 1.45rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.26);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-vibrant-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.36);
}

/* ==========================================================================
   جدول المواعيد الرئاسي العائم (Floating Executive Table)
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  position: relative;
}

.table-executive {
  width: 100%;
  min-width: 820px;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.table-executive thead th {
  background: transparent;
  border: none;
  color: var(--slate-500);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  letter-spacing: -0.2px;
}

.table-executive tbody tr {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.table-executive tbody tr td {
  padding: 1.15rem 1.25rem;
  vertical-align: middle;
  border: 1px solid #f1f5f9;
  border-style: solid none;
  font-size: 0.92rem;
}

.table-executive tbody tr td:first-child {
  border-right: 1px solid #f1f5f9;
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.table-executive tbody tr td:last-child {
  border-left: 1px solid #f1f5f9;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.table-executive tbody tr:hover {
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
  transform: translateY(-2px);
  border-color: #cbd5e1;
}

/* صف الموعد العاجل (خلال ساعة) */
.table-executive tbody tr.row-urgent {
  background: #fff7ed;
  border-right: 4px solid #ea580c;
}

.table-executive tbody tr.row-urgent td:first-child {
  border-right: 4px solid #ea580c;
}

/* صف موعد اليوم */
.table-executive tbody tr.row-today {
  background: #f0fdf4;
}

.table-executive tbody tr.row-today td:first-child {
  border-right: 4px solid #10b981;
}

/* أزرار الإجراءات الدائرية داخل الجدول */
.table-executive .btn-outline-success {
  border-color: #a7f3d0;
  color: #059669;
  background: #ecfdf5;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.table-executive .btn-outline-success:hover {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  transform: scale(1.1);
}

.table-executive .btn-outline-warning {
  border-color: #fde68a;
  color: #d97706;
  background: #fffbeb;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.table-executive .btn-outline-warning:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
  transform: scale(1.1);
}

.table-executive .btn-outline-primary {
  border-color: #bae6fd;
  color: #0284c7;
  background: #f0f9ff;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.table-executive .btn-outline-primary:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: scale(1.1);
}

.table-executive .btn-outline-danger {
  border-color: #fecdd3;
  color: #e11d48;
  background: #fff1f2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.table-executive .btn-outline-danger:hover {
  background: #f43f5e;
  color: #ffffff;
  border-color: #f43f5e;
  transform: scale(1.1);
}

/* ==========================================================================
   قائمة الإشعارات المنسدلة (Notifications Dropdown)
   ========================================================================== */
.notif-item {
  padding: 0.9rem;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.55rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}

.notif-item:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  transform: translateX(-3px);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.notif-item.urgent {
  border-right: 4px solid #ef4444;
  background: #fff8f8;
}

.notif-item.today {
  border-right: 4px solid #0284c7;
  background: #f0f9ff;
}

.notif-item.tomorrow {
  border-right: 4px solid #f59e0b;
  background: #fffbeb;
}

.notif-item.is-read {
  opacity: 0.65;
  background: #f8fafc !important;
  border-color: #f1f5f9 !important;
  border-right-color: #cbd5e1 !important;
}

.notif-item.is-read:hover {
  opacity: 1;
  background: #ffffff !important;
}

.notif-action-btn {
  background: transparent;
  border: none;
  padding: 4px 7px;
  border-radius: 8px;
  color: #64748b;
  font-size: 0.85rem;
  transition: all 0.15s ease;
  line-height: 1;
}

.notif-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.notif-action-btn.btn-delete-notif:hover {
  background: #fee2e2;
  color: #dc2626;
}

.notif-action-btn.btn-read-notif:hover {
  background: #e0f2fe;
  color: #0284c7;
}

/* ==========================================================================
   التقويم الرئاسي التفاعلي (Interactive Calendar View)
   ========================================================================== */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day-header {
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 0.5rem;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--slate-700);
}

.calendar-day-cell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  min-height: 100px;
  padding: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.calendar-day-cell:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

.calendar-day-cell.is-today {
  background: #f0fdf4;
  border: 2px solid #10b981;
}

.calendar-day-cell .day-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.calendar-event-pill {
  font-size: 0.74rem;
  padding: 3px 7px;
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calendar-event-pill:hover {
  transform: scale(1.02);
}

/* ==========================================================================
   صندوق التقرير الرسمي المطبوع (Official Executive Report)
   ========================================================================== */
.official-report-card {
  background: #ffffff;
  border: 2px solid #0284c7;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.official-report-header {
  border-bottom: 2px double #cbd5e1;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.report-seal-box {
  width: 90px;
  height: 90px;
  border: 2px dashed #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #64748b;
  text-align: center;
  margin: 0 auto;
}

/* ==========================================================================
   النوافذ المنبثقة وحقول الإدخال (Modals & Form Inputs)
   ========================================================================== */
.modal-content {
  border-radius: 24px;
  border: 1px solid #bae6fd;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border-bottom: 1px solid #e0f2fe;
  padding: 1.35rem 1.65rem;
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  padding: 0.6rem 0.95rem;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* منتقي الأيقونات البصري */
.icon-picker-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 85px;
}

.icon-picker-item i {
  font-size: 1.75rem;
  color: #0284c7;
  margin-bottom: 0.35rem;
  transition: transform 0.2s ease;
}

.icon-picker-item:hover {
  background: #f0f9ff;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.12);
}

.icon-picker-item.active {
  background: #e0f2fe;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

/* ==========================================================================
   التجاوب الشامل مع الهواتف والأجهزة اللوحية والحواسيب
   Responsive Precision Engine (Mobile, Tablet, Laptop, Ultra-Wide)
   ========================================================================== */

/* 1. الهواتف والشاشات الصغيرة جداً (Mobile Devices: < 576px) */
@media (max-width: 575.98px) {
  .executive-navbar {
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
  }

  .system-logo-img {
    max-height: 38px !important;
  }

  .dynamic-site-title {
    font-size: 0.85rem !important;
    line-height: 1.25;
    max-width: 180px;
    white-space: normal;
  }

  .notification-bell-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 11px;
  }

  .presidential-next-hub {
    padding: 1.15rem 1.15rem;
    border-radius: 16px;
  }

  .next-app-title {
    font-size: 1.05rem !important;
    line-height: 1.35;
  }

  .countdown-digit-box {
    min-width: 56px;
    padding: 0.4rem 0.45rem;
    border-radius: 10px;
  }

  .countdown-digit-box .count-num {
    font-size: 1.3rem;
  }

  .countdown-digit-box .count-label {
    font-size: 0.65rem;
  }

  .metric-card {
    padding: 0.95rem 1.1rem;
    border-radius: 16px;
  }

  .metric-card h2 {
    font-size: 1.75rem;
  }

  .metric-icon-box {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 12px;
  }

  .nav-executive-pills {
    padding: 4px;
    border-radius: 14px;
  }

  .nav-executive-pills .nav-link {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .quick-filter-btn {
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
  }

  .btn-vibrant-gold {
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
  }

  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: 18px;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-body {
    padding: 1.1rem 1.25rem;
  }

  .modal-footer {
    padding: 0.75rem 1.25rem;
  }

  #section-calendar .executive-card {
    overflow-x: auto;
  }

  .calendar-grid {
    min-width: 580px;
  }
}

/* 2. الأجهزة اللوحية المصغرة والشاشات المتوسطة (Small Tablets / Phablets: 576px - 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .dynamic-site-title {
    font-size: 0.92rem;
  }

  .system-logo-img {
    max-height: 44px;
  }

  .presidential-next-hub {
    padding: 1.3rem 1.45rem;
  }

  .metric-card {
    padding: 1rem 1.2rem;
  }

  .metric-card h2 {
    font-size: 1.9rem;
  }

  .calendar-grid {
    min-width: 560px;
  }
}

/* 3. الأجهزة اللوحية القياسية (iPads / Standard Tablets: 768px - 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .presidential-next-hub {
    padding: 1.4rem 1.6rem;
  }

  .metric-card h2 {
    font-size: 2rem;
  }

  .nav-executive-pills .nav-link {
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
  }
}

/* 4. الشاشات المكتبية واللابتوب (Laptops & Desktops: 992px - 1399.98px) */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .metric-card h2 {
    font-size: 2.15rem;
  }

  .metric-card {
    padding: 1.15rem 1.35rem;
  }
}

/* 5. الشاشات الكبيرة وفائقة الاتساع (Ultra-Wide & 4K Monitors: >= 1400px) */
@media (min-width: 1400px) {
  .executive-main-container {
    max-width: 1560px;
  }

  .metric-card h2 {
    font-size: 2.4rem;
  }
}

/* ==========================================================================
   طباعة الكشف والتقرير الرئاسي الرسمي بدقة هندسية في ورقة واحدة A4 فقط 
   (Preserved Single Page Precision Print Engine)
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
  }

  html, body {
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* إخفاء كافة عناصر الداشبورد والمؤشرات وأزرار الفلترة */
  .no-print,
  .executive-navbar,
  .nav-executive-pills,
  .btn,
  .notification-bell-btn,
  .filter-section,
  .presidential-next-hub,
  .metric-card,
  .row.g-3.mb-4,
  #section-reports .executive-card,
  #agenda,
  #calendar,
  #admin-settings,
  .workspace-section:not(#section-reports) {
    display: none !important;
  }

  body:not(.printing-vip-card) .modal {
    display: none !important;
  }

  /* طباعة التقرير الرسمي: انظر assets/css/report.css */
}

/* ==========================================================================
   طباعة بطاقة المراسم والـ VIP الفردية
   ========================================================================== */
@media print {
  body.printing-vip-card * {
    visibility: hidden !important;
  }

  body.printing-vip-card .modal-backdrop {
    display: none !important;
  }

  body.printing-vip-card #vipCardModal,
  body.printing-vip-card #vipCardModal .modal-dialog,
  body.printing-vip-card #vipCardModal .modal-content {
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: static !important;
    transform: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.printing-vip-card .modal-header,
  body.printing-vip-card .modal-footer {
    display: none !important;
  }

  body.printing-vip-card #printableVipCardBody,
  body.printing-vip-card #printableVipCardBody * {
    visibility: visible !important;
  }

  body.printing-vip-card #printableVipCardBody {
    position: absolute !important;
    left: 50% !important;
    top: 20px !important;
    transform: translateX(-50%) !important;
    width: 560px !important;
    max-width: 94% !important;
    background: #ffffff !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: block !important;
    overflow: visible !important;
  }
  body.printing-vip-card .vip-pass { box-shadow: none !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; }
}


/* ==========================================================================
   [v2.0] إصلاحات وإضافات التصميم
   ========================================================================== */

/* أصناف مستخدمة في الواجهة ولم يكن لها تنسيق */
.opacity-90 { opacity: .9; }
.hover-opacity-100:hover { opacity: 1 !important; }
.leading-none { line-height: 1; }
.notif-quick-actions .btn-link { transition: opacity .15s ease; }
.notif-quick-actions .btn-link:hover { opacity: 1; }
.events-scroll { scrollbar-width: thin; }
.row-past { opacity: .72; }
.row-past:hover { opacity: 1; }

/* إمكانية الوصول: إطار تركيز واضح للوحة المفاتيح */
:focus-visible {
  outline: 3px solid rgba(2, 132, 199, .45);
  outline-offset: 2px;
  border-radius: 6px;
}
button:focus:not(:focus-visible) { outline: none; }

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- مخطط ضغط المواعيد (7 أيام) ---------------- */
.daily-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: .25rem .25rem 0;
}
.chart-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.chart-bar-container {
  width: 100%;
  max-width: 54px;
  height: 92px;
  background: var(--slate-100);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.chart-bar-fill {
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  transition: height .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.chart-bar-col:first-child .chart-bar-fill {
  background: linear-gradient(180deg, #fbbf24 0%, #d97706 100%);
}

/* ---------------- سجل الأنشطة ---------------- */
.activity-scroll { max-height: 440px; overflow-y: auto; padding-inline-end: 4px; }
.activity-timeline { position: relative; padding-inline-start: 22px; }
.activity-timeline::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, #bae6fd, #e2e8f0);
  border-radius: 2px;
}
.activity-item { position: relative; margin-bottom: .75rem; }
.activity-dot {
  position: absolute;
  inset-inline-start: -22px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

/* ---------------- صندوق رفع الشعار ---------------- */
.logo-upload-box {
  border: 2px dashed #bae6fd;
  background: var(--primary-subtle);
  border-radius: 18px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}
.logo-upload-box:hover { border-color: var(--primary); background: #e0f2fe; transform: translateY(-1px); }

/* ---------------- تذييل الصفحة ---------------- */
.app-footer { border-top: 1px solid var(--border-light); margin-top: 1.5rem; }

/* ---------------- نظام التحديث ---------------- */
.update-dropzone {
  border: 2px dashed #a7f3d0;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border-radius: 20px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.update-dropzone i.bi { font-size: 2.8rem; }
.update-dropzone:hover, .update-dropzone.is-drag {
  border-color: var(--emerald-light);
  background: #ecfdf5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, .15);
}
.update-dropzone.is-disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.6); transform: none; box-shadow: none; }
.update-safety-list { list-style: none; padding: 0; }
.update-safety-list li { padding: .25rem 0; }

.update-empty {
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px dashed var(--slate-200);
  border-radius: 20px;
  padding: 1.5rem;
}
.update-empty i { font-size: 2.6rem; color: var(--slate-400); }

.update-version-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  padding: .85rem 1rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  margin-bottom: .75rem;
}
.update-version-bar > i { font-size: 1.4rem; color: var(--emerald-light); }
.update-version-bar .v-box { display: flex; flex-direction: column; line-height: 1.2; }
.update-version-bar .v-box small { color: var(--slate-500); font-size: .72rem; font-weight: 700; }
.update-version-bar .v-box strong { font-size: 1.15rem; font-family: var(--font-heading); color: var(--slate-700); }
.update-version-bar .v-box.new strong { color: var(--emerald); }

.update-notes {
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: .75rem 1rem;
  font-size: .9rem;
  color: var(--slate-700);
  margin-bottom: .75rem;
  max-height: 160px;
  overflow-y: auto;
}

.update-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: .75rem; }
.update-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 20px;
  border: 1px solid transparent;
}
.update-chips .chip.new     { background: var(--emerald-subtle); color: var(--emerald-hover); border-color: var(--emerald-border); }
.update-chips .chip.changed { background: var(--primary-subtle); color: var(--primary-hover); border-color: var(--primary-border); }
.update-chips .chip.deleted { background: var(--rose-subtle); color: var(--rose); border-color: var(--rose-border); }
.update-chips .chip.same    { background: var(--slate-100); color: var(--slate-600); }
.update-chips .chip.skipped { background: var(--gold-subtle); color: var(--gold-hover); border-color: var(--gold-border); }
.update-chips .chip.ok      { background: var(--purple-subtle); color: var(--purple); border-color: var(--purple-border); }

.update-files summary { cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--primary-hover); }
.update-files ul {
  list-style: none;
  margin: .5rem 0 0;
  padding: .5rem;
  max-height: 200px;
  overflow-y: auto;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  font-size: .8rem;
}
.update-files li { padding: .2rem .35rem; display: flex; gap: .5rem; align-items: center; }
.update-files .tag { font-size: .68rem; font-weight: 800; padding: .1rem .5rem; border-radius: 10px; flex-shrink: 0; }
.update-files li.new .tag { background: var(--emerald-subtle); color: var(--emerald-hover); }
.update-files li.changed .tag { background: var(--primary-subtle); color: var(--primary-hover); }
.update-files li.deleted .tag { background: var(--rose-subtle); color: var(--rose); }

.update-result {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid;
}
.update-result > i { font-size: 1.6rem; flex-shrink: 0; }
.update-result.good { background: var(--emerald-subtle); border-color: var(--emerald-border); color: var(--emerald-hover); }
.update-result.bad  { background: var(--rose-subtle); border-color: var(--rose-border); color: #9f1239; }

/* ---------------- الجدول على الهواتف: تحويل الصفوف إلى بطاقات ---------------- */
@media (max-width: 767.98px) {
  .table-executive { min-width: 0; border-spacing: 0; }
  .table-executive thead { display: none; }
  .table-executive, .table-executive tbody, .table-executive tr, .table-executive td { display: block; width: 100%; }
  .table-executive tbody tr {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 12px;
    padding: .3rem 0;
    transform: none !important;
  }
  .table-executive tbody tr td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    border: none !important;
    border-radius: 0 !important;
    padding: .55rem 1rem;
    text-align: start;
  }
  .table-executive tbody tr td::before {
    content: attr(data-label);
    flex: 0 0 84px;
    font-size: .74rem;
    font-weight: 800;
    color: var(--slate-500);
    padding-top: 3px;
  }
  .table-executive tbody tr td:not([data-label])::before { display: none; }
  .table-executive tbody tr td[colspan] { display: block; text-align: center; }
  .table-executive tbody tr.row-urgent { border-right: 5px solid #ea580c; }
  .table-executive tbody tr.row-today { border-right: 5px solid #10b981; }
  .table-responsive:has(> .table-executive) { overflow-x: visible; }
  .daily-chart { gap: 5px; }
  .chart-bar-container { height: 70px; }
  .official-report-card { padding: 1.25rem; }
  .official-report-header { flex-direction: column; gap: 1rem; text-align: center !important; }
}

/* بطاقة التقرير الرسمي: شاشات صغيرة */
@media (max-width: 575.98px) {
  .update-dropzone { padding: 1.5rem .75rem; }
  .update-version-bar { gap: .5rem; }
}

/* ==========================================================================
   التقويم الذكي v2 (شهر / أسبوع / يوم) — شبكة ثابتة منتظمة
   ========================================================================== */
.cal-shell { --cal-border: #e2e8f0; --cal-am-bg:#e0f2fe; --cal-am:#0369a1; --cal-pm-bg:#fef3c7; --cal-pm:#b45309; --cal-eve-bg:#ede9fe; --cal-eve:#6d28d9; }
.cal-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem 1rem; margin-bottom:1rem; padding:.6rem .75rem; background:#f8fafc; border:1px solid var(--cal-border); border-radius:16px; }
.cal-nav { display:flex; align-items:center; gap:.35rem; }
.cal-icon-btn { width:36px; height:36px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--cal-border); background:#fff; border-radius:10px; color:#334155; }
.cal-icon-btn:hover { background:#e0f2fe; border-color:#38bdf8; color:#0369a1; }
.cal-today-btn { height:36px; padding:0 1rem; border:1px solid var(--cal-border); background:#fff; border-radius:10px; font-weight:700; color:#0369a1; }
.cal-today-btn:hover { background:#0284c7; color:#fff; border-color:#0284c7; }
.cal-title-wrap { position:relative; flex:1 1 220px; text-align:center; }
.cal-title { border:0; background:transparent; font-family:var(--font-heading); font-weight:800; font-size:1.25rem; color:#0369a1; padding:.2rem .75rem; border-radius:10px; }
.cal-title:hover { background:#e0f2fe; }
.cal-picker { position:absolute; z-index:20; top:110%; left:50%; transform:translateX(-50%); display:flex; gap:.4rem; padding:.6rem; background:#fff; border:1px solid var(--cal-border); border-radius:14px; box-shadow:0 12px 32px rgba(15,23,42,.15); min-width:340px; }
.cal-right { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; margin-inline-start:auto; }
.cal-views { display:inline-flex; padding:3px; background:#e2e8f0; border-radius:12px; }
.cal-view-btn { border:0; background:transparent; padding:.35rem .9rem; border-radius:9px; font-weight:700; font-size:.85rem; color:#475569; }
.cal-view-btn.active { background:#fff; color:#0369a1; box-shadow:0 2px 6px rgba(15,23,42,.12); }
.cal-search { position:relative; }
.cal-search i { position:absolute; top:50%; right:11px; transform:translateY(-50%); color:#94a3b8; font-size:.85rem; pointer-events:none; }
.cal-search input { height:36px; width:190px; border:1px solid var(--cal-border); border-radius:10px; padding:0 34px 0 10px; font-size:.85rem; background:#fff; }
.cal-search input:focus { outline:none; border-color:#38bdf8; box-shadow:0 0 0 3px rgba(56,189,248,.2); }

.cal-stats { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:1rem; }
.cal-stat { flex:1 1 150px; display:flex; align-items:center; gap:.6rem; padding:.55rem .8rem; background:#fff; border:1px solid var(--cal-border); border-radius:14px; min-width:0; }
.cal-stat i { font-size:1.15rem; width:34px; height:34px; display:inline-flex; align-items:center; justify-content:center; border-radius:10px; background:#e0f2fe; color:#0284c7; flex:none; }
.cal-stat .v { font-weight:800; font-size:1.05rem; line-height:1.1; color:#0f172a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-stat .l { font-size:.72rem; color:#64748b; }
.cal-stat > div { min-width:0; }

/* ---- عرض الشهر ---- */
.cal-month { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.cal-dow { text-align:center; padding:.55rem .25rem; background:#f1f5f9; border-radius:10px; font-weight:700; font-size:.82rem; color:#334155; }
.cal-dow.is-weekend { color:#dc2626; }
.cal-cell { position:relative; min-height:118px; padding:6px 6px 4px; background:#fff; border:1px solid var(--cal-border); border-radius:12px; display:flex; flex-direction:column; gap:3px; min-width:0; overflow:hidden; transition:border-color .15s, box-shadow .15s, background .15s; }
.cal-cell::before { content:""; position:absolute; inset:0 0 auto 0; height:3px; background:transparent; }
.cal-cell.heat-1::before { background:#bae6fd; }
.cal-cell.heat-2::before { background:#38bdf8; }
.cal-cell.heat-3::before { background:#f59e0b; }
.cal-cell.heat-4::before { background:#ef4444; }
.cal-cell.is-weekend { background:#fafafa; }
.cal-cell.is-other { background:#f8fafc; }
.cal-cell.is-other .cal-num, .cal-cell.is-other .cal-pill { opacity:.55; }
.cal-cell:hover { border-color:#38bdf8; box-shadow:0 6px 18px rgba(2,132,199,.12); }
.cal-cell.is-today { background:#f0fdf4; border:2px solid #10b981; }
.cal-cell.drop-ok { background:#e0f2fe; border-color:#0284c7; border-style:dashed; }
.cal-cell-head { display:flex; align-items:center; justify-content:space-between; min-height:24px; }
.cal-num { border:0; background:transparent; font-weight:800; font-size:.88rem; color:#475569; width:26px; height:26px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.cal-num:hover { background:#e0f2fe; color:#0369a1; }
.is-today .cal-num { background:#059669; color:#fff; }
.cal-count { font-size:.66rem; font-weight:700; background:#0284c7; color:#fff; border-radius:999px; padding:1px 7px; }
.cal-count.warn { background:#dc2626; }

.cal-pill { display:flex; align-items:center; gap:4px; width:100%; min-width:0; padding:2px 6px; border-radius:7px; border:1px solid transparent; font-size:.72rem; font-weight:600; line-height:1.5; cursor:pointer; text-align:right; transition:transform .12s, box-shadow .12s; }
.cal-pill .t { flex:none; font-variant-numeric:tabular-nums; opacity:.85; }
.cal-pill .n { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-pill:hover { transform:translateY(-1px); box-shadow:0 3px 8px rgba(15,23,42,.15); }
.cal-pill:active { cursor:grabbing; }
.tone-am { background:var(--cal-am-bg); color:var(--cal-am); border-color:#7dd3fc66; }
.tone-pm { background:var(--cal-pm-bg); color:var(--cal-pm); border-color:#fcd34d88; }
.tone-eve { background:var(--cal-eve-bg); color:var(--cal-eve); border-color:#c4b5fd88; }
.cal-pill.is-past, .cal-block.is-past { opacity:.55; }
.cal-pill.is-cancelled .n, .cal-block.is-cancelled .n { text-decoration:line-through; }
.cal-pill.has-conflict, .cal-block.has-conflict { border-color:#ef4444 !important; box-shadow:inset 3px 0 0 #ef4444; }
.cal-pill.is-live, .cal-block.is-live { animation:calPulse 1.8s ease-in-out infinite; }
@keyframes calPulse { 0%,100% { box-shadow:0 0 0 0 rgba(16,185,129,.45);} 50% { box-shadow:0 0 0 5px rgba(16,185,129,0);} }
.cal-more { border:0; background:transparent; color:#0369a1; font-size:.72rem; font-weight:700; text-align:right; padding:0 4px; }
.cal-more:hover { text-decoration:underline; }
.cal-dots { display:none; gap:3px; flex-wrap:wrap; }
.cal-dot { display:inline-block; width:9px; height:9px; border-radius:50%; background:#94a3b8; vertical-align:middle; }
.cal-dot.tone-am { background:#0ea5e9; } .cal-dot.tone-pm { background:#f59e0b; } .cal-dot.tone-eve { background:#8b5cf6; }
.cal-dot-conflict { background:#ef4444; } .cal-dot-live { background:#10b981; }

/* ---- عرض الأسبوع واليوم ---- */
.cal-grid-wrap { border:1px solid var(--cal-border); border-radius:14px; overflow:hidden; background:#fff; }
.cal-week-head, .cal-week-body { display:grid; grid-template-columns:54px repeat(var(--cols,7),minmax(0,1fr)); }
.cal-week-head { background:#f8fafc; border-bottom:1px solid var(--cal-border); }
.cal-wh { padding:.5rem .25rem; text-align:center; border-inline-start:1px solid var(--cal-border); cursor:pointer; min-width:0; }
.cal-wh:hover { background:#f0f9ff; }
.cal-wh .d { font-size:.75rem; color:#64748b; }
.cal-wh .n { font-weight:800; font-size:1.05rem; color:#0f172a; }
.cal-wh.is-today .n { background:#059669; color:#fff; border-radius:50%; width:30px; height:30px; display:inline-flex; align-items:center; justify-content:center; }
.cal-wh.is-weekend .d { color:#dc2626; }
.cal-wh .c { font-size:.66rem; color:#0369a1; font-weight:700; }
.cal-scroll { max-height:620px; overflow-y:auto; position:relative; }
.cal-hours { position:relative; }
.cal-hour-label { height:var(--hh,56px); font-size:.7rem; color:#94a3b8; text-align:center; padding-top:2px; border-bottom:1px solid #f1f5f9; }
.cal-col { position:relative; border-inline-start:1px solid var(--cal-border); min-width:0; }
.cal-col.is-weekend { background:#fcfcfd; }
.cal-col.is-today { background:#f0fdf4; }
.cal-col.drop-ok { background:#e0f2fe; }
.cal-slot { height:var(--hh,56px); border-bottom:1px solid #f1f5f9; }
.cal-slot:nth-child(odd):hover { background:#f8fafc; }
.cal-block { position:absolute; padding:3px 6px; border-radius:8px; border:1px solid transparent; font-size:.72rem; font-weight:600; overflow:hidden; cursor:pointer; line-height:1.35; transition:box-shadow .12s; z-index:2; }
.cal-block:hover { box-shadow:0 4px 12px rgba(15,23,42,.2); z-index:5; }
.cal-block .t { font-size:.66rem; opacity:.85; display:block; }
.cal-block .n { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-block .p { display:block; font-weight:500; font-size:.66rem; opacity:.8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cal-now { position:absolute; inset-inline:0; height:2px; background:#ef4444; z-index:4; pointer-events:none; }
.cal-now::before { content:""; position:absolute; inset-inline-start:-4px; top:-4px; width:10px; height:10px; border-radius:50%; background:#ef4444; }

.cal-day-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:1rem; align-items:start; }
.cal-agenda { border:1px solid var(--cal-border); border-radius:14px; padding:.75rem; background:#fff; }
.cal-agenda h6 { font-weight:800; margin-bottom:.6rem; }
.cal-agenda-item { display:flex; gap:.6rem; padding:.55rem .6rem; border-radius:12px; border:1px solid var(--cal-border); margin-bottom:.5rem; cursor:pointer; background:#fff; }
.cal-agenda-item:hover { border-color:#38bdf8; background:#f0f9ff; }
.cal-agenda-item .tm { flex:none; font-weight:800; font-size:.8rem; text-align:center; min-width:54px; }
.cal-agenda-item .tm small { display:block; font-weight:500; color:#64748b; font-size:.68rem; }
.cal-agenda-item .tt { font-weight:700; font-size:.85rem; }
.cal-agenda-item .sub { color:#64748b; font-size:.75rem; }
.cal-gap { display:flex; align-items:center; gap:.4rem; padding:.35rem .6rem; margin-bottom:.5rem; border:1px dashed #86efac; background:#f0fdf4; color:#15803d; border-radius:10px; font-size:.75rem; cursor:pointer; }
.cal-gap:hover { background:#dcfce7; }
.cal-empty { text-align:center; color:#94a3b8; padding:1.5rem .5rem; font-size:.85rem; }
.cal-legend { display:flex; flex-wrap:wrap; gap:.4rem 1.1rem; margin-top:1rem; font-size:.78rem; color:#475569; align-items:center; }

.cal-pop { position:fixed; z-index:1080; width:290px; max-height:340px; overflow:auto; background:#fff; border:1px solid var(--cal-border); border-radius:14px; box-shadow:0 18px 40px rgba(15,23,42,.22); padding:.6rem; }
.cal-pop h6 { font-size:.85rem; font-weight:800; margin:.1rem .2rem .5rem; }

@media (max-width: 991.98px) {
  .cal-day-layout { grid-template-columns:minmax(0,1fr); }
  .cal-search input { width:150px; }
}
@media (max-width: 767.98px) {
  .cal-cell { min-height:64px; padding:4px 3px; }
  .cal-cell .cal-pill, .cal-cell .cal-more { display:none; }
  .cal-cell .cal-dots { display:flex; }
  .cal-count { display:none; }
  .cal-dow { font-size:.7rem; padding:.4rem 0; }
  .cal-title { font-size:1.05rem; }
  .cal-right { width:100%; justify-content:space-between; }
  .cal-search input { width:130px; }
  .cal-week-head, .cal-week-body { grid-template-columns:40px repeat(var(--cols,7),minmax(64px,1fr)); }
  .cal-grid-wrap { overflow-x:auto; }
  .cal-week-head, .cal-week-body { min-width:520px; }
  .cal-picker { min-width:290px; }
}
@media (prefers-reduced-motion: reduce) { .cal-pill.is-live, .cal-block.is-live { animation:none; } }
@media print { .cal-toolbar, .cal-legend, .cal-stats { display:none !important; } .cal-scroll { max-height:none; } }

/* ================= جدول المواعيد الذكي ================= */
.ap-filters .form-select-sm, .ap-filters .form-control-sm { border-radius: 10px; }
.ap-table thead th.ap-sort { cursor: pointer; user-select: none; white-space: nowrap; }
.ap-table thead th.ap-sort i { font-size: .75rem; opacity: .45; margin-inline-start: 4px; }
.ap-table thead th.ap-sort:hover, .ap-table thead th.ap-sort.active { color: var(--sky-600, #0284c7); }
.ap-table thead th.ap-sort.active i { opacity: 1; }
.ap-chk-col { width: 44px; min-width: 44px !important; text-align: center; }
.ap-chk-col .form-check-input { cursor: pointer; width: 1.1rem; height: 1.1rem; }
.ap-hl { background: #fef08a; color: inherit; padding: 0 2px; border-radius: 4px; }
.table-executive tbody tr.row-cancelled { opacity: .65; }
.ap-chip { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: #f1f5f9; color: #475569; }
.ap-chip-up { background: #e0f2fe; color: #0369a1; }
.ap-chip-today { background: #dcfce7; color: #15803d; }
.ap-chip-cx { background: #fee2e2; color: #b91c1c; }

.ap-status { font-size: .74rem; font-weight: 700; border-radius: 999px; padding: .15rem .65rem; border: 1px solid transparent; display: inline-block; }
select.ap-status { appearance: none; -webkit-appearance: none; cursor: pointer; padding-inline-end: .65rem; background-image: none; }
select.ap-status:focus { outline: 2px solid #38bdf8; outline-offset: 1px; }
.ap-st-confirmed { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.ap-st-pending { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ap-st-completed { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.ap-st-cancelled { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.ap-bulk { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; padding: .6rem .9rem; border-radius: 12px; margin-bottom: .75rem; }

.ap-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #e2e8f0; }
.ap-pg-info { font-size: .85rem; color: #64748b; }
.ap-pg-nav { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.ap-pg { min-width: 36px; height: 36px; border: 1px solid #e2e8f0; background: #fff; border-radius: 10px; font-weight: 700; font-size: .85rem; color: #334155; transition: all .15s; }
.ap-pg:hover:not(:disabled):not(.active) { background: #f1f5f9; border-color: #cbd5e1; }
.ap-pg.active { background: linear-gradient(135deg, #0ea5e9, #0369a1); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(2,132,199,.3); }
.ap-pg:disabled { opacity: .4; cursor: not-allowed; }
.ap-pg:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.ap-pg-gap { color: #94a3b8; padding: 0 .2rem; }
.ap-pg-jump { display: flex; align-items: center; gap: .4rem; }
.ap-pg-jump input { width: 70px; border-radius: 10px; }

@media (max-width: 767.98px) {
  .ap-pager { justify-content: center; text-align: center; }
  .ap-pg-info { width: 100%; }
  .table-executive tbody tr td.ap-chk-col { justify-content: flex-start; }
  .table-executive tbody tr td.ap-chk-col::before { flex: 0 0 84px; }
  .ap-pg-jump { display: none; }
}
@media print { .ap-filters, .ap-pager, .ap-bulk { display: none !important; } }

/* ================= التنبيهات والشعار v2.5 ================= */
.notif-tabs { display: flex; gap: .4rem; }
.notif-tab { flex: 1; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 999px; font-size: .75rem; padding: .2rem .5rem; transition: background .15s; }
.notif-tab b { background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 .4rem; margin-inline-start: .2rem; }
.notif-tab.active { background: #fff; color: #0369a1; }
.notif-tab.active b { background: #e0f2fe; }
.notif-item.critical { border-right: 4px solid #b91c1c; background: #fef2f2; animation: notifPulse 1.8s ease-in-out infinite; }
.notif-item.now { border-right: 4px solid #16a34a; background: #f0fdf4; }
.notif-empty-filter { text-align: center; padding: 1.2rem; color: #64748b; font-size: .85rem; }
@keyframes notifPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.0); } 50% { box-shadow: 0 0 0 4px rgba(220,38,38,.18); } }
.notification-bell-btn.has-critical { animation: bellShake 2.4s ease-in-out infinite; }
@keyframes bellShake { 0%,88%,100% { transform: rotate(0); } 90% { transform: rotate(14deg); } 94% { transform: rotate(-12deg); } 97% { transform: rotate(8deg); } }
#notifMuteBtn[aria-pressed="true"] { opacity: .7; }
.logo-upload-box.is-drag { border-color: #0284c7 !important; background: #e0f2fe !important; transform: scale(1.01); }
.logo-upload-box:focus-visible { outline: 2px solid #38bdf8; outline-offset: 2px; }
.dynamic-logo-img { object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .notif-item.critical, .notification-bell-btn.has-critical { animation: none; } }

/* منع التمرير الأفقي للصفحة على الجوال (الجداول العريضة تتمرر داخل حاويتها) */
html, body { max-width: 100%; overflow-x: clip; }

/* ===== v2.6 إدارة المستخدمين ===== */
.usr-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem}
.usr-stat{display:flex;align-items:center;gap:.65rem;padding:.65rem .8rem;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.usr-stat>i{font-size:1.35rem;color:#0369a1}
.usr-stat .v{font-weight:800;font-size:1.15rem;line-height:1.1;color:#0f172a}
.usr-stat .l{font-size:.75rem;color:#64748b}
.usr-stat.ok>i{color:#16a34a}.usr-stat.warn>i{color:#d97706}.usr-stat.bad>i{color:#dc2626}
.usr-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:50%;background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--c);border:2px solid color-mix(in srgb,var(--c) 40%,#fff);font-weight:800}
.usr-avatar.is-off{filter:grayscale(1);opacity:.6}
.usr-dot{position:absolute;bottom:-1px;left:-1px;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.usr-table tr.usr-off td{background:#fafafa}
.usr-table td{vertical-align:middle}
.usr-sec-title{font-weight:700;color:#0f172a;margin-bottom:.6rem;padding-bottom:.35rem;border-bottom:1px dashed #e2e8f0}
.usr-roles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.6rem}
.usr-role-card{display:flex;gap:.6rem;align-items:center;padding:.65rem .8rem;border:2px solid #e2e8f0;border-radius:12px;cursor:pointer;position:relative;transition:.15s}
.usr-role-card input{position:absolute;opacity:0}
.usr-role-card:has(input:checked){border-color:#0ea5e9;background:#f0f9ff}
.usr-role-card:has(input:focus-visible){outline:3px solid #7dd3fc}
.usr-role-card:has(input:disabled){opacity:.5;cursor:not-allowed}
.usr-role-card .rc-ico{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;flex:0 0 auto}
.usr-role-card b{display:block;font-size:.9rem}.usr-role-card small{display:block;color:#64748b;font-size:.74rem;line-height:1.35}
.usr-meter{height:5px;border-radius:3px;background:#e2e8f0;overflow:hidden}
.usr-meter span{display:block;height:100%;width:0;transition:.2s}
.usr-temp{font-family:ui-monospace,Consolas,monospace;font-size:1.6rem;font-weight:800;letter-spacing:.08em;padding:.7rem;border:2px dashed #f59e0b;border-radius:12px;background:#fffbeb;user-select:all;word-break:break-all}
.usr-matrix summary{cursor:pointer;font-weight:700}
.ud-card{border:1px solid #e2e8f0;border-radius:12px;padding:.4rem .9rem;height:100%}
.ud-row{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid #f1f5f9;font-size:.88rem}
.ud-row:last-child{border:0}.ud-row span{color:#64748b;flex:0 0 auto}.ud-row b{text-align:left;min-width:0;overflow-wrap:anywhere}
.ud-sess{display:flex;gap:.8rem;align-items:center;padding:.65rem;border:1px solid #e2e8f0;border-radius:10px;margin-bottom:.5rem}
.ud-act{padding:.55rem .2rem;border-bottom:1px solid #f1f5f9}
@media(max-width:767.98px){
 .usr-table thead{display:none}
 .usr-table,.usr-table tbody,.usr-table tr,.usr-table td{display:block;width:100%}
 .usr-table tr{border:1px solid #e2e8f0;border-radius:12px;margin-bottom:.7rem;padding:.4rem .6rem}
 .usr-table td{border:0;padding:.3rem 0}
 .usr-table td[data-label]:not([data-label="المستخدم"]):not([data-label="إجراءات"])::before{content:attr(data-label) ": ";color:#64748b;font-size:.75rem}
}

/* ===== v2.6.1 إصلاحات تصميم (بدون تغيير الشكل العام) ===== */
/* منع تمدد الأقسام بسبب محتوى عريض (جداول/بطاقات) على الشاشات الضيقة */
.workspace-section, .workspace-section > *, #printableReportDocument { min-width: 0; max-width: 100%; }
#printableReportDocument .table-responsive { overflow-x: auto; }
@media print { #printableReportDocument .table-responsive { overflow: visible !important; } }
/* أرقام/تواريخ/أحجام: اتجاه ثابت من اليسار لليمين حتى لا ينقلب ترتيبها داخل النص العربي */
bdi[dir="ltr"], .ltr-iso { unicode-bidi: isolate; white-space: nowrap; }
/* قائمة عدد الصفوف: لا يتداخل السهم مع الرقم */
#apPageSize, #usrPageSize { min-width: 4.6rem; padding-inline-end: 2rem; padding-inline-start: .6rem; background-position: left .6rem center; }
/* صف الفلاتر: لا ينكسر عنوان الحقل عن حقله */
/* صفحة الإعدادات: لا يتجاوز الصف عرض الشاشة ولا تتمدد الجداول */
#section-admin-settings { overflow-x: clip; }
#section-admin-settings .table-responsive { overflow-x: auto; max-width: 100%; }
#section-admin-settings .row { max-width: 100%; }
/* شريط التبويبات: تمرير أفقي سلس على الجوال */
.nav-pills-scroll-container { scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
/* خط التوقيع المنقّط: لا يوسّع البطاقة على الجوال */
#printableReportDocument .col-4 .my-4 { overflow: hidden; white-space: nowrap; max-width: 100%; }
@media (max-width: 767.98px) {
  /* بطاقات الجدول على الجوال: كل محتوى الخلية يتكدّس في عمود القيمة بجانب العنوان بدل أن يتوزع أفقياً */
  .table-executive tbody tr td[data-label] { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; column-gap: .75rem; row-gap: .15rem; }
  .table-executive tbody tr td[data-label]::before { grid-column: 1; grid-row: 1; }
  .table-executive tbody tr td[data-label] > * { grid-column: 2; min-width: 0; }
  .table-executive tbody tr td[data-label] > .d-flex { flex-wrap: wrap; }
}

/* ===== بطاقة المراسم الرسمية (v2.7) ===== */
.vip-modal-content { border: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(15,23,42,.35); }
.vip-modal-header { background: linear-gradient(135deg,#f0f9ff,#fff); border-bottom: 1px solid #e2e8f0; padding: .9rem 1.25rem; }
.vip-head-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #fef3c7; color: #d97706; font-size: 1.3rem; }
.vip-modal-body { background: #eef2f7; padding: 1.25rem; }
.vip-modal-footer { background: #fff; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-start; }
.vip-pass { position: relative; max-width: 480px; margin: 0 auto; background: #fff; border-radius: 20px; box-shadow: 0 12px 34px rgba(15,23,42,.14); overflow: hidden; text-align: center; }
.vip-pass::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid #f3d27a; border-radius: 14px; pointer-events: none; }
.vip-band { height: 9px; background: linear-gradient(90deg,#b45309,#f59e0b,#fcd34d,#f59e0b,#b45309); }
.vip-top { padding: 1.3rem 1.5rem .6rem; background: radial-gradient(circle at 50% 0,#fffbeb 0,#fff 70%); }
.vip-logo { width: 84px; height: 84px; margin: 0 auto .6rem; border-radius: 50%; background: #fff; border: 2px solid #f3d27a; box-shadow: 0 4px 14px rgba(217,119,6,.2); display: flex; align-items: center; justify-content: center; padding: 8px; }
.vip-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vip-org { font-weight: 800; color: #0f172a; font-size: 1.02rem; line-height: 1.5; }
.vip-kicker { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: .35rem; color: #b45309; font-weight: 700; font-size: .78rem; letter-spacing: .02em; }
.vip-kicker span { height: 1px; width: 38px; background: linear-gradient(90deg,transparent,#f59e0b); }
.vip-kicker span:last-child { transform: scaleX(-1); }
.vip-main { padding: .4rem 1.6rem 1rem; text-align: right; }
.vip-status { min-height: 4px; text-align: center; margin-bottom: .3rem; }
.vip-chip { display: inline-block; padding: .15rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 800; border: 1px solid; }
.vip-chip.ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.vip-chip.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.vip-chip.bad { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.vip-title { font-size: 1.25rem; font-weight: 800; color: #0f172a; line-height: 1.6; text-align: center; margin: .3rem 0 1rem; overflow-wrap: anywhere; }
.vip-label { display: block; font-size: .72rem; color: #64748b; font-weight: 600; }
.vip-guest { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; border-radius: 14px; background: linear-gradient(135deg,#eff6ff,#f8fafc); border: 1px solid #dbeafe; }
.vip-guest-ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.vip-guest-txt { min-width: 0; }
.vip-guest-name { font-weight: 800; color: #1d4ed8; font-size: 1.05rem; line-height: 1.5; overflow-wrap: anywhere; }
.vip-guest-pos { font-size: .82rem; color: #475569; }
.vip-when { display: flex; gap: .9rem; margin-top: .9rem; align-items: stretch; }
.vip-date { flex: none; width: 104px; border-radius: 14px; overflow: hidden; border: 1px solid #fde68a; background: #fff; text-align: center; box-shadow: 0 3px 10px rgba(217,119,6,.12); }
.vip-dow { background: linear-gradient(135deg,#d97706,#f59e0b); color: #fff; font-weight: 800; font-size: .85rem; padding: .3rem; }
.vip-day { font-size: 2.3rem; font-weight: 900; line-height: 1.15; color: #0f172a; padding-top: .25rem; font-variant-numeric: tabular-nums; }
.vip-month { font-size: .78rem; font-weight: 700; color: #92400e; padding: 0 .3rem .55rem; }
.vip-when-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: .5rem; }
.vip-info { display: flex; align-items: flex-start; gap: .6rem; }
.vip-info > i { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #fef3c7; color: #d97706; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.vip-info b { display: block; font-weight: 800; color: #0f172a; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.vip-info small { color: #64748b; font-weight: 600; }
.vip-tear { position: relative; height: 0; border-top: 2px dashed #e2e8f0; margin: .2rem 1.6rem; }
.vip-tear i { position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: #eef2f7; }
.vip-tear i:first-child { right: -2.4rem; } .vip-tear i:last-child { left: -2.4rem; }
.vip-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.6rem .5rem; text-align: right; }
.vip-sign { flex: 1; min-width: 0; }
.vip-sign-title { font-weight: 800; color: #0f172a; font-size: .88rem; }
.vip-sign-name { font-weight: 800; color: #1d4ed8; font-size: .92rem; }
.vip-sign-line { height: 1px; background: #94a3b8; margin-top: 1.5rem; width: 80%; }
.vip-stamp { flex: none; width: 66px; height: 66px; border-radius: 50%; border: 2px dashed #f59e0b; color: #b45309; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.4; transform: rotate(-8deg); opacity: .85; }
.vip-qr { flex: none; text-align: center; }
.vip-qr #vipCardQr { width: 68px; height: 68px; padding: 2px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.vip-qr img, .vip-qr canvas { max-width: 100%; max-height: 100%; }
.vip-ref { font-size: .62rem; color: #64748b; margin-top: .2rem; font-weight: 700; letter-spacing: .03em; }
.vip-issued { text-align: center; font-size: .7rem; color: #94a3b8; padding: .3rem 1rem 1rem; }
.vip-pass.is-cancelled .vip-title { text-decoration: line-through; color: #94a3b8; }
.vip-pass.is-cancelled .vip-band { background: #fca5a5; }
@media (max-width: 420px) {
  .vip-modal-body { padding: .8rem; }
  .vip-main, .vip-foot { padding-inline: 1.1rem; }
  .vip-when { flex-direction: column; } .vip-date { width: 100%; display: grid; grid-template-columns: auto 1fr; align-items: center; }
  .vip-date .vip-dow { grid-column: 1 / -1; }
  .vip-day { padding: .2rem .8rem; } .vip-month { padding: 0 .8rem 0 0; }
  .vip-tear i:first-child { right: -1.5rem; } .vip-tear i:last-child { left: -1.5rem; }
}
.vip-dialog { max-width: 540px; }
.vip-info small { display: block; }
@media print { body.printing-vip-card .vip-tear i { background: #fff !important; } body.printing-vip-card .vip-pass::before { border-color: #f3d27a !important; } }
