    @import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;600;700;800;900&display=swap');
    
    :root{
      --bg:#f8fafc;
      --surface:#ffffff;
      --border:#e2e8f0;
      --text:#0f172a;
      --muted:#64748b;
      --primary:#2563eb;
      --primary-light:#3b82f6;
      --primary-dark:#1d4ed8;
      --danger:#ef4444;
      --danger-light:#f87171;
      --warn:#f59e0b;
      --success:#10b981;
      --success-light:#34d399;
      --shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);
      --shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -1px rgba(0,0,0,0.06);
      --shadow-md:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -2px rgba(0,0,0,0.05);
      --shadow-lg:0 20px 25px -5px rgba(0,0,0,0.1),0 10px 10px -5px rgba(0,0,0,0.04);
      --shadow-xl:0 25px 50px -12px rgba(0,0,0,0.25);
      --radius-sm:6px;
      --radius:12px;
      --radius-md:16px;
      --radius-lg:20px;
      --radius-xl:24px;
      --transition:all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-slow:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    *{
      box-sizing:border-box;
      margin:0;
      padding:0;
    }
    
    html{
      scroll-behavior:smooth;
      -webkit-font-smoothing:antialiased;
      -moz-osx-font-smoothing:grayscale;
    }
    
    body{
      font-family:"Tajawal",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
      margin:0;
      background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);
      color:var(--text);
      line-height:1.6;
      font-size:16px;
      min-height:100vh;
    }
    .layout{
      display:grid;
      grid-template-columns:280px 1fr;
      min-height:100vh;
      gap:0;
    }
    
    .sidebar{
      background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
      color:#1e293b;
      display:flex;
      flex-direction:column;
      border-inline-end:1px solid var(--border);
      box-shadow:var(--shadow-md);
      position:sticky;
      top:0;
      height:100vh;
      overflow-y:auto;
      overflow-x:hidden;
      z-index:100;
      transition:var(--transition);
    }
    
    .sidebar::-webkit-scrollbar{
      width:6px;
    }
    
    .sidebar::-webkit-scrollbar-track{
      background:transparent;
    }
    
    .sidebar::-webkit-scrollbar-thumb{
      background:#cbd5e1;
      border-radius:3px;
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover{
      background:#94a3b8;
    }
    .brand{
      padding:24px 20px 20px;
      border-bottom:1px solid var(--border);
  display:flex;
  flex-direction:column;
      gap:12px;
  align-items:center;
  text-align:center;
      background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
      position:relative;
    }
    
    .brand::after{
      content:"";
      position:absolute;
      bottom:0;
      left:20px;
      right:20px;
      height:1px;
      background:linear-gradient(90deg,transparent 0%,var(--border) 50%,transparent 100%);
}
    
.logo{
      width:56px;
      height:56px;
      border-radius:16px;
      background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  display:flex;
  align-items:center;
  justify-content:center;
      box-shadow:var(--shadow-md);
      transition:var(--transition);
      position:relative;
      overflow:hidden;
    }
    
    .logo::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(135deg,rgba(255,255,255,0.2) 0%,transparent 100%);
      pointer-events:none;
    }
    
.logo::after{
  content:"";
      width:40px;
      height:40px;
      background:url('kfu-logo.png') center/contain no-repeat;
      background-color:transparent;
      position:relative;
      z-index:1;
      filter:brightness(0) invert(1);
    }
    
    .logo:hover{
      transform:scale(1.05) rotate(2deg);
      box-shadow:var(--shadow-lg);
}

    .title{
  font-weight:800;
      font-size:24px;
      letter-spacing:-0.02em;
  text-align:center;
      background:linear-gradient(135deg,var(--text) 0%,var(--primary) 100%);
      -webkit-background-clip:text;
      -webkit-text-fill-color:transparent;
      background-clip:text;
}
    
    .brand .label{
      font-size:14px;
      color:var(--muted);
      margin-top:-4px;
  text-align:center;
      font-weight:500;
}
    .nav{
      padding:16px 12px;
      display:flex;
      flex-direction:column;
      gap:4px;
      flex:1;
    }
    
    .nav a{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
      color:#475569;
      padding:14px 18px;
  text-decoration:none;
      border-radius:var(--radius);
      margin:0 8px;
      font-size:15px;
      font-weight:600;
      line-height:1.5;
      transition:var(--transition);
      overflow:hidden;
    }
    
    .nav a::before{
      content:"";
      position:absolute;
      right:0;
      top:50%;
      transform:translateY(-50%);
      width:3px;
      height:0;
      background:linear-gradient(180deg,var(--primary) 0%,var(--primary-light) 100%);
      border-radius:2px 0 0 2px;
      transition:var(--transition);
    }
    
    .nav a::after{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
      opacity:0;
      transition:var(--transition);
      z-index:-1;
    }
    
    .nav a:hover{
      color:#ffffff;
      transform:translateX(-4px);
    }
    
    .nav a:hover::after{
      opacity:1;
    }
    
    .nav a:hover::before{
      height:60%;
    }
    
    .nav a.active{
      color:#ffffff;
      background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
      box-shadow:var(--shadow-md);
      transform:translateX(-4px);
    }
    
    .nav a.active::before{
      height:60%;
    }
    
    .nav a.active::after{
      opacity:0;
    }
    .nav-group{ margin:0 8px 4px; border-radius:var(--radius); }
    .nav-group-toggle{
      display:flex; align-items:center; justify-content:flex-start;
      color:#475569; padding:14px 18px; cursor:pointer; border:none; background:transparent;
      width:100%; text-align:right; font-size:15px; font-weight:600; font-family:inherit;
      border-radius:var(--radius); transition:var(--transition); position:relative;
    }
    .nav-group-toggle:hover{ color:#ffffff; background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%); }
    .nav-group-toggle::after{ content:""; position:absolute; left:12px; width:0; height:0; border:5px solid transparent; border-top-color:currentColor; transition:transform 0.2s; }
    .nav-group.open .nav-group-toggle::after{ transform:rotate(180deg); }
    .nav-group-sub{ display:none; flex-direction:column; gap:2px; padding:4px 0 4px 12px; border-inline-start:2px solid var(--border); margin-inline-start:8px; }
    .nav-group.open .nav-group-sub{ display:flex; }
    .nav-group-sub a{ margin:0; padding:10px 14px; font-size:14px; }
    .content{
      padding:32px;
      max-width:1920px;
      margin:0 auto;
      width:100%;
      min-width:0;
    }
    
    .card{
      background:var(--surface);
      border-radius:var(--radius-lg);
      padding:20px 16px;
      margin-bottom:24px;
      border:1px solid var(--border);
      box-shadow:var(--shadow);
      transition:var(--transition);
      position:relative;
      overflow:hidden;
    }
    
    /* Special padding for table cards */
    .card:has(.table-wrapper){
      padding:16px 8px;
    }
    
    .card::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:3px;
      background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);
      opacity:0;
      transition:var(--transition);
    }
    
    .card:hover{
      box-shadow:var(--shadow-lg);
      transform:translateY(-2px);
    }
    
    .card:hover::before{
      opacity:1;
    }

    /* كرت فلاتر التعميد: السماح للقائمة المنسدلة بالظهور فوق الكروت التالية */
    .card-filters-taameed{
      overflow:visible;
    }

    /* كرت تفاصيل الطلب: توسيع العرض وتمرير أفقي لظهور كل الحقول والأزرار */
    .details-card-widen{
      overflow-x:auto;
      overflow-y:visible;
      min-width:0;
    }
    .details-card-widen table{
      min-width:1500px;
    }
    .card-filters-taameed .toolbar-filters{
      overflow:visible;
    }
}

    /* ضبط نمط نماذج السلفة وباقي النماذج */
    .form{
      display:flex;
      flex-direction:column;
      gap:10px;
      margin-top:8px;
    }
    .form-row{
      display:grid;
      grid-template-columns:220px minmax(0,1fr);
      align-items:center;
      gap:8px;
    }
    .form-label{
      font-weight:700;
      font-size:18px;
      color:#1f2937;
    }
    .form-field{
      width:100%;
    }
    .form-field .input,
    .form-field select,
    .form-field textarea{
      font-size:19px;
    }
    /* تمييز الصف المحدد في جدول قرارات السلفة */
    .selected-row{
      background:#eff6ff;
    }
    .login-card{
      max-width:440px;
      width:100%;
      background:var(--surface);
      border-radius:var(--radius-xl);
      padding:48px 40px;
      margin:40px auto;
      box-shadow:var(--shadow-xl);
      border:1px solid var(--border);
      position:relative;
      overflow:hidden;
    }
    
    .login-card::before{
      content:"";
      position:absolute;
      top:0;
      left:0;
      right:0;
      height:4px;
      background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 50%,var(--success) 100%);
    }
    .login-icon{
      text-align:center;
      margin-bottom:10px;
    }
    .login-icon::before{
      content:"";
      display:inline-block;
      width:240px;
      height:240px;
      background: url('kfu-logo.png') center/contain no-repeat;
    }
    .login-title{
      text-align:center;
      font-size:48px;
      font-weight:900;
      color:#BD9B54;
      text-shadow:0 3px 8px rgba(0,0,0,0.35);
      margin-bottom:6px;
    }
    .login-subtitle{
      text-align:center;
      font-size:14px;
      color:#bd9b54;
      margin-bottom:26px;
    }
    .remember-wrap{display:flex;align-items:center;font-size:14px;color:#4b5563;margin:4px 0 2px;gap:6px;}
    .login-actions{
      margin-top:10px;
    }
    .login-actions .btn.primary{
      width:100%;
      justify-content:center;
    }
    .page-title.page-title{font-weight:800;font-size:28px;margin-bottom:6px;text-align:center;}
.centered{text-align:center;font-size:34px;}
.dash-header{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin-bottom:24px;
  padding:24px;
  background:linear-gradient(135deg,var(--surface) 0%,#f8fafc 100%);
  border-radius:var(--radius-lg);
}

.dash-header > div:first-child{
  text-align:center;
}

/* Users list (إدارة المستخدمين) — scoped لتفادي التعارض مع design-system */
.users-list-wrap .users-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:14px;
  margin-top:12px;
}
.users-list-wrap .user-card{
  position:relative;
  z-index:1;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:14px;
  background:var(--surface);
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:visible;
}
.users-list-wrap .user-card:has(.users-more-menu.show){
  z-index:50;
}
.users-list-wrap .user-card .user-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.users-list-wrap .user-card .user-name{
  font-weight:700;
  font-size:16px;
  color:var(--text);
}
.users-list-wrap .user-card .user-role{
  font-size:13px;
  color:var(--muted);
}
.users-list-wrap .user-meta{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:var(--muted);
}
.users-list-wrap .user-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  position:relative;
  overflow:visible;
}
.users-list-wrap .user-card.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 2px rgba(37,99,235,0.3);
}
.users-header-bar .users-top-bar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:12px;
}
.users-top-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.users-search-input{
  padding:8px 14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  font-size:14px;
  min-width:200px;
}
.users-role-filter{
  padding:8px 12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
}
.users-main-row{
  display:grid;
  grid-template-columns:minmax(260px, 36%) 1fr;
  gap:24px;
  margin-top:20px;
  align-items:start;
}
@media (max-width:900px){
  .users-main-row{ grid-template-columns:1fr; }
}
.users-left-col{
  min-width:0;
}
.users-right-col{
  min-width:0;
}
.users-detail-panel{
  padding:20px;
  min-height:320px;
}
.users-detail-placeholder{
  padding:40px 20px;
  text-align:center;
  color:var(--muted);
}
.users-tabs .tabs-header{
  display:flex;
  gap:4px;
  margin-bottom:16px;
  border-bottom:1px solid var(--border);
}
.users-tabs .tab-btn{
  padding:10px 18px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  border-radius:var(--radius-sm);
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
}
.users-tabs .tab-btn:hover{ color:var(--text); }
.users-tabs .tab-btn.active{
  color:var(--primary);
  border-bottom-color:var(--primary);
}
.users-tab-content{
  display:none;
  padding-top:8px;
}
.accordion-item{
  border:1px solid var(--border);
  border-radius:var(--radius);
  margin-bottom:12px;
  overflow:hidden;
}
.accordion-head{
  padding:14px 18px;
  background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);
  cursor:pointer;
  font-weight:600;
  font-size:15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.accordion-head:hover{ background:#e2e8f0; }
.accordion-body{
  padding:16px 18px;
  background:var(--surface);
}
.perm-group{
  margin-bottom:8px;
}
.dropdown-menu.users-more-menu{
  display:none;
  position:absolute;
  top:100%;
  right:0;
  left:auto;
  margin-top:6px;
  min-width:200px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:0 10px 25px rgba(0,0,0,0.15);
  z-index:999;
  padding:8px 0;
}
.users-list-wrap .user-actions .dropdown{ position:relative; overflow:visible; }
.users-list-wrap .user-actions .dropdown .dropdown-menu.users-more-menu{ display:none; }
.users-list-wrap .user-actions .dropdown .dropdown-menu.users-more-menu.show{ display:block !important; }
.dropdown-item{
  display:block;
  width:100%;
  padding:10px 16px;
  border:none;
  background:none;
  text-align:right;
  cursor:pointer;
  font-size:14px;
  color:var(--text);
}
.dropdown-item:hover{ background:#f1f5f9; }
.dropdown-item.danger{ color:var(--danger); font-weight:600; }

.dash-header .page-title{
  font-weight:800;
  font-size:32px;
  margin-bottom:8px;
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.centered{text-align:center;font-size:34px;}

.dash-sub{
  font-size:16px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.6;
}

.dash-filters{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin:16px 0;
}

.dash-filters .filter-btn{
  padding:10px 20px;
  border-radius:var(--radius);
  font-weight:600;
  transition:var(--transition);
  border:2px solid var(--border);
}

.dash-filters .filter-btn:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}

.dash-filters .filter-btn.primary{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  color:#fff;
  border-color:var(--primary);
}

.dash-section{
  margin-top:20px;
  margin-bottom:20px;
}

.dash-kpis .card{
  background:linear-gradient(135deg,var(--surface) 0%,#f8fafc 100%);
  border-radius:var(--radius-lg);
  padding:24px 20px;
  margin-bottom:0;
  border:2px solid var(--border);
  box-shadow:var(--shadow);
  color:var(--text);
  position:relative;
  overflow:hidden;
  transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-kpis .card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.3s ease;
}

.dash-kpis .card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--primary);
}

.dash-kpis .card:hover::before{
  transform:scaleX(1);
}

.dash-kpis .kpi-icon{
  font-size:32px;
  margin-bottom:12px;
  opacity:0.8;
}

.dash-card{
  height:100%;
  transition:var(--transition);
}

.dash-card:hover{
  box-shadow:var(--shadow-lg);
  transform:translateY(-2px);
}
    .req-top{margin-top:8px;margin-bottom:10px;align-items:flex-start;}
    .users-top{margin-top:8px;margin-bottom:10px;align-items:flex-start;}


.dash-mini .label{
  color:#1e293b;
  font-size:20px;
  font-weight:700;
}
    .label{
  color:#1e293b;
  font-size:20px;
  font-weight:700;
}
    .value{font-weight:800;font-size:31px;margin-top:6px;}
    .toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0;align-items:flex-end;}
    .toolbar-filters{background:#e0f2fe;border-radius:14px;padding:10px 12px;border:1px solid #bfdbfe;box-shadow:0 4px 12px rgba(15,23,42,0.10);}
    .toolbar-filters .label{
  color:#1e293b;
  font-size:20px;
  font-weight:700;
}
    .toolbar-filters .input,
    .toolbar-filters .select{font-size:18px;padding:8px 12px;background:#ffffff;}
    .toolbar-filters .btn{border-radius:999px;border:1px solid var(--border);padding:10px 20px;background:#ffffff;font-size:17px;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-weight:600;box-shadow:0 10px 24px rgba(15,23,42,0.30);transition:all .2s ease;}
    .btn:hover{transform:translateY(-1px);box-shadow:0 16px 36px rgba(15,23,42,0.45);}
    .search-main{flex:1 1 260px;}
    .search-main input{font-size:19px;font-weight:500;}
    .search-box{position:relative;display:block;}
    .search-box::before{content:"🔍";position:absolute;left:10px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:18px;opacity:0.7;}
    .search-box input{padding-left:32px;}
    .btn{
      border-radius:var(--radius);
      border:none;
      padding:12px 24px;
      background:var(--surface);
      font-size:15px;
      font-weight:600;
      cursor:pointer;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      gap:8px;
      box-shadow:var(--shadow);
      transition:var(--transition);
      position:relative;
      overflow:hidden;
      font-family:inherit;
    }
    
    .btn::before{
      content:"";
      position:absolute;
      inset:0;
      background:linear-gradient(135deg,rgba(255,255,255,0.2) 0%,transparent 100%);
      opacity:0;
      transition:var(--transition);
    }
    
    .btn:hover{
      transform:translateY(-2px);
      box-shadow:var(--shadow-lg);
    }
    
    .btn:hover::before{
      opacity:1;
    }
    
    .btn:active{
      transform:translateY(0);
      box-shadow:var(--shadow);
    }
    
    .btn.primary{
      background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
      color:#ffffff;
      box-shadow:var(--shadow-md);
    }
    
    .btn.primary:hover{
      box-shadow:var(--shadow-xl);
      background:linear-gradient(135deg,var(--primary-dark) 0%,var(--primary) 100%);
    }
    
    .btn.danger{
      background:linear-gradient(135deg,var(--danger) 0%,var(--danger-light) 100%);
      color:#ffffff;
    }
    
    .btn.danger:hover{
      background:linear-gradient(135deg,#dc2626 0%,var(--danger) 100%);
    }
    
    .btn.disabled{
      background:#f1f5f9;
      color:#94a3b8;
      cursor:not-allowed;
      opacity:0.6;
    }
    
    .btn.disabled:hover{
      transform:none;
      box-shadow:var(--shadow);
    }
  /* === Stage locked (read-only) === */
  .step-locked{opacity:.72;}
  .step-locked input,
  .step-locked select,
  .step-locked textarea{background:#f3f4f6 !important; cursor:not-allowed !important;}

    .input,.select,.textarea{
      width:100%;
      padding:12px 16px;
      border-radius:var(--radius);
      border:1.5px solid var(--border);
      font-size:15px;
      font-family:inherit;
      transition:var(--transition);
      background:var(--surface);
      color:var(--text);
    }
    
    .input:focus,.select:focus,.textarea:focus{
      outline:none;
      border-color:var(--primary);
      box-shadow:0 0 0 3px rgba(37,99,235,0.1);
    }
    
    .input:hover,.select:hover,.textarea:hover{
      border-color:#cbd5e1;
    }
    
    .textarea{
      min-height:100px;
      resize:vertical;
    }
    
    table{
      width:100%;
      border-collapse:separate;
      border-spacing:0;
      font-size:14px;
      background:var(--surface);
      border-radius:var(--radius);
      overflow:hidden;
      box-shadow:var(--shadow-sm);
    }
    
    th{
      background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);
      font-weight:700;
      font-size:12px;
      text-transform:none;
      letter-spacing:0;
      color:var(--text);
      padding:10px 8px;
      border-bottom:2px solid var(--border);
      text-align:right;
      position:sticky;
      top:0;
      z-index:10;
    }
    
    td{
      padding:10px 8px;
      border-bottom:1px solid var(--border);
      text-align:right;
      vertical-align:middle;
      transition:var(--transition);
      font-size:13px;
    }
    
    tr:hover td{
      background:#f8fafc;
    }
    
    tr:last-child td{
      border-bottom:none;
    }
    
    /* Table wrapper - optimized for full width display */
    .table-wrapper{
      width:100%;
      overflow:visible;
      margin:16px 0;
    }
    
    .table-wrapper table{
      width:100%;
      table-layout:fixed;
      border-collapse:collapse;
    }
    
    /* Allow table to expand if needed but prefer fixed layout */
    .table-wrapper{
      min-width:100%;
    }
    
    /* Ensure table fits container */
    .table-wrapper{
      box-sizing:border-box;
    }
    
    .card .table-wrapper{
      margin-left:0;
      margin-right:0;
      width:100%;
    }
    
    /* Remove any width restrictions */
    .table-wrapper th,
    .table-wrapper td{
      min-width:auto;
      max-width:none;
    }
    
    .table-wrapper th{
      white-space:normal;
      padding:12px 10px;
      font-size:14px;
      font-weight:700;
      text-transform:none;
      letter-spacing:0;
      overflow:visible;
      text-overflow:clip;
      line-height:1.5;
    }
    
    .table-wrapper td{
      white-space:normal;
      word-wrap:break-word;
      padding:12px 10px;
      line-height:1.6;
      font-size:14px;
      vertical-align:middle;
      overflow:visible;
      text-overflow:clip;
    }
    
    /* Optimized column widths - distributed evenly */
    .table-wrapper th:nth-child(1),
    .table-wrapper td:nth-child(1){
      width:3%;
      text-align:center;
      padding:12px 6px;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(2),
    .table-wrapper td:nth-child(2){
      width:7%;
      font-size:13px;
      font-family:'Courier New',monospace;
    }
    
    .table-wrapper th:nth-child(3),
    .table-wrapper td:nth-child(3){
      width:6%;
      font-size:13px;
      font-family:'Courier New',monospace;
    }
    
    .table-wrapper th:nth-child(4),
    .table-wrapper td:nth-child(4){
      width:6%;
      font-size:13px;
      font-family:'Courier New',monospace;
    }
    
    .table-wrapper th:nth-child(5),
    .table-wrapper td:nth-child(5){
      width:6%;
      font-size:13px;
      font-family:'Courier New',monospace;
    }
    
    .table-wrapper th:nth-child(6),
    .table-wrapper td:nth-child(6){
      width:6%;
      font-size:13px;
      font-family:'Courier New',monospace;
    }
    
    .table-wrapper th:nth-child(7),
    .table-wrapper td:nth-child(7){
      width:5%;
      font-weight:600;
      text-align:left;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(8),
    .table-wrapper td:nth-child(8){
      width:6%;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(9),
    .table-wrapper td:nth-child(9){
      width:7%;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(10),
    .table-wrapper td:nth-child(10){
      width:8%;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(11),
    .table-wrapper td:nth-child(11){
      width:4%;
      text-align:center;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(12),
    .table-wrapper td:nth-child(12){
      width:4%;
      text-align:center;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(13),
    .table-wrapper td:nth-child(13){
      width:6%;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(14),
    .table-wrapper td:nth-child(14){
      width:8%;
      font-size:14px;
    }
    
    .table-wrapper th:nth-child(15),
    .table-wrapper td:nth-child(15){
      width:7.5%;
      font-size:14px;
      padding:12px 8px;
    }
    
    .table-wrapper th:nth-child(16),
    .table-wrapper td:nth-child(16){
      width:7.5%;
      font-size:14px;
      padding:12px 8px;
    }
    
    /* Special styling for actions column */
    .table-wrapper td:nth-child(16){
      display:flex;
      flex-direction:column;
      gap:8px;
      align-items:flex-start;
      justify-content:flex-start;
      padding:12px 8px;
    }
    
    .table-wrapper td:nth-child(16) button{
      width:100%;
      max-width:120px;
      margin:0;
      padding:8px 12px;
      font-size:14px;
      font-family:inherit;
      text-align:center;
      box-sizing:border-box;
    }
    
    /* Ensure badges and chips in status and alerts columns */
    .table-wrapper td:nth-child(14) .badge,
    .table-wrapper td:nth-child(15) .badge,
    .table-wrapper td:nth-child(14) .chip,
    .table-wrapper td:nth-child(15) .chip{
      font-size:12px;
      font-family:inherit;
    }
    
    /* Clear and readable badges and chips */
    .table-wrapper .badge{
      padding:6px 12px;
      font-size:12px;
      font-family:inherit;
      display:inline-block;
      white-space:normal;
      line-height:1.4;
      word-wrap:break-word;
      box-shadow:0 2px 6px rgba(0,0,0,0.15);
      opacity:0.9;
      font-weight:600;
    }
    
    .table-wrapper .chip{
      padding:4px 8px;
      font-size:11px;
      margin:2px;
      display:inline-block;
      line-height:1.4;
      word-wrap:break-word;
    }
    
    .table-wrapper .chips{
      display:flex;
      flex-wrap:wrap;
      gap:4px;
      max-width:100%;
      line-height:1.5;
    }
    
    .table-wrapper .tag-btn{
      font-size:13px;
      padding:4px 8px;
      white-space:normal;
      overflow:visible;
      text-overflow:clip;
      max-width:none;
      display:inline-block;
      border:none;
      background:transparent;
      color:var(--primary);
      cursor:pointer;
      text-decoration:underline;
      word-wrap:break-word;
    }
    
    .table-wrapper .tag-btn:hover{
      color:var(--primary-dark);
    }
    
    .table-wrapper button{
      padding:6px 12px;
      font-size:13px;
      margin:3px;
      white-space:normal;
      word-wrap:break-word;
    }
    
    .table-wrapper button.btn{
      padding:7px 14px;
      font-size:13px;
    }
    
    /* Ensure all content is visible */
    .table-wrapper td > *{
      max-width:none;
      box-sizing:border-box;
      overflow:visible;
    }
    
    /* Better text wrapping for long content */
    .table-wrapper td{
      -ms-hyphens:auto;
      -webkit-hyphens:auto;
      hyphens:auto;
    }
    
    /* Responsive adjustments */
    @media(max-width:1600px){
      .table-wrapper th,
      .table-wrapper td{
        padding:6px 4px;
        font-size:11px;
      }
      
      .table-wrapper th:nth-child(1),
      .table-wrapper td:nth-child(1){
        width:2.5%;
      }
      
      .table-wrapper th:nth-child(2),
      .table-wrapper td:nth-child(2),
      .table-wrapper th:nth-child(3),
      .table-wrapper td:nth-child(3),
      .table-wrapper th:nth-child(4),
      .table-wrapper td:nth-child(4),
      .table-wrapper th:nth-child(5),
      .table-wrapper td:nth-child(5),
      .table-wrapper th:nth-child(6),
      .table-wrapper td:nth-child(6){
        width:5.5%;
      }
    }
    
    @media(max-width:1400px){
      .table-wrapper th:nth-child(5),
      .table-wrapper td:nth-child(5),
      .table-wrapper th:nth-child(6),
      .table-wrapper td:nth-child(6){
        display:none;
      }
      
      /* Redistribute space */
      .table-wrapper th:nth-child(2),
      .table-wrapper td:nth-child(2),
      .table-wrapper th:nth-child(3),
      .table-wrapper td:nth-child(3),
      .table-wrapper th:nth-child(4),
      .table-wrapper td:nth-child(4){
        width:7%;
      }
    }
    
    @media(max-width:1200px){
      .table-wrapper th:nth-child(9),
      .table-wrapper td:nth-child(9),
      .table-wrapper th:nth-child(12),
      .table-wrapper td:nth-child(12),
      .table-wrapper th:nth-child(15),
      .table-wrapper td:nth-child(15){
        display:none;
      }
    }
    
    .grid{display:grid;gap:10px;}
    .two{grid-template-columns:repeat(2,minmax(0,1fr));}
    .three{grid-template-columns:repeat(3,minmax(0,1fr));}
    .four{grid-template-columns:repeat(4,minmax(0,1fr));}
    .audit-important{background:rgba(255, 241, 185, 0.35);}
    .audit-critical{background:rgba(255, 199, 199, 0.35); font-weight:600;}
    .stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:12px;}
    .stat-box{background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border:1px solid #e2e8f0;border-radius:12px;padding:14px 18px;text-align:center;}
    .stat-value{font-size:22px;font-weight:800;color:#0f172a;}
    .stat-label{font-size:13px;color:#64748b;margin-top:4px;}
    .severity-high{background:rgba(239, 68, 68, 0.12);}
    .severity-medium{background:rgba(249, 115, 22, 0.12);}
    .severity-low{background:rgba(34, 197, 94, 0.12);}
    tr.severity-high td:first-of-type,.severity-high .stat-value{color:#dc2626;}
    tr.severity-medium td:first-of-type,.severity-medium .stat-value{color:#ea580c;}
    tr.severity-low td:first-of-type,.severity-low .stat-value{color:#16a34a;}
    .content table tbody tr.selected{background:rgba(37, 99, 235, 0.15) !important;font-weight:600;}
    .iss-hub-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;margin:14px 0 8px;}
    .iss-hub-kpi{cursor:pointer;border:2px solid transparent;border-radius:12px;padding:10px 12px;text-align:center;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);transition:border-color .15s,box-shadow .15s;}
    .iss-hub-kpi:hover{border-color:#93c5fd;box-shadow:0 2px 8px rgba(37,99,235,.1);}
    .iss-hub-kpi.on{border-color:#2563eb;background:#eff6ff;}
    .iss-hub-kpi .n{font-size:1.28rem;font-weight:800;color:#1e40af;line-height:1.15;}
    .iss-hub-kpi .l{font-size:.78rem;color:#64748b;margin-top:3px;}
    .iss-hub-controls{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:10px;}
    .iss-hub-table-wrap table tbody tr{cursor:pointer;}
    .iss-hub-table-wrap table tbody tr.iss-row-sel{background:rgba(37,99,235,.1) !important;box-shadow:inset 0 0 0 1px #93c5fd;}
    .iss-st-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:700;white-space:nowrap;}
    .iss-st-draft{background:#f1f5f9;color:#475569;}
    .iss-st-submitted{background:#dbeafe;color:#1d4ed8;}
    .iss-st-pending{background:#fef3c7;color:#b45309;}
    .iss-st-approved{background:#d1fae5;color:#047857;}
    .iss-st-rejected{background:#fee2e2;color:#b91c1c;}
    .iss-st-dispensed{background:#e0e7ff;color:#3730a3;}
    .iss-hub-empty{color:#64748b;text-align:center;padding:32px 16px;font-size:.95rem;}
    .iss-hub-detail-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:10px;}
    .detail-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px;}
    .detail-table .detail-key{width:180px;font-weight:600;color:#475569;padding:8px 12px;border-bottom:1px solid #e2e8f0;vertical-align:top;}
    .detail-table .detail-val{word-break:break-word;padding:8px 12px;border-bottom:1px solid #e2e8f0;}
    .detail-placeholder{margin-top:12px;}
    @media(max-width:1024px){
      .layout{
        grid-template-columns:1fr;
      }
      
      .sidebar{
        position:fixed;
        left:-100%;
        top:0;
        height:100vh;
        z-index:1000;
        transition:var(--transition-slow);
        width:280px;
      }
      
      .sidebar.open{
        left:0;
      }
      
      .content{
        padding:20px;
      }
      
      .two,.three,.four{
        grid-template-columns:1fr;
      }
    }
    
    @media(max-width:768px){
      .content{
        padding:16px;
      }
      
      .card{
        padding:20px;
        border-radius:var(--radius-md);
      }
      
      .btn{
        padding:10px 20px;
        font-size:14px;
      }
      
      .login-card{
        padding:32px 24px;
        margin:20px auto;
      }
    }
    
    @keyframes fadeIn{
      from{
        opacity:0;
        transform:translateY(10px);
      }
      to{
        opacity:1;
        transform:translateY(0);
      }
    }
    
    @keyframes slideIn{
      from{
        transform:translateX(-20px);
        opacity:0;
      }
      to{
        transform:translateX(0);
        opacity:1;
      }
    }
    
    .card{
      animation:fadeIn 0.4s ease-out;
    }
    
    .nav a{
      animation:slideIn 0.3s ease-out backwards;
    }
    
    .nav a:nth-child(1){animation-delay:0.05s;}
    .nav a:nth-child(2){animation-delay:0.1s;}
    .nav a:nth-child(3){animation-delay:0.15s;}
    .nav a:nth-child(4){animation-delay:0.2s;}
    .nav a:nth-child(5){animation-delay:0.25s;}
    .nav a:nth-child(6){animation-delay:0.3s;}
    .muted{color:var(--muted);font-size:16px;}
    .center{display:grid;place-items:center;min-height:100vh;padding:18px;}
    .topbar{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:16px;
      margin-bottom:24px;
      padding:16px 0;
      border-bottom:1px solid var(--border);
      position:relative;
      z-index:1500;
    }
    /* يبقي محتوى الصفحة تحت الشريط العلوي (ومنها قائمة التنبيهات المطلقة) */
    .app-view-host{
      position:relative;
      z-index:0;
      width:100%;
      min-width:0;
    }
    
    .userchip{
      display:flex;
      align-items:center;
      gap:12px;
      background:linear-gradient(135deg,var(--surface) 0%,#f8fafc 100%);
      border-radius:var(--radius);
      padding:10px 20px;
      color:var(--text);
      box-shadow:var(--shadow);
      border:1px solid var(--border);
      transition:var(--transition);
      font-weight:600;
      font-size:14px;
    }
    
    .userchip:hover{
      box-shadow:var(--shadow-md);
      transform:translateY(-1px);
    }
    .badge{
      display:inline-flex;
      align-items:center;
      padding:6px 12px;
      border-radius:var(--radius);
      font-size:12px;
      font-family:inherit;
      font-weight:600;
      line-height:1.4;
      transition:var(--transition);
      box-shadow:0 2px 6px rgba(0,0,0,0.15);
      opacity:0.9;
    }
    
    .badge.danger{
      background:linear-gradient(135deg,#fee2e2 0%,#fecaca 100%);
      color:#991b1b;
      border:1px solid #fca5a5;
    }
    
    .badge.warn{
      background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);
      color:#92400e;
      border:1px solid #fcd34d;
    }
    
    .badge.success{
      background:linear-gradient(135deg,#d1fae5 0%,#a7f3d0 100%);
      color:#065f46;
      border:1px solid #6ee7b7;
    }
    
    .badge.info{
      background:linear-gradient(135deg,#dbeafe 0%,#bfdbfe 100%);
      color:#1e40af;
      border:1px solid #93c5fd;
    }
    .req-overdue{background:#fee2e2;}
    .req-lastday{background:#fffbeb;}
    .req-complete{background:#ecfdf3;}
    .req-missing{background:#fef9c3;}
    /* === Locked transaction (read-only highlight in list) === */
    .req-locked{background:#f3f4f6 !important;}
    tr.req-locked td{opacity:0.72;}
    tr.req-locked td .badge{opacity:0.92;}
    tr.req-locked td .chip{opacity:0.92;}
    tr.req-locked td:first-child{border-right:4px solid #9ca3af;}
    .order-card.req-locked{background:#f3f4f6 !important; opacity:0.78; border:1px solid #d1d5db;}
    .order-card.req-locked .badge{opacity:0.95;}
    .order-card.req-locked .chip{opacity:0.95;}
    .req-risk{box-shadow:0 0 0 1px #facc15 inset;}
    .section-title{font-weight:700;font-size:20px;margin-bottom:4px;}
    .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;}
    .chip{padding:3px 8px;border-radius:999px;font-size:15px;background:#f3f4f6;color:#374151;}
    .chip.danger{background:#fee2e2;color:#b91c1c;}
    .chip.success{background:#dcfce7;color:#166534;}
    .chip.locked{background:#e5e7eb;color:#111827;font-weight:800;}
    .timeline{display:flex;align-items:center;justify-content:space-around;gap:8px;margin-top:16px;padding:20px 16px;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 100%);border-radius:20px;border:2px solid #7dd3fc;position:relative;box-shadow:0 4px 20px rgba(37,99,235,0.1);flex-wrap:nowrap;overflow-x:auto;}.timeline-step{position:relative;flex:0 0 auto;border-radius:10px;border:2.5px solid #bfdbfe;background:linear-gradient(135deg,#ffffff 0%,#f0f9ff 100%);padding:10px 12px;font-size:11px;font-weight:600;text-align:center;color:#1e40af;transition:all 0.4s cubic-bezier(0.34,1.56,0.64,1);z-index:10;min-width:85px;box-shadow:0 4px 12px rgba(37,99,235,0.15);cursor:pointer;white-space:normal;}.timeline-step:hover{border-color:#0ea5e9;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);transform:translateY(-4px);box-shadow:0 12px 24px rgba(37,99,235,0.3);}.timeline-step.done{background:linear-gradient(135deg,#dbeafe 0%,#bae6fd 100%);border-color:#0ea5e9;color:#0369a1;font-weight:700;box-shadow:0 6px 16px rgba(14,165,233,0.25);}.timeline-step.done::before{content:"✓";position:absolute;top:-10px;right:-10px;width:22px;height:22px;background:#10b981;color:#ffffff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;border:2px solid #ffffff;box-shadow:0 2px 8px rgba(16,185,129,0.4);z-index:20;}.timeline-step.current{background:linear-gradient(135deg,#06b6d4 0%,#0ea5e9 100%);border-color:#0369a1;color:#ffffff;font-weight:700;box-shadow:0 12px 32px rgba(14,165,233,0.6);transform:scale(1.08);animation:pulseStep 2s ease-in-out infinite;}.timeline-step.current .label,.timeline-step.current .muted{color:#ffffff;}.timeline-step .label{display:block;font-weight:700;font-size:11px;margin-bottom:3px;line-height:1.3;}.timeline-step .muted{display:block;font-size:9px;opacity:0.7;line-height:1.3;margin-top:2px;}@keyframes pulseStep{0%{box-shadow:0 12px 32px rgba(14,165,233,0.6);}50%{box-shadow:0 12px 40px rgba(14,165,233,0.8);}100%{box-shadow:0 12px 32px rgba(14,165,233,0.6);}}.timeline-step:not(:first-child)::after{content:"←";position:absolute;right:-32px;top:50%;transform:translateY(-50%);font-size:22px;color:#0ea5e9;text-shadow:0 2px 10px rgba(14,165,233,0.5);z-index:5;animation:arrowMoveLeft 2s ease-in-out infinite;opacity:0.95;font-weight:700;letter-spacing:0;}@keyframes arrowMoveLeft{0%{transform:translateY(-50%) translateX(2px);}50%{transform:translateY(-50%) translateX(-3px);}100%{transform:translateY(-50%) translateX(2px);}}
    .tag-btn{background:none;border:none;color:#2563eb;font-size:16px;cursor:pointer;padding:0;}
    #err{display:none;position:fixed;inset:10px;background:#111827;color:#fff;border-radius:10px;border:2px solid #ef4444;padding:10px;font-size:16px;z-index:9999;overflow:auto;max-height:90vh;white-space:pre-wrap;}
    .progress{
      position:relative;
      width:100%;
      height:12px;
      border-radius:var(--radius);
      background:#e2e8f0;
      overflow:hidden;
      margin-top:8px;
      box-shadow:inset 0 2px 4px rgba(0,0,0,0.06);
    }
    
    .progress-bar{
      height:100%;
      border-radius:var(--radius);
      background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 50%,var(--success) 100%);
      transition:width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      position:relative;
      overflow:hidden;
    }
    
    .progress-bar::after{
      content:"";
      position:absolute;
      top:0;
      left:0;
      bottom:0;
      right:0;
      background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.3) 50%,transparent 100%);
      animation:shimmer 2s infinite;
    }
    
    @keyframes shimmer{
      0%{transform:translateX(-100%);}
      100%{transform:translateX(100%);}
    }
    /* مركز التنبيهات */
    .notif-wrap{position:relative;display:flex;align-items:center;gap:12px;}
    .notif-btn{position:relative;padding:10px 16px;border-radius:10px;border:2px solid #e5e7eb;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);font-size:14px;font-weight:600;color:#1e40af;transition:all 0.3s ease;cursor:pointer;display:flex;align-items:center;gap:6px;}
    .notif-btn:hover{border-color:#0ea5e9;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);transform:translateY(-2px);box-shadow:0 6px 16px rgba(37,99,235,0.2);}
    .notif-btn:hover{animation:bellRing 0.6s ease-in-out;}
    @keyframes bellRing{0%{transform:translateY(-2px) rotate(0deg);}25%{transform:translateY(-2px) rotate(-8deg);}75%{transform:translateY(-2px) rotate(8deg);}100%{transform:translateY(-2px) rotate(0deg);}}
    .notif-count{position:absolute;top:-8px;left:-8px;background:linear-gradient(135deg,#ef4444 0%,#f87171 100%);color:#fff;border-radius:999px;font-size:12px;font-weight:700;padding:3px 7px;border:2px solid #fff;box-shadow:0 4px 12px rgba(239,68,68,0.4);animation:pulse 2s ease-in-out infinite;}
    @keyframes pulse{0%{transform:scale(1);box-shadow:0 4px 12px rgba(239,68,68,0.4);}50%{transform:scale(1.1);box-shadow:0 6px 20px rgba(239,68,68,0.6);}100%{transform:scale(1);box-shadow:0 4px 12px rgba(239,68,68,0.4);}}
    .notif-list{position:absolute;top:calc(100% + 12px);right:-80px;min-width:360px;max-width:460px;z-index:1000;background:#fff;border-radius:16px;border:2px solid #bfdbfe;box-shadow:0 12px 40px rgba(37,99,235,0.3);padding:0;max-height:500px;overflow:hidden;animation:slideDown 0.3s ease-out;display:none;}
    .notif-list.show{display:block;}
    .notif-item{padding:12px;margin-bottom:8px;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 100%);border-radius:10px;border-right:4px solid #0ea5e9;transition:all 0.3s ease;cursor:pointer;border-left:none;}
    .notif-item:last-child{margin-bottom:0;}
    .notif-item:hover{background:linear-gradient(135deg,#dbeafe 0%,#bae6fd 100%);border-right-color:#0369a1;transform:translateX(-4px);box-shadow:0 4px 12px rgba(37,99,235,0.15);}
    .notif-item.danger{border-right-color:#ef4444;background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);}
    .notif-item.danger:hover{border-right-color:#b91c1c;}
    .notif-item.warn{border-right-color:#f59e0b;background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);}
    .notif-item.warn:hover{border-right-color:#d97706;}
    .notif-item.info{border-left-color:#0ea5e9;background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 100%);}
    .notif-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;}
    .notif-item-badge{font-size:11px;font-weight:700;padding:3px 8px;border-radius:4px;}
    .notif-item-badge.danger{background:#ef4444;color:#fff;}
    .notif-item-badge.warn{background:#f59e0b;color:#fff;}
    .notif-item-badge.info{background:#0ea5e9;color:#fff;}
    .notif-item-time{font-size:11px;color:#94a3b8;}
    .notif-item-msg{font-size:13px;color:#1e293b;line-height:1.5;white-space:pre-line;}
    .notif-item-actions{display:flex;gap:6px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(0,0,0,0.1);}
    .notif-item-btn{flex:1;padding:6px 10px;border:1px solid #cbd5e1;background:#fff;border-radius:6px;font-size:12px;font-weight:600;color:#0ea5e9;cursor:pointer;transition:all 0.2s ease;}
    .notif-item-btn:hover{background:#0ea5e9;color:#fff;border-color:#0ea5e9;}
    .notif-empty{padding:20px;text-align:center;color:#94a3b8;font-size:13px;}
    .notif-header{padding:14px 16px;border-bottom:2px solid #e5e7eb;display:flex;justify-content:space-between;align-items:center;margin-bottom:0;font-weight:700;color:#0f172a;background:linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%);border-radius:14px 14px 0 0;}
    .notif-header-left{font-size:14px;}
    .notif-header-close{padding:4px 8px;border:none;background:transparent;color:#64748b;border-radius:6px;font-size:18px;cursor:pointer;transition:all 0.2s ease;display:flex;align-items:center;justify-content:center;width:28px;height:28px;}
    .notif-header-close:hover{background:#ef4444;color:#fff;}
    .notif-content{padding:12px;max-height:calc(500px - 60px);overflow-y:auto;}

  
  .toast-container{
    position:fixed;
    bottom:16px;
    left:16px;
    z-index:9999;
    display:flex;
    flex-direction:column;
    gap:6px;
  }
  .toast{
    min-width:280px;
    max-width:400px;
    padding:16px 20px;
    border-radius:var(--radius-md);
    font-size:15px;
    font-weight:500;
    background:var(--surface);
    color:var(--text);
    box-shadow:var(--shadow-xl);
    border:1px solid var(--border);
    opacity:0;
    transform:translateY(20px) scale(0.95);
    transition:var(--transition-slow);
    display:flex;
    align-items:center;
    gap:12px;
    position:relative;
    overflow:hidden;
  }
  
  .toast::before{
    content:"";
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:4px;
    background:currentColor;
  }
  
  .toast.show{
    opacity:1;
    transform:translateY(0) scale(1);
  }
  
  .toast.success{
    background:linear-gradient(135deg,#ecfdf5 0%,#d1fae5 100%);
    color:#065f46;
    border-color:#6ee7b7;
  }
  
  .toast.error{
    background:linear-gradient(135deg,#fef2f2 0%,#fee2e2 100%);
    color:#991b1b;
    border-color:#fca5a5;
  }
  
  .toast.info{
    background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
    color:#1e40af;
    border-color:#93c5fd;
  }
  
  .toast.warn{
    background:linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%);
    color:#92400e;
    border-color:#fcd34d;
  }

  /* View Toggle */
  .view-toggle{
    display:flex;
    gap:8px;
    margin-bottom:16px;
  }
  
  .view-toggle button{
    padding:8px 16px;
    border-radius:var(--radius);
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--text);
    font-size:14px;
    cursor:pointer;
    transition:var(--transition);
    display:flex;
    align-items:center;
    gap:6px;
  }
  
  .view-toggle button:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
  }
  
  .view-toggle button.primary{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
    box-shadow:var(--shadow-md);
  }
  
  .view-container{
    min-height:200px;
  }
  
  /* Orders Grid View */
  .orders-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(380px, 1fr));
    gap:20px;
    padding:8px 0;
  }
  
  @media (max-width: 768px){
    .orders-grid{
      grid-template-columns:1fr;
    }
  }
  
  .order-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    padding:0;
    box-shadow:var(--shadow);
    transition:var(--transition);
    overflow:hidden;
    position:relative;
    display:flex;
    flex-direction:column;
  }
  
  .order-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);
    opacity:0;
    transition:var(--transition);
  }
  
  .order-card:hover{
    box-shadow:var(--shadow-lg);
    transform:translateY(-4px);
    border-color:var(--primary);
  }
  
  .order-card:hover::before{
    opacity:1;
  }
  
  .order-card.req-risk{
    border-color:var(--danger);
  }
  
  .order-card.req-risk::before{
    background:linear-gradient(90deg,var(--danger) 0%,var(--danger-light) 100%);
    opacity:0.3;
  }
  
  .order-card-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px 20px;
    border-bottom:1px solid var(--border);
    background:linear-gradient(135deg,#f8fafc 0%,#ffffff 100%);
  }
  
  .order-card-header-left{
    display:flex;
    align-items:center;
    gap:12px;
  }
  
  .order-card-id{
    font-weight:700;
    font-size:18px;
    color:var(--primary);
    letter-spacing:0.5px;
  }
  
  .order-card-header-right{
    display:flex;
    align-items:center;
  }
  
  .order-card-amount{
    font-weight:700;
    font-size:16px;
    color:var(--success);
    background:linear-gradient(135deg,var(--success-light) 0%,var(--success) 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
  }
  
  .order-card-body{
    padding:20px;
    flex:1;
  }
  
  .order-card-info{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-bottom:16px;
  }
  
  .order-info-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    line-height:1.6;
    padding:8px 0;
    border-bottom:1px solid var(--border);
  }
  
  .order-info-item:last-child{
    border-bottom:none;
  }
  
  .order-info-item.highlight{
    background:linear-gradient(135deg,#f0f9ff 0%,#e0f2fe 100%);
    padding:10px 12px;
    border-radius:var(--radius);
    border-bottom:none;
    margin:4px 0;
  }
  
  .order-info-icon{
    font-size:16px;
    flex-shrink:0;
    width:24px;
    text-align:center;
  }
  
  .order-info-label{
    color:var(--muted);
    font-weight:500;
    min-width:100px;
  }
  
  .order-info-value{
    color:var(--text);
    font-weight:600;
    flex:1;
    word-break:break-word;
  }
  
  .order-card-flags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:16px;
    padding-top:16px;
    border-top:1px solid var(--border);
  }
  
  .order-card-footer{
    padding:16px 20px;
    border-top:1px solid var(--border);
    background:linear-gradient(135deg,#f8fafc 0%,#ffffff 100%);
  }
  
  .order-card-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
  }
  
  .order-card-actions button{
    flex:1;
    min-width:100px;
    padding:10px 16px;
    font-size:13px;
    border-radius:var(--radius);
    border:1px solid var(--border);
    background:var(--surface);
    color:var(--text);
    cursor:pointer;
    transition:var(--transition);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    font-weight:500;
  }
  
  .order-card-actions button:hover:not(:disabled){
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
    transform:translateY(-2px);
    box-shadow:var(--shadow-md);
  }
  
  .order-card-actions button.danger:hover:not(:disabled){
    background:var(--danger);
    border-color:var(--danger);
  }
  
  .order-card-actions button:disabled{
    opacity:0.5;
    cursor:not-allowed;
  }
  
  .empty-state{
    text-align:center;
    padding:60px 20px;
    color:var(--muted);
  }
  
  .empty-state p{
    font-size:16px;
  }

  .ops-hub-intro{
    border:1px solid var(--border);
    background:linear-gradient(135deg,#ffffff 0%,#f1f5f9 100%);
  }
  .ops-kpi-deck{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
    gap:10px;
    margin-top:12px;
  }
  .ops-kpi-card{
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:12px 14px;
    cursor:pointer;
    text-align:center;
    background:var(--surface);
    transition:var(--transition);
    box-shadow:var(--shadow-sm);
  }
  .ops-kpi-card:hover{ box-shadow:var(--shadow); transform:translateY(-1px); }
  .ops-kpi-card.active{
    border-color:var(--primary);
    box-shadow:0 0 0 2px rgba(37,99,235,0.2);
  }
  .ops-kpi-n{ font-size:22px; font-weight:800; color:var(--text); }
  .ops-kpi-l{ font-size:12px; color:var(--muted); margin-top:4px; line-height:1.3; }
  .ops-kpi-card.danger .ops-kpi-n{ color:var(--danger); }
  .ops-kpi-card.warn .ops-kpi-n{ color:var(--warn); }
  .ops-kpi-card.success .ops-kpi-n{ color:var(--success); }
  .ops-my-queue{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:10px;
  }
  .ops-queue-chip{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:8px 12px;
    border-radius:999px;
    border:1px solid var(--border);
    background:var(--surface);
    cursor:pointer;
    font-size:13px;
    max-width:100%;
  }
  .ops-queue-chip:hover{ border-color:var(--primary); }
  .ops-hub-split{
    display:grid;
    grid-template-columns:1fr minmax(300px,38%);
    gap:16px;
    align-items:start;
  }
  @media (max-width:1024px){
    .ops-hub-split{ grid-template-columns:1fr; }
  }
  .ops-hub-list .table-wrapper{ overflow-x:auto; }
  .ops-hub-preview-card{
    position:sticky;
    top:12px;
    max-height:calc(100vh - 120px);
    overflow-y:auto;
  }
  .ops-preview-body{ font-size:14px; }
  .ops-hub-tabs{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:12px 0;
  }
  .ops-kanban{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
    gap:12px;
    margin-top:12px;
  }
  .ops-kanban-col{
    background:var(--bg);
    border:1px solid var(--border);
    border-radius:var(--radius);
    min-height:200px;
    padding:10px;
  }
  .ops-kanban-col h4{ font-size:13px; color:var(--muted); margin-bottom:8px; }
  .ops-kanban-card{
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:8px;
    padding:8px 10px;
    margin-bottom:8px;
    font-size:12px;
    cursor:pointer;
  }
  .ops-kanban-card:hover{ border-color:var(--primary); }
  .ops-cal-wrap{ margin-top:12px; overflow-x:auto; }
  .ops-cal-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:4px;
    min-width:560px;
  }
  .ops-cal-head{ font-size:11px; color:var(--muted); text-align:center; padding:4px; }
  .ops-cal-cell{
    min-height:72px;
    border:1px solid var(--border);
    border-radius:8px;
    padding:4px;
    font-size:11px;
    background:var(--surface);
  }
  .ops-cal-cell.muted{ background:var(--bg); color:var(--muted); }
  .ops-cal-cell.today{ border-color:var(--primary); box-shadow:0 0 0 1px var(--primary); }
  .ops-cal-dot{ display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--warn); margin:1px; }

  .pagination{
    margin-top:10px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:6px;
    font-size:16px;
    flex-wrap:wrap;
  }
  .page-btn{
  min-width:42px;
  padding:8px 14px;
  font-size:18px;
  font-weight:700;
  border-radius:12px;
  background:linear-gradient(135deg,#C9A24F,#E4C985);
  border:1px solid #bfa770;
  cursor:pointer;
  color:#1f1f1f;
  box-shadow:0 3px 8px rgba(0,0,0,0.22);
  transition:0.2s ease;
}
  .page-btn.active{
    background:var(--primary);
    color:#ffffff;
    border-color:var(--primary);
  }
  .page-btn.disabled{
    opacity:.5;
    cursor:not-allowed;
  }
  .page-ellipsis{
    padding:0 4px;
    color:var(--muted);
  }


  /* --- لوحات الرسوم البيانية في التقارير والـ Dashboard --- */
  /* direction:ltr يمنع في RTL تجميع الأعمدة عند الطرف (يمين) مع فراغ على اليسار */
  .charts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap:20px;
    margin-top:20px;
    width:100%;
    min-width:0;
    direction:ltr;
    justify-content:stretch;
  }
  .charts-grid > .chart-card{
    direction:rtl;
    unicode-bidi:isolate;
    min-width:0;
  }

  /* لوحة المؤشرات: كرت التحليل البصري بنفس عرض الكروت المجاورة */
  .card.dash-card.dashboard-charts-section{
    width:100%;
  }
  .dashboard-charts-section > .section-title{
    text-align:center;
  }
  .dashboard-charts-section > .muted{
    text-align:center;
    max-width:42em;
    margin-inline:auto;
  }
  .dashboard-charts-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
    justify-content:stretch;
    justify-items:stretch;
    align-items:stretch;
  }
  @media(max-width:1199px){
    .dashboard-charts-grid{
      grid-template-columns:1fr;
    }
  }
  .dashboard-charts-section .dashboard-charts-grid > .chart-card{
    display:flex;
    flex-direction:column;
    min-height:0;
    height:100%;
    align-self:stretch;
  }
  .dashboard-charts-section .chart-card > .section-title,
  .dashboard-charts-section .chart-card > .muted{
    flex-shrink:0;
  }
  .dashboard-charts-section .chart-card > .chart-container{
    flex:1 1 auto;
    display:flex;
    flex-direction:column;
    min-height:0;
    overflow:hidden;
    padding:12px 10px 16px;
    gap:12px;
    align-items:stretch;
  }
  .dashboard-charts-section .chart-card > .chart-container > canvas{
    flex:0 0 auto;
    align-self:center;
    max-height:min(42vh, 300px);
    width:auto !important;
    height:auto !important;
  }
  .dashboard-charts-section .chart-legend{
    flex:1 1 auto;
    min-height:96px;
    max-height:min(28vh, 240px);
    max-width:none;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    padding-inline-end:6px;
  }
  .dashboard-charts-section .chart-card .section-title{
    font-size:19px;
    font-weight:800;
    line-height:1.35;
  }
  .dashboard-charts-section .chart-card .muted{
    font-size:14px;
    color:#cbd5e1;
    line-height:1.5;
  }
  .dashboard-charts-section .legend-item{
    font-size:14px;
    padding:10px 14px;
  }
  .dashboard-charts-section .legend-label{
    font-size:14px;
    font-weight:600;
  }
  .dashboard-charts-section .legend-value{
    font-size:13px;
    font-weight:600;
  }
  .card.dash-card.dash-timeline-card .dash-timeline-inner{
    margin-top:8px;
    border-radius:var(--radius-lg);
    background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
    border:1px solid rgba(148,163,184,0.25);
    padding:16px;
    min-height:280px;
    position:relative;
  }
  .card.dash-card.dash-timeline-card .dash-timeline-inner canvas{
    max-height:320px;
  }
  
  @media(max-width:1200px){
    .charts-grid:not(.dashboard-charts-grid){
      grid-template-columns:1fr;
    }
  }
  
  .chart-card{
    position:relative;
    padding:26px 22px;
    border-radius:var(--radius-lg);
    background:linear-gradient(135deg,#0f172a 0%,#1e293b 100%);
    box-shadow:var(--shadow-xl);
    color:#e5e7eb;
    border:1px solid rgba(148,163,184,0.3);
    min-height:320px;
    transition:var(--transition);
  }
  
  .chart-card:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 50px rgba(15,23,42,0.9);
  }
  
  .chart-card .section-title{
    color:#e5e7eb;
    font-size:18px;
    margin-bottom:8px;
  }
  
  .chart-card .muted{
    color:#9ca3af;
    font-size:13px;
    margin-bottom:16px;
  }

  .chart-card canvas{
    width:100%;
    max-height:400px;
    border-radius:var(--radius);
    background:rgba(255,255,255,0.05);
  }
  
  .chart-container{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:20px;
  }
  
  .chart-legend{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    max-width:400px;
  }
  
  .legend-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 16px;
    background:rgba(255,255,255,0.1);
    border-radius:var(--radius);
    transition:var(--transition);
  }
  
  .legend-item:hover{
    background:rgba(255,255,255,0.15);
    transform:translateX(4px);
  }
  
  .legend-color{
    width:20px;
    height:20px;
    border-radius:4px;
    flex-shrink:0;
    box-shadow:0 2px 4px rgba(0,0,0,0.2);
  }
  
  .legend-label{
    flex:1;
    color:#e5e7eb;
    font-size:14px;
    font-weight:600;
  }
  
  .legend-value{
    color:#9ca3af;
    font-size:13px;
    font-weight:500;
  }
  
  /* Alert Items */
  .alert-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 16px;
    margin-bottom:12px;
    background:var(--surface);
    border-radius:var(--radius);
    border:1px solid var(--border);
    transition:var(--transition);
  }
  
  .alert-item:hover{
    background:#f8fafc;
    transform:translateX(4px);
    box-shadow:var(--shadow-sm);
  }
  
  .alert-msg{
    flex:1;
    color:var(--text);
    font-size:14px;
    line-height:1.5;
  }
  
  /* Timeline */
  .timeline{
    position:relative;
    padding:20px 0;
  }
  
  .timeline::before{
    content:"";
    position:absolute;
    left:20px;
    top:0;
    bottom:0;
    width:2px;
    background:linear-gradient(180deg,var(--primary) 0%,var(--primary-light) 100%);
  }
  
  .timeline-item{
    position:relative;
    padding-left:60px;
    margin-bottom:24px;
    animation:fadeInUp 0.5s ease-out;
    animation-fill-mode:both;
  }
  
  .timeline-item:nth-child(1){ animation-delay:0.1s; }
  .timeline-item:nth-child(2){ animation-delay:0.2s; }
  .timeline-item:nth-child(3){ animation-delay:0.3s; }
  .timeline-item:nth-child(4){ animation-delay:0.4s; }
  .timeline-item:nth-child(5){ animation-delay:0.5s; }
  
  @keyframes fadeInUp{
    from{
      opacity:0;
      transform:translateY(20px);
    }
    to{
      opacity:1;
      transform:translateY(0);
    }
  }
  
  .timeline-dot{
    position:absolute;
    left:12px;
    top:4px;
    width:16px;
    height:16px;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
    border:3px solid var(--surface);
    box-shadow:0 0 0 3px rgba(37,99,235,0.1);
    z-index:2;
  }
  
  .timeline-content{
    background:var(--surface);
    padding:16px 20px;
    border-radius:var(--radius);
    border:1px solid var(--border);
    transition:var(--transition);
  }
  
  .timeline-content:hover{
    background:#f8fafc;
    box-shadow:var(--shadow-sm);
    transform:translateX(4px);
  }
  
  .timeline-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:8px;
    font-weight:700;
    font-size:15px;
    color:var(--text);
  }
  
  .timeline-date{
    font-size:12px;
    color:var(--muted);
    font-weight:500;
  }
  
  .timeline-desc{
    font-size:13px;
    color:var(--muted);
    line-height:1.6;
  }


    .only-print{display:none;}
  .no-print{ display:block; }
  .reports-print-area{ display:block; }

  /* نموذج منبثق لمرفقات البنود في المرحلة الرابعة */
  .modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,0.75);
    -webkit-backdrop-filter:blur(4px);
    backdrop-filter:blur(4px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9998;
    animation:fadeIn 0.2s ease-out;
  }
  
  .modal-backdrop.show{
    display:flex;
  }
  
  .modal-card{
    background:var(--surface);
    border-radius:var(--radius-xl);
    padding:32px;
    max-width:680px;
    width:calc(100% - 32px);
    max-height:90vh;
    overflow-y:auto;
    box-shadow:var(--shadow-xl);
    border:1px solid var(--border);
    animation:slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position:relative;
  }
  
  .modal-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:linear-gradient(90deg,var(--primary) 0%,var(--primary-light) 100%);
    border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  }
  .modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
  }
  .modal-title{
    font-weight:700;
    font-size:20px;
  }
  .modal-actions{
    display:flex;
    justify-content:flex-end;
    gap:8px;
    margin-top:12px;
  }


@media print {
    body {
      background:#ffffff !important;
    }

    /* إخفاء عناصر الواجهة العامة أثناء الطباعة */
    .sidebar,
    .topbar,
    .topbar .userchip,
    .nav,
    .toast-container,
    .notif-list {
      display:none !important;
    }

    .no-print {
      display:none !important;
    }

    .only-print {
      display:block !important;
    }

    .layout {
      display:block;
    }
    .content {
      padding:0 !important;
    }

    .card {
      box-shadow:none !important;
      border-radius:0 !important;
      border:1px solid #e5e7eb !important;
      page-break-inside:avoid;
      margin-bottom:8px;
    }

    .charts-grid {
      grid-template-columns:1fr !important;
    }
    .chart-card canvas {
      max-height:200px !important;
    }
  }

.print-header { display:none; text-align:center; }
@media print {
  .print-header { display:block !important; }
}

.pager{
  margin-top:20px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:center;
}
.pager button{
  padding:4px 10px;
  border-radius:6px;
}
.pager-info{
  font-size:13px;
  color:#64748b;
}


/* Center only error toast */
.toast.error{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  min-width:260px;
  max-width:480px;
  padding:14px 18px;
  border-radius:18px;
  font-size:18px;
  box-shadow:0 18px 40px rgba(15,23,42,.6);
  text-align:center;
}

/* Center normal (non-error) toasts on upper-middle of screen */
.toast:not(.error){
  position:fixed !important;
  top:5% !important;
  left:50% !important;
  transform:translate(-50%, 0) !important;
  min-width:260px !important;
  max-width:420px !important;
  text-align:center !important;
  border-radius:16px !important;
}

@media print { .print-header, .print-signature { display:block !important; visibility:visible !important; } }


.footer-rights {
  position: fixed;
  bottom: 6px;
  left: 12px;
  font-size: 14px;
  color: #64748b;
  opacity: 0.9;
  z-index: 9999;
}
.footer-trial {
  position: fixed;
  bottom: 6px;
  right: 12px;
  font-size: 14px;
  color: #64748b;
  opacity: 0.9;
  z-index: 9999;
}
@media print {
  .footer-rights, .footer-trial {
    display: none !important;
  }
}


/* ==== Light Professional Theme Overrides (Sulfa UI) ==== */
body{
  background:#f4f6fb !important;
}
.sidebar{
  background:#ffffff !important;
  color:#1f2937 !important;
  border-inline-start:1px solid #e5e7eb !important;
  box-shadow:0 4px 12px rgba(15,23,42,0.08) !important;
}
.brand{
  border-bottom:1px solid #e5e7eb !important;
}
.title{
  color:#0f172a !important;
}
.brand .label{
  color:#2563eb !important;
}
.card{
  border-radius:18px !important;
  border:1px solid #e5e7eb !important;
  box-shadow:0 6px 16px rgba(15,23,42,0.08) !important;
}
.dash-kpis .card{
  background:linear-gradient(135deg,#eff6ff 0%,#e0f2fe 100%) !important;
  border:1px solid #bfdbfe !important;
  color:#0f172a !important;
  box-shadow:0 8px 20px rgba(148,163,184,0.35) !important;
}
.dash-mini .label,
.label{
  color:#0f172a !important;
}
.value{
  color:#0f172a !important;
}
.chart-card{
  background:#ffffff !important;
  color:#0f172a !important;
  border-color:#e5e7eb !important;
  box-shadow:0 10px 30px rgba(15,23,42,0.08) !important;
}
.chart-card .section-title{
  color:#0f172a !important;
}
.chart-card .muted{
  color:#6b7280 !important;
}
.login-card{
  background:#ffffff !important;
  box-shadow:0 10px 30px rgba(15,23,42,0.12) !important;
  border:1px solid #e5e7eb !important;
}
.login-title{
  color:#2563eb !important;
  text-shadow:none !important;
}
.toolbar-filters{
  background:#eef2ff !important;
  border-color:#e0e7ff !important;
}
.btn.primary{
  background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%) !important;
  box-shadow:0 10px 24px rgba(37,99,235,0.45) !important;
}
.progress{
  background:#e5e7eb !important;
}
.progress-bar{
  background:linear-gradient(to left,#2563eb,#22c55e) !important;
}
.req-overdue{
  background:#fee2e2 !important;
}
.req-lastday{
  background:#fffbeb !important;
}
.req-complete{
  background:#ecfdf3 !important;
}
.req-missing{
  background:#fef9c3 !important;
}

/* === Executive Dashboard v4 === */
/* ضمان عرض عناصر motion ككتل — يمنع اختفاء الخلفية وتكدس الفلاتر */
.dash-pro-root,
.dash-pro-root motion.dash-pro-root,
motion.dash-pro-root{
  display:block;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.dash-pro-root motion.dash-hero,
motion.dash-hero{ display:block; width:100%; box-sizing:border-box; }
.dash-pro-root motion.dash-hero-top,
motion.dash-hero-top{ display:flex; width:100%; box-sizing:border-box; }
.dash-pro-root motion.dash-hero-copy,
motion.dash-hero-copy{ display:block; flex:1; min-width:0; }
.dash-pro-root motion.dash-hero-meta,
motion.dash-hero-meta{ display:flex; flex-wrap:wrap; }
.dash-pro-root motion.dash-hero-chip,
motion.dash-hero-chip{ display:inline-flex; }
.dash-pro-root motion.dash-filters,
motion.dash-filters{
  display:flex !important;
  flex-direction:row;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  flex-shrink:0;
}
.dash-pro-root motion.dash-kpi-strip,
.dash-pro-root motion.dash-kpi-extra-grid,
motion.dash-kpi-strip,
motion.dash-kpi-extra-grid{ display:grid; width:100%; }
.dash-pro-root motion.dash-kpi-pro,
motion.dash-kpi-pro{ display:flex; }

.dash-pro-root{
  padding-bottom:20px;
  max-width:100%;
  overflow-x:hidden;
}

/* إخفاء عنوان الشريط العلوي المكرر عند فتح الداشبورد */
.content:has(.dash-pro-root) .topbar .page-title{
  display:none;
}
.content:has(.dash-pro-root) .topbar{
  margin-bottom:8px;
  padding-bottom:8px;
  border-bottom-color:transparent;
}

.dash-hero{
  padding:24px 26px 22px;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f1f5f9 55%,#e8f0fe 100%);
  color:#0f172a;
  border:1px solid #e2e8f0;
  box-shadow:0 4px 24px rgba(15,23,42,.07);
  position:relative;
  overflow:hidden;
  margin-bottom:22px;
}

.dash-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(37,99,235,.04) 0%, transparent 45%);
  pointer-events:none;
  z-index:0;
}

.dash-hero::after{
  content:"";
  position:absolute;
  top:0;
  inset-inline-end:0;
  width:42%;
  height:100%;
  background:radial-gradient(ellipse at 100% 0%, rgba(37,99,235,.08) 0%, transparent 65%);
  pointer-events:none;
  z-index:0;
}

.dash-hero > *{ position:relative; z-index:1; }

.dash-hero .chips{ margin-top:12px; flex-wrap:wrap; gap:8px; display:flex; }
.dash-hero .chip{
  background:#fff;
  color:#334155;
  border:1px solid #e2e8f0;
}
.dash-hero .dash-filters{
  margin:0;
  justify-content:flex-start;
}
.dash-hero .dash-filters .btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  font-weight:600;
  padding:8px 16px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.dash-hero .dash-filters .btn:hover{
  background:#f8fafc;
  border-color:#94a3b8;
  color:#0f172a;
}
.dash-hero .dash-filters .btn.primary{
  background:linear-gradient(135deg,var(--primary) 0%,var(--primary-light) 100%);
  border-color:var(--primary);
  color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,.25);
}

.dash-team-activity .dash-team-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:16px;
  margin-top:12px;
}
.dash-team-activity canvas{ max-height:220px; }

.dash-kpi-primary-wrap{ margin-bottom:28px; }

.dash-kpi-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.dash-kpi-extra-panel{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:18px 20px 20px;
  margin-bottom:24px;
}
.dash-kpi-extra-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
@media (max-width:1100px){
  .dash-kpi-strip,
  .dash-kpi-extra-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:520px){
  .dash-kpi-strip,
  .dash-kpi-extra-grid{ grid-template-columns:1fr; }
}

.dash-kpi-pro{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px 18px;
  background:#fff;
  border:1px solid #e8edf3;
  border-radius:14px;
  box-shadow:0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.04);
  border-inline-end:4px solid var(--kpi-accent,#3b82f6);
  min-width:0;
  transition:transform .22s ease, box-shadow .22s ease;
}
.dash-kpi-pro:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}
.dash-kpi-pro--primary{
  min-height:108px;
  padding:20px 22px;
  border-radius:16px;
}
.dash-kpi-pro--primary .kpi-icon-wrap{
  width:56px;
  height:56px;
  border-radius:16px;
}
.dash-kpi-pro--primary .kpi-icon-wrap svg{ width:28px; height:28px; }
.dash-kpi-pro--primary .kpi-label{
  font-size:13px;
  font-weight:700;
  color:#475569;
  margin-bottom:8px;
}
.dash-kpi-pro--primary .kpi-value{
  font-size:clamp(28px,3vw,36px);
  font-weight:800;
  color:#0f172a;
  line-height:1;
  letter-spacing:-0.03em;
}
.dash-kpi-pro--secondary{
  min-height:76px;
  padding:12px 14px;
  box-shadow:0 1px 2px rgba(15,23,42,.04);
}
.dash-kpi-pro--secondary .kpi-icon-wrap{
  width:40px;
  height:40px;
  border-radius:12px;
}
.dash-kpi-pro--secondary .kpi-icon-wrap svg{ width:20px; height:20px; }
.dash-kpi-pro--secondary .kpi-label{ font-size:11px; margin-bottom:4px; }
.dash-kpi-pro--secondary .kpi-value{
  font-size:clamp(18px,2vw,22px);
  font-weight:800;
  color:#0f172a;
}
.dash-kpi-pro .kpi-icon-wrap{
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--kpi-bg,#eff6ff);
  color:var(--kpi-fg,#1d4ed8);
}
.dash-kpi-pro .kpi-body{ min-width:0; flex:1; }
.dash-kpi-pro .kpi-label{
  font-weight:700;
  color:#64748b;
  line-height:1.4;
}
.kpi-tone-blue{ --kpi-accent:#2563eb; --kpi-bg:#eff6ff; --kpi-fg:#1d4ed8; }
.kpi-tone-amber{ --kpi-accent:#f59e0b; --kpi-bg:#fffbeb; --kpi-fg:#b45309; }
.kpi-tone-red{ --kpi-accent:#dc2626; --kpi-bg:#fef2f2; --kpi-fg:#b91c1c; }
.kpi-tone-green{ --kpi-accent:#10b981; --kpi-bg:#ecfdf5; --kpi-fg:#047857; }
.kpi-tone-teal{ --kpi-accent:#0d9488; --kpi-bg:#f0fdfa; --kpi-fg:#0f766e; }
.kpi-tone-violet{ --kpi-accent:#7c3aed; --kpi-bg:#f5f3ff; --kpi-fg:#6d28d9; }
.kpi-tone-slate{ --kpi-accent:#64748b; --kpi-bg:#f8fafc; --kpi-fg:#334155; }
.kpi-tone-orange{ --kpi-accent:#f59e0b; --kpi-bg:#fffbeb; --kpi-fg:#b45309; }

.dash-kpi-section-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  margin:0 0 14px;
  padding-bottom:10px;
  border-bottom:1px solid #e2e8f0;
}
.dash-kpi-section-title--main{
  font-size:14px;
  font-weight:800;
  color:#334155;
  text-transform:none;
  letter-spacing:0;
  border:none;
  padding:0;
  margin:0 0 14px;
}
.dash-demo-badge{
  display:inline-block;
  font-size:10px;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  background:#fef3c7;
  color:#92400e;
  margin-inline-start:8px;
  vertical-align:middle;
}

.dash-section{
  margin-bottom:20px;
}
.dash-section--primary{ margin-bottom:16px; }
.dash-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:16px;
  padding-bottom:10px;
  border-bottom:2px solid #e2e8f0;
}
.dash-section-title{
  font-size:20px;
  font-weight:800;
  color:#0f172a;
}
.dash-section-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dash-section-badges .dash-pill{
  font-size:13px;
  font-weight:700;
  padding:6px 14px;
  border-radius:999px;
  background:#f1f5f9;
  color:#334155;
  border:1px solid #e2e8f0;
}
.dash-pill-medval{ background:#ecfdf5; color:#047857; border-color:#a7f3d0; }

.dash-pro-grid{
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:18px;
}
.dash-pro-grid .dash-chart-card{
  grid-column:span 6;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:18px 20px 14px;
  box-shadow:0 4px 16px rgba(15,23,42,0.06);
}
.dash-pro-grid .dash-chart-card.span-8{ grid-column:span 8; }
.dash-pro-grid .dash-chart-card.span-7{ grid-column:span 7; }
.dash-pro-grid .dash-chart-card.span-6{ grid-column:span 6; }
.dash-pro-grid .dash-chart-card.span-5{ grid-column:span 5; }
.dash-pro-grid .dash-chart-card.span-4{ grid-column:span 4; }
.dash-pro-grid .dash-chart-card.span-12{ grid-column:span 12; }
@media (max-width:1100px){
  .dash-pro-grid .dash-chart-card,
  .dash-pro-grid .dash-chart-card.span-8,
  .dash-pro-grid .dash-chart-card.span-7,
  .dash-pro-grid .dash-chart-card.span-6,
  .dash-pro-grid .dash-chart-card.span-5,
  .dash-pro-grid .dash-chart-card.span-4{ grid-column:span 12; }
}

.dash-chart-head{ margin-bottom:8px; }
.dash-chart-title{
  font-size:16px;
  font-weight:800;
  color:#0f172a;
}
.dash-chart-sub{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
  line-height:1.5;
}

.dash-chart-box{
  position:relative;
  height:360px;
  min-height:280px;
  max-height:400px;
  width:100%;
  overflow:hidden;
}
.dash-chart-box.dash-chart-hero{
  height:380px;
  min-height:300px;
}
.dash-chart-box.dash-chart-compact{
  height:280px;
  min-height:220px;
  max-height:300px;
}
.dash-chart-box canvas{
  width:100% !important;
  height:100% !important;
  max-width:100%;
}

.dash-collapse{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  margin-bottom:16px;
  overflow:hidden;
  box-shadow:0 1px 3px rgba(15,23,42,.04);
}
.dash-collapse-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:16px 20px;
  cursor:pointer;
  user-select:none;
  background:#fafbfc;
  border-bottom:1px solid transparent;
  transition:background .2s ease;
}
.dash-collapse.is-open .dash-collapse-head{
  border-bottom-color:#e2e8f0;
}
.dash-collapse-head:hover{ background:#f1f5f9; }
.dash-collapse-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
}
.dash-collapse-sub{
  font-size:12px;
  color:#64748b;
  margin-top:4px;
  line-height:1.5;
}
.dash-collapse-chevron{
  font-size:12px;
  color:#64748b;
  flex-shrink:0;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:8px;
}
.dash-collapse-body{
  max-height:0;
  overflow:hidden;
  transition:max-height .35s ease;
}
.dash-collapse.is-open .dash-collapse-body{
  max-height:8000px;
  padding:18px 20px 20px;
}
.dash-collapse-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.dash-collapse-grid .dash-chart-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:16px 18px 12px;
  min-width:0;
}
.dash-collapse .dash-bottom-grid{
  margin-top:0;
}
@media (max-width:900px){
  .dash-collapse-grid{ grid-template-columns:1fr; }
}

.dash-bottom-grid{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:18px;
  margin-top:0;
}
@media (max-width:1000px){
  .dash-bottom-grid{ grid-template-columns:1fr; }
}
.dash-panel-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:18px 20px;
  box-shadow:0 4px 16px rgba(15,23,42,0.06);
}
.dash-panel-card .section-title{
  font-size:17px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:12px;
}
.dash-panel-card .muted{ color:#64748b; font-size:13px; margin-bottom:10px; }
.dash-panel-side{ display:flex; flex-direction:column; gap:18px; }
.dash-wh-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.dash-wh-stats .mini-stat{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:12px;
  text-align:center;
}
.dash-wh-stats .mini-stat .value{ font-size:22px; }
.dash-finance-highlight{
  font-size:15px;
  color:#475569;
  margin-bottom:12px;
  padding:10px 14px;
  background:#f8fafc;
  border-radius:10px;
  border-right:3px solid #8b5cf6;
}
.dash-finance-highlight strong{ color:#0f172a; font-size:18px; }

.dash-medeval-block{
  margin-top:20px;
  padding-top:16px;
  border-top:2px dashed var(--border);
}
.dash-medeval-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:12px 0;
}
@media (max-width:900px){
  .dash-medeval-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.insights-strip.insights-compact{
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:8px;
  margin-top:14px;
}
.insights-strip.insights-compact .insight{
  padding:10px 12px;
}
.insights-strip.insights-compact .insight .ico{ font-size:20px; }
.insights-strip.insights-compact .insight .t{ font-size:13px; }
.insights-strip.insights-compact .insight .d{ font-size:11px; display:none; }

.dash-hero-top{
  display:flex;
  gap:16px 20px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
}
@media (max-width:768px){
  .dash-hero-top,
  motion.dash-hero-top{
    flex-direction:column;
    align-items:stretch;
  }
  .dash-hero .dash-filters,
  motion.dash-filters{
    width:100%;
    justify-content:flex-start;
  }
}

motion.dash-hero-title,
.dash-hero-title{
  display:block;
  font-size:clamp(26px,3.2vw,32px);
  font-weight:900;
  letter-spacing:-0.02em;
  margin-bottom:8px;
  color:#0f172a;
  text-shadow:none;
  line-height:1.3;
}

motion.dash-hero-sub,
.dash-hero-sub{
  display:block;
  color:#475569;
  font-size:15px;
  max-width:100%;
  line-height:1.65;
  font-weight:600;
}
.dash-hero-sub strong{
  color:#0f172a;
  font-weight:800;
}
.dash-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px 12px;
  margin-top:16px;
}
.dash-hero-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:9px 15px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  font-size:13px;
  color:#475569;
  font-weight:600;
  box-shadow:0 1px 3px rgba(15,23,42,.05);
}
.dash-hero-chip span{
  color:#64748b;
  font-weight:600;
}
.dash-hero-chip b{
  color:#0f172a;
  font-weight:800;
  font-size:17px;
}
.dash-hero-chip--accent{
  background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);
  border-color:#93c5fd;
}
.dash-hero-chip--accent span{ color:#1d4ed8; }
.dash-hero-chip--accent b{ color:#1e3a8a; }

.dash-quick-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #e2e8f0;
}

.dash-quick-actions .btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  font-weight:600;
  box-shadow:0 1px 2px rgba(15,23,42,.05);
}

.dash-quick-actions .btn:hover{
  background:#eff6ff;
  border-color:var(--primary);
  color:var(--primary-dark);
  transform:translateY(-1px);
}

.insights-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}

@media(max-width:1100px){
  .insights-strip{ grid-template-columns:1fr; }
  .grid.two, .grid.three, .grid.four{ grid-template-columns:1fr; }
}

.insight{
  border-radius:var(--radius-lg);
  border:1px solid rgba(148,163,184,.20);
  background:rgba(255,255,255,.06);
  padding:14px 14px;
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.insight .ico{ font-size:20px; line-height:1; }
.insight .t{ font-weight:800; color:#e5e7eb; font-size:14px; margin-bottom:4px; }
.insight .d{ color:#cbd5e1; font-size:13px; line-height:1.6; }
.insight[style*="cursor:pointer"]:hover{ background:rgba(255,255,255,.1); border-color:rgba(148,163,184,.35); }

.dash-cockpit{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:18px;
  margin-top:16px;
}

@media(max-width:1100px){
  .dash-cockpit{ grid-template-columns:1fr; }
}

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:16px;
}

.panel-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}

.panel-title{
  font-weight:900;
  font-size:16px;
  color:var(--text);
}

.panel-sub{
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}

.list-compact{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.list-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
}

.list-row .name{ font-weight:800; font-size:13px; color:var(--text); }
.list-row .meta{ font-size:12px; color:var(--muted); }

.panel .section-title{ font-size:14px; margin-top:12px; margin-bottom:6px; }
.panel .section-title:first-of-type{ margin-top:0; }

/* كرت ملخص الحالة - مضغوط بدون تمدد */
.dash-row-compact{ align-items:start !important; }
.status-summary-compact{ height:auto !important; min-height:0 !important; }
.status-summary-more{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.status-summary-more.expanded{ max-height:200px; }
.status-summary-toggle{ cursor:pointer; color:var(--primary); font-size:13px; font-weight:600; margin-top:8px; display:inline-flex; align-items:center; gap:4px; }
.status-summary-toggle:hover{ text-decoration:underline; }

/* تنبيهات ذكية - مختصرة مع عرض المزيد */
.alerts-show-limit{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.alerts-show-limit.expanded{ max-height:2000px; }
.alerts-toggle-btn{ cursor:pointer; color:var(--primary); font-size:13px; font-weight:600; margin-top:8px; display:inline-flex; align-items:center; gap:4px; }
.alerts-toggle-btn:hover{ text-decoration:underline; }
.alerts-brief{ display:flex; flex-direction:column; gap:8px; }

/* أداء الموردين - عرض المزيد */
.supplier-more-wrap{ max-height:0; overflow:hidden; transition:max-height .4s ease; }
.supplier-more-wrap.expanded{ max-height:3000px; }
.supplier-toggle-btn{ cursor:pointer; color:var(--primary); font-size:13px; font-weight:600; margin-top:10px; display:inline-flex; align-items:center; gap:4px; }
.supplier-toggle-btn:hover{ text-decoration:underline; }

/* شريط نسخة تجريبية - الزاوية اليمنى العليا */

/* شاشة التحميل الأولى — وسط الصفحة (أسلوب البوابة: دائرة + شعار يدور) */
.app-boot-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f6f8;
  padding: 24px;
}
.app-boot-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.app-boot-icon-ring {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-boot-logo-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: app-boot-spin 1.15s linear infinite;
}
@keyframes app-boot-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.app-boot-text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}
body:has(.app-boot-screen) .footer-rights,
body:has(.app-boot-screen) .footer-trial {
  display: none;
}
