/* ============================================================================
   منصة مداد — أنماط الصفحة الرئيسية (الواجهة العامة)
   ----------------------------------------------------------------------------
   نُقل كما هو من _reference/full-demo.css قبل حذف مجلّد النموذج الأوّلي.
   وفيه قواعد لبوابات لم تعد موجودة — تشذيبها ممكن، لكنه يحتاج مقارنة بصرية
   دقيقة: جرّبتُ استخراج ما تستعمله الصفحة وحدها فانكسر التخطيط مرتين.
   فتُرك كاملًا عمدًا: المكسب كان في حذف ٥٥٠ ك.ب من جافاسكربت ميت ومن
   صفحتَي النموذج، لا في تقليص هذا الملف.
   ============================================================================ */

/* =================================================================
   Midad — Full Demo (Redesigned)
   Structure: Shaden's HTML/JS (untouched) · Design: rebuilt from scratch
   Depends on: assets/css/tokens.css (loaded before this file)
   ================================================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

button, input, select, textarea, label, table {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 24px; }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; }

p { margin: 0 0 8px; color: var(--text-secondary); }

::selection { background: var(--brand-soft); color: var(--brand-text); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg-canvas); }

/* ═══════════════════════════════════════════════════════════════
   AUTH SCREEN
   ═══════════════════════════════════════════════════════════════ */
.auth-screen {
  min-height: 100vh;
  background: radial-gradient(1200px 500px at 100% -200px, rgba(8, 120, 190, 0.08), transparent 60%),
              radial-gradient(900px 400px at 0% 0%, rgba(8, 120, 190, 0.05), transparent 60%),
              var(--bg-canvas);
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-shell {
  width: min(1040px, 96vw);
  min-height: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
}

.auth-brand {
  background: linear-gradient(180deg, #F8FBFE 0%, #EAF4FB 100%);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  position: relative;
}
.auth-logo-image {
  width: min(360px, 90%);
  height: auto;
  display: block;
}
.brand-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin: 0;
  max-width: 360px;
  line-height: 1.6;
}
.university-mark { display: none; }

.auth-form {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}
.auth-form > p {
  color: var(--text-tertiary);
  font-size: 14px;
  margin: 0 0 24px;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.auth-form input,
.auth-form select {
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.auth-form input:focus,
.auth-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.auth-help {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--brand);
  margin: -6px 0 20px;
}
.auth-help span { cursor: pointer; }
.auth-help span:hover { text-decoration: underline; }

.role-gate { display: none; }
.role-gate.show { display: block; }
.role-gate h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.role-gate > p {
  color: var(--text-tertiary);
  font-size: 13px;
  margin-bottom: 20px;
}
.role-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-height: 400px;
  overflow: auto;
  padding: 2px;
}
.role-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.06s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.role-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.role-card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.role-card small {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 1.5;
}
.role-icon { display: none; }

/* ═══════════════════════════════════════════════════════════════
   APP SHELL
   ═══════════════════════════════════════════════════════════════ */
.app { display: none; min-height: 100vh; }
.app.logged-in { display: flex; }

.side {
  width: 240px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  color: var(--text-primary);
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 20px 0 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 20px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.official-sidebar-brand img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
}
.brand > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand h1 {
  color: var(--brand-text);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}
.brand small {
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 500;
  display: block;
  line-height: 1.3;
}
.mark { display: none; }

.role-switch { display: none; }

.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  overflow: auto;
  flex: 1;
}
.nav button {
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  text-align: right;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav button:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
}
.nav button.on {
  background: var(--brand-soft);
  color: var(--brand-text);
  font-weight: 600;
}
.nav button.on::before {
  content: "";
  position: absolute;
  right: -12px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background: var(--brand);
  border-radius: 2px;
}

.foot {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 14px 20px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}
.foot span { color: var(--text-primary); font-weight: 600; font-size: 13px; display: block; }
.foot small { color: var(--text-muted); font-size: 11px; display: block; margin-top: 2px; }
.logout-btn {
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.logout-btn:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

.main {
  margin-right: 240px;
  width: calc(100% - 240px);
  min-height: 100vh;
  background: var(--bg-canvas);
}

header {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.logo, .official-header-logo, .logo-badge { display: none; }

.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
  display: flex;
  align-items: center;
}
.header-search__icon {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.header-search input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}
.header-search input:focus {
  border-color: var(--brand);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.dept-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-left: 12px;
}
.dept-switcher label {
  font-size: 11.5px;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dept-switcher select {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-text);
  cursor: pointer;
  padding: 4px 24px 4px 4px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2307558A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: left 4px center;
}

.user { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

.content { padding: 24px; }

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.06s;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn.secondary:hover { background: var(--bg-subtle); border-color: var(--text-tertiary); }
.btn svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════════════ */
.ph {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.ph h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.ph p { color: var(--text-tertiary); font-size: 13.5px; margin: 0; }
.portal-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   KPI STATS
   ═══════════════════════════════════════════════════════════════ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.12s;
}
.card:hover { border-color: var(--border-strong); }
.card span {
  display: block;
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 500;
  margin-bottom: 6px;
}
.card strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ═══════════════════════════════════════════════════════════════
   GRID & PANELS
   ═══════════════════════════════════════════════════════════════ */
.grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.panel h3 { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.panel p { font-size: 13px; margin: 0 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ═══════════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════════ */
.table { overflow: auto; margin: 0 -18px -18px; padding: 0 18px 18px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: right; font-size: 13px; }
th { color: var(--text-secondary); background: var(--bg-subtle); font-weight: 600; font-size: 12px; letter-spacing: 0.01em; white-space: nowrap; }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: var(--bg-subtle); }
td b { font-weight: 600; color: var(--text-primary); }
td small { color: var(--text-muted); font-size: 11px; display: block; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   STATUS CHIPS
   ═══════════════════════════════════════════════════════════════ */
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
  min-height: 20px;
}
.status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  opacity: 0.9;
}
.new  { background: var(--info-soft);    color: var(--info);    border-color: rgba(31, 95, 163, 0.20); }
.run  { background: var(--warning-soft); color: var(--warning); border-color: rgba(199, 129, 0, 0.20); }
.stop { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(199, 68, 68, 0.20); }
.done { background: var(--success-soft); color: var(--success); border-color: rgba(22, 132, 91, 0.20); }

/* ═══════════════════════════════════════════════════════════════
   PROGRESS
   ═══════════════════════════════════════════════════════════════ */
.bar { height: 6px; background: var(--bg-inset); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width 0.24s; }

/* ═══════════════════════════════════════════════════════════════
   TOOLBAR
   ═══════════════════════════════════════════════════════════════ */
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.toolbar input, .toolbar select {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--bg-surface);
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  min-height: 34px;
}
.toolbar input:focus, .toolbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.toolbar input { min-width: 240px; flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   ACTION LIST
   ═══════════════════════════════════════════════════════════════ */
.action-list { display: grid; gap: 10px; }
.action {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 16px;
  align-items: center;
  transition: border-color 0.12s;
}
.action:hover { border-color: var(--border-strong); }
.action h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.action small { color: var(--text-muted); font-size: 11.5px; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.meta div { background: var(--bg-subtle); border-radius: 8px; padding: 9px 12px; }
.meta span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 500; margin-bottom: 2px; }
.meta b { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════
   KANBAN
   ═══════════════════════════════════════════════════════════════ */
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.col { background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 12px; padding: 14px; min-height: 420px; }
.col b { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.01em; }
.task { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 8px; }
.task b { font-size: 13px; color: var(--text-primary); font-weight: 600; display: block; }
.task small { color: var(--text-muted); font-size: 11px; }

/* ═══════════════════════════════════════════════════════════════
   TIMELINE
   ═══════════════════════════════════════════════════════════════ */
.timeline { border-right: 2px solid var(--border); padding-right: 20px; position: relative; }
.step { position: relative; margin-bottom: 18px; padding-bottom: 4px; }
.step:before {
  content: "";
  position: absolute;
  right: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid var(--brand);
}
.step b, .step h3 { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.step p { color: var(--text-tertiary); font-size: 12.5px; margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   REPORT & EQUIP CARDS
   ═══════════════════════════════════════════════════════════════ */
.report-grid, .equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report, .equip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  cursor: pointer;
  transition: border-color 0.12s, transform 0.06s;
}
.report:hover, .equip:hover { border-color: var(--brand); transform: translateY(-1px); }
.report h3, .equip h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.report p, .equip p { font-size: 12.5px; color: var(--text-tertiary); margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.55); display: none; place-items: center; padding: 20px; z-index: 100; }
.modal.on { display: grid; }
.box {
  background: var(--bg-surface);
  border-radius: 14px;
  padding: 22px;
  width: min(1100px, 96vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.20);
}
.box.box--narrow {
  width: min(440px, 92vw);
  padding: 26px;
}
.mh {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.mh h3 { margin: 0; font-size: 18px; font-weight: 700; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); }
.form input, .form select, .form textarea {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--bg-surface);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form textarea { min-height: 90px; resize: vertical; }
.full { grid-column: 1 / -1; }

/* HR and lightweight finance extensions use the shared cards, tables and forms. */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.detail-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  background: var(--bg-subtle);
}
.detail-section h4 { margin: 0 0 12px; font-size: 14px; }
.detail-section p { margin: 0 0 9px; font-size: 13px; }
.detail-section p:last-child { margin-bottom: 0; }
.detail-section p span { display: block; color: var(--text-tertiary); font-size: 11.5px; margin-bottom: 2px; }
.activity-list { margin: 0; padding-right: 18px; color: var(--text-secondary); font-size: 13px; }
.activity-list li + li { margin-top: 7px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.danger-outline { color: var(--danger); border-color: var(--danger); background: transparent; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.permission-item { flex-direction: row !important; align-items: center; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; background: var(--bg-subtle); }
.permission-item input { width: auto; margin: 0; }
.permission-summary { display: flex; flex-wrap: wrap; gap: 5px; max-width: 420px; }
.permission-summary span { font-size: 11px; color: var(--text-secondary); background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; }
.distribution-row + .distribution-row { margin-top: 14px; }
.distribution-row > div:first-child { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12.5px; }
.finance-recent { margin-top: 16px; }
.finance-kpis { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.finance-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.chart-panel { min-width: 0; }
.chart-wide { grid-column: 1 / -1; }
.chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chart-heading h3 { margin: 0; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-subtle); }
.segmented button { border: 0; border-radius: 6px; padding: 5px 11px; background: transparent; color: var(--text-secondary); font-family: inherit; font-size: 11.5px; cursor: pointer; }
.segmented button.on { background: var(--bg-surface); color: var(--brand); box-shadow: 0 1px 3px rgba(15,23,42,.10); }
.finance-svg { display: block; width: 100%; height: 210px; overflow: visible; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart-point { fill: var(--bg-surface); stroke: var(--brand); stroke-width: 2; }
.chart-axis { display: flex; justify-content: space-between; gap: 6px; color: var(--text-muted); font-size: 10.5px; margin-top: -8px; }
.vertical-chart { height: 210px; display: flex; align-items: stretch; justify-content: space-around; gap: 8px; border-bottom: 1px solid var(--border); padding-top: 12px; }
.vertical-group { flex: 1; min-width: 28px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.vertical-bars { width: 100%; max-width: 46px; height: 170px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.vertical-bars i { width: 42%; min-height: 2px; border-radius: 4px 4px 0 0; }
.revenue-bar { background: var(--brand); }
.cost-bar { background: #d3a64c; }
.vertical-group small { color: var(--text-muted); font-size: 10px; white-space: nowrap; }
.chart-legend { display: flex; justify-content: center; gap: 18px; margin-top: 12px; font-size: 11px; color: var(--text-secondary); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; }
.legend-revenue { background: var(--brand); }
.legend-cost { background: #d3a64c; }
.horizontal-row + .horizontal-row { margin-top: 14px; }
.horizontal-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 12px; }
.horizontal-row b { font-size: 11.5px; }
.donut-layout { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.donut { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.donut > div { width: 92px; height: 92px; border-radius: 50%; background: var(--bg-surface); display: grid; place-content: center; text-align: center; box-shadow: 0 0 0 1px var(--border); }
.donut b { font-size: 18px; }
.donut span { color: var(--text-muted); font-size: 10.5px; }
.donut-legend { display: grid; gap: 7px; min-width: 150px; }
.donut-legend > span { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 11px; }
.donut-legend i { width: 9px; height: 9px; border-radius: 50%; }
.donut-legend b { color: var(--text-primary); }
.request-financial-summary { margin-top: 16px; padding: 18px 20px; border: 1px solid rgba(8,120,190,.18); border-radius: 12px; background: var(--brand-soft); }
.request-financial-summary h4 { margin: 0 0 14px; color: var(--text-primary); font-size: 15px; }
.financial-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.financial-summary-grid > div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface); }
.financial-summary-grid span { display: block; color: var(--text-muted); font-size: 10.5px; margin-bottom: 4px; }
.financial-summary-grid b { font-size: 13px; }
.financial-summary-grid .negative { color: var(--danger); }
.executive-finance { margin-bottom: 16px; }

@media (max-width: 720px) {
  .detail-grid, .permission-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-wrap: wrap; }
  .finance-chart-grid, .financial-summary-grid { grid-template-columns: 1fr; }
  .chart-wide { grid-column: auto; }
  .donut-layout { flex-direction: column; }
  .finance-svg { height: 170px; }
}

@media (max-width: 1100px) {
  .finance-kpis { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
}

@media (max-width: 520px) {
  .finance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-heading { align-items: flex-start; flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: var(--success);
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 24px rgba(22, 132, 91, 0.25), 0 0 0 1px rgba(22, 132, 91, 0.20);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  max-width: 480px;
  pointer-events: none;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.20);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   STOCK CARDS
   ═══════════════════════════════════════════════════════════════ */
.stock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stock-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.12s;
}
.stock-card:hover { border-color: var(--border-strong); }
.stock-card h3 { margin-bottom: 4px; font-size: 14px; font-weight: 700; }
.stock-card small { color: var(--text-muted); font-size: 11px; display: block; margin-bottom: 8px; }
.qty {
  font-size: 26px;
  font-weight: 700;
  margin: 6px 0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.qty small { display: inline; font-size: 12px; color: var(--text-tertiary); font-weight: 500; margin-right: 4px; }
.low { color: var(--warning); }
.out { color: var(--danger); }
.ok { color: var(--success); }

/* ═══════════════════════════════════════════════════════════════
   FLOW NOTE
   ═══════════════════════════════════════════════════════════════ */
.flow-note {
  background: var(--brand-soft);
  border: 1px solid rgba(8, 120, 190, 0.30);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  color: var(--brand-text);
  font-size: 13px;
  line-height: 1.6;
}
.flow-note b { color: var(--brand-hover); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════════════════════ */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button {
  border: 1px solid var(--border);
  background: var(--bg-surface);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.tabs button:hover { background: var(--bg-subtle); color: var(--text-primary); }
.tabs button.on { background: var(--brand); color: white; border-color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════
   APPROVAL / SETTINGS CARDS
   ═══════════════════════════════════════════════════════════════ */
.approval-grid, .settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.approval-card, .setting-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.12s, transform 0.06s;
}
.approval-card:hover, .setting-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.setting-card { cursor: pointer; }
.approval-card h3, .setting-card h3 { font-size: 15px; font-weight: 700; margin: 8px 0 6px; }
.approval-card p, .setting-card p { font-size: 12.5px; color: var(--text-tertiary); margin: 0 0 8px; }
.approval-card strong { display: block; font-size: 14px; color: var(--text-primary); font-weight: 700; margin: 8px 0 4px; }

.approval-card--clickable { cursor: pointer; }

/* Priority badge (internal — marketing/production only) */
.priority {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  border: 1px solid transparent;
  white-space: nowrap;
}
.priority--urgent { background: var(--danger-soft); color: var(--danger); border-color: rgba(199,68,68,0.15); }
.priority--high   { background: var(--warning-soft); color: var(--warning); border-color: rgba(199,129,0,0.15); }
.priority--normal { background: var(--info-soft); color: var(--info); border-color: rgba(31,95,163,0.15); }

/* Inline priority editor inside detail modal summary */
.priority-select {
  padding: 3px 22px 3px 8px;
  height: auto;
  min-height: 26px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: left 6px center;
}
.priority-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.text-muted { color: var(--text-muted); }

/* Dashboard "Requests Requiring Action" widget */
.action-queues {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.action-queue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s;
}
.action-queue:hover { background: var(--bg-inset); }
.action-queue__count {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg-surface);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.action-queue--has .action-queue__count {
  background: var(--brand);
  color: white;
}
.action-queue__label {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Workflow status tags in marketing request details */
.workflow-status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) { .workflow-status { grid-template-columns: 1fr; } }
.workflow-item {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.workflow-item span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}
.workflow-item small {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}
.workflow-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  align-self: flex-start;
}
.workflow-tag--muted   { background: var(--muted-chip); color: var(--text-tertiary); }
.workflow-tag--info    { background: var(--info-soft); color: var(--info); }
.workflow-tag--warning { background: var(--warning-soft); color: var(--warning); }
.workflow-tag--success { background: var(--success-soft); color: var(--success); }
.workflow-tag--danger  { background: var(--danger-soft); color: var(--danger); }

/* Workflow Stepper — visualizes the 7-stage journey */
.wf-stepper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 16px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.wf-stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  flex: 1 1 0;
  text-align: center;
}
.wf-stepper__circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border: 2px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.wf-stepper__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wf-stepper__meta b {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.35;
}
.wf-stepper__optional {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.wf-stepper__line {
  flex: 1 1 auto;
  min-width: 12px;
  height: 2px;
  background: var(--border-strong);
  margin-top: 15px;
  border-radius: 2px;
}

/* Done */
.wf-stepper__step--done .wf-stepper__circle {
  background: var(--success);
  border-color: var(--success);
  color: var(--text-inverse);
}
.wf-stepper__step--done .wf-stepper__meta b { color: var(--text-primary); }

/* Current — highlighted (uses warning tone to match badge dot) */
.wf-stepper__step--current .wf-stepper__circle {
  background: var(--warning-soft);
  border-color: var(--warning);
  color: var(--warning);
  box-shadow: 0 0 0 4px rgba(199, 129, 0, 0.15);
}
.wf-stepper__step--current .wf-stepper__meta b {
  color: var(--warning);
  font-weight: 700;
}

/* Pending / future */
.wf-stepper__step--pending .wf-stepper__circle {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-muted);
}

/* Skipped (optional step not needed) */
.wf-stepper__step--skipped .wf-stepper__circle {
  background: var(--bg-surface);
  border: 2px dashed var(--border-strong);
  color: var(--text-muted);
}
.wf-stepper__step--skipped .wf-stepper__meta b,
.wf-stepper__step--skipped .wf-stepper__optional { color: var(--text-muted); }

/* Optional step styling (dimmed label) */
.wf-stepper__step--optional .wf-stepper__meta b { font-style: normal; }

/* Small badge beside request number */
.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-start: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 10.5px;
  font-weight: 600;
  vertical-align: middle;
  line-height: 1.5;
}
.stage-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  display: inline-block;
  flex-shrink: 0;
}

/* Narrow screens: allow vertical wrapping */
@media (max-width: 720px) {
  .wf-stepper { flex-wrap: wrap; }
  .wf-stepper__line { display: none; }
  .wf-stepper__step { flex-direction: row; text-align: start; min-width: 100%; }
  .wf-stepper__meta { align-items: flex-start; }
}

/* Table results meta (filtered count) */
.table-meta {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-tertiary);
  background: var(--bg-subtle);
}
.table-meta b { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.table-meta a { color: var(--brand); text-decoration: none; }
.table-meta a:hover { text-decoration: underline; }

/* Cost estimation — section blocks + dynamic rows */
.cost-section {
  background: var(--bg-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.cost-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}
.cost-section__head h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.btn-sm-add {
  padding: 3px 12px;
  height: 26px;
  font-size: 11.5px;
  font-weight: 600;
}
.cost-section__rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cost-row {
  display: grid;
  grid-template-columns: 1fr 140px 32px;
  gap: 8px;
  align-items: center;
  background: var(--bg-surface);
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.cost-row__item, .cost-row__amount {
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-surface);
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.12s;
}
.cost-row__item:focus, .cost-row__amount:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.cost-row__amount {
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.cost-row__remove {
  height: 32px;
  width: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  padding: 0;
  display: grid;
  place-items: center;
}
.cost-row__remove:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}

/* Summary card at bottom */
.cost-summary {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--brand-soft);
  border: 1px solid rgba(8, 120, 190, 0.20);
  border-radius: 10px;
}
.cost-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.cost-summary__row b {
  color: var(--text-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cost-summary__row input {
  height: 24px;
  width: 60px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-surface);
  font-family: inherit;
  font-size: 12px;
  color: var(--text-primary);
  margin: 0 6px;
  font-variant-numeric: tabular-nums;
  text-align: center;
  outline: none;
}
.cost-summary__row--total {
  border-top: 1px solid var(--brand);
  margin-top: 4px;
  padding-top: 10px;
  font-size: 15px;
}
.cost-summary__row--total b {
  color: var(--brand-hover);
  font-size: 18px;
}

/* Internal note category badge */
.note-category {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-inset);
  color: var(--text-secondary);
  vertical-align: middle;
}

.executive-accent { border-right: 3px solid var(--danger); }
.admin-accent     { border-right: 3px solid var(--text-secondary); }
.client-accent    { border-right: 3px solid var(--brand); }
.marketing-accent { border-right: 3px solid var(--warning); }
.finance-accent   { border-right: 3px solid #8A49BC; }

/* ═══════════════════════════════════════════════════════════════
   PERMISSION LIST (perm-yes / perm-no)
   ═══════════════════════════════════════════════════════════════ */
.perm-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.perm-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  transition: background 0.12s;
}
.perm-list li:hover { background: var(--bg-inset); }
.perm-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: -1px;
  background-repeat: no-repeat;
  background-position: center;
}
.perm-list li.perm-yes {
  color: var(--text-primary);
}
.perm-list li.perm-yes::before {
  background-color: var(--success-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316845B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
}
.perm-list li.perm-no {
  color: var(--text-tertiary);
}
.perm-list li.perm-no::before {
  background-color: var(--danger-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C74444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M18 6L6 18M6 6l12 12'/></svg>");
}

/* Section heading inside detail modals — lightweight divider */
.section-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-heading:first-child { margin-top: 0; }

/* Customer-visible status history (chronological log) */
.status-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.history-item {
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  align-items: flex-start;
}
.history-item__marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 6px;
  flex-shrink: 0;
}
.history-item--done .history-item__marker { background: var(--success); }
.history-item--current .history-item__marker {
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
}
.history-item__body { flex: 1; min-width: 0; }
.history-item__body b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.history-item__body small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.history-item__body p {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Rich attachment file cards */
.attach-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attach-file {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  align-items: center;
}
.attach-file__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-text);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}
.attach-file__info { flex: 1; min-width: 0; }
.attach-file__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.attach-file__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-tertiary);
}
.attach-file__meta b {
  color: var(--text-secondary);
  font-weight: 600;
}
.attach-file__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Approver decision block */
.decision-block {
  background: var(--brand-soft);
  border: 1px solid rgba(8, 120, 190, 0.20);
  border-radius: 10px;
  padding: 14px 16px;
}
.decision-block p {
  margin: 0;
  color: var(--brand-text);
  font-size: 13px;
  line-height: 1.6;
}

/* Request description block */
.req-description {
  padding: 12px 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* Compact request meta (used inside approval-card cards on approver views) */
.req-mini-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 10px 0 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.req-mini-meta > div {
  padding: 4px 0;
}
.req-mini-meta span {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 2px;
}
.req-mini-meta b {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 12.5px;
}

/* Highlighted KPI card (e.g. pending approvals when > 0) */
.card.kpi-highlight {
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg-surface) 60%);
  border-color: var(--brand);
}
.card.kpi-highlight strong { color: var(--brand-hover); }
.card.kpi-highlight span { color: var(--brand-text); font-weight: 600; }

/* Empty state note (nicer than empty panel) */
.empty-note {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13.5px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  line-height: 1.7;
}
.empty-note strong {
  display: block;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOMER REQUEST DETAILS — phase/status, dates, notes, proof
   ═══════════════════════════════════════════════════════════════ */

.phase-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phase-tile, .status-tile {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.phase-tile span, .status-tile span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.phase-tile b {
  font-size: 15px;
  color: var(--brand-text);
  font-weight: 700;
}
.status-tile b {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Legacy vertical timeline (kept for compatibility) */
.phase-timeline .step:before {
  right: -28px;
  background: var(--bg-surface);
  border-color: var(--border-strong);
}
.phase-timeline .step--done:before { background: var(--success); border-color: var(--success); }
.phase-timeline .step--active:before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

/* Horizontal 4-phase timeline — colored (green/yellow/gray/red) */
.hphase-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 8px 0 4px;
  position: relative;
  margin-bottom: 18px;
}
.hstep {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  text-align: center;
}
/* Connector line: from center of this step, extending LEFT (toward next step in RTL) */
.hstep:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 26px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: var(--border);
  z-index: 0;
  border-radius: 2px;
  transition: background 0.2s;
}
/* Line is green when the step BEFORE it in the flow is done (i.e. this step is done or active) */
.hstep--done::before,
.hstep--active::before {
  background: var(--success);
}

.hstep__circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 2.5px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  z-index: 2;
  position: relative;
  transition: all 0.2s;
}
.hstep__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}
.hstep__status {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* Done: green */
.hstep--done .hstep__circle {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.hstep--done .hstep__label { color: var(--success); }
.hstep--done .hstep__status { color: var(--success); }

/* Active: yellow/amber (current) */
.hstep--active .hstep__circle {
  background: var(--warning);
  border-color: var(--warning);
  color: white;
  box-shadow: 0 0 0 5px var(--warning-soft);
}
.hstep--active .hstep__label { color: var(--warning); font-weight: 800; }
.hstep--active .hstep__status { color: var(--warning); font-weight: 600; }

/* Future: gray */
.hstep--future .hstep__circle {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  color: var(--text-muted);
}
.hstep--future .hstep__label { color: var(--text-muted); }

/* Dates strip below the timeline */
.dates-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.date-cell {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.date-cell span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.date-cell b {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.text-success { color: var(--success); }

@media (max-width: 720px) {
  .hphase-timeline { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .hstep:not(:last-child)::before { display: none; }
}

/* Notes stack (approver / marketing / return / rejection notes) */
.notes-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.note {
  padding: 12px 14px;
  border-radius: 10px;
  border-right: 3px solid;
  background: var(--bg-subtle);
  font-size: 13px;
  line-height: 1.6;
}
.note b {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.note p { margin: 0; color: var(--text-secondary); }
.note--info    { background: var(--info-soft);    border-right-color: var(--info); }
.note--info b  { color: var(--info); }
.note--warning { background: var(--warning-soft); border-right-color: var(--warning); }
.note--warning b { color: var(--warning); }
.note--danger  { background: var(--danger-soft);  border-right-color: var(--danger); }
.note--danger b  { color: var(--danger); }

/* Design proof approval section */
.proof-status {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
}
.proof-status b {
  color: var(--brand-text);
  font-weight: 700;
}

/* Attachments row */
.attach-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.attach-row .attach-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: 8px;
  font-size: 13px;
}
.attach-row .attach-item span { color: var(--text-primary); font-weight: 500; }

/* Actions stacked layout */
.actions--stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   BANK TRANSFER + RECEIPT UPLOAD WORKFLOW
   ═══════════════════════════════════════════════════════════════ */

.bank-block {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.bank-block h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 720px) {
  .bank-grid { grid-template-columns: 1fr; }
}
.bank-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.bank-item span {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 600;
}
.bank-item b {
  font-size: 13.5px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}
.bank-item .btn {
  align-self: flex-start;
  padding: 4px 10px;
  height: 26px;
  font-size: 11px;
  margin-top: 4px;
}

.upload-receipt {
  margin-top: 14px;
}
.upload-receipt h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.receipt-uploaded {
  background: var(--brand-soft);
  border: 1px solid rgba(8, 120, 190, 0.30);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
}
.receipt-uploaded span { color: var(--brand-text); font-weight: 600; }
.receipt-uploaded b { color: var(--text-primary); font-weight: 700; }
.receipt-uploaded small { color: var(--text-tertiary); font-size: 11.5px; margin-right: auto; }

/* Payment verification cards */
.verify-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.verify-meta > div {
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 8px 10px;
}
.verify-meta span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.verify-meta b {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
}
.receipt-preview {
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.receipt-preview span { color: var(--text-tertiary); font-weight: 500; }
.receipt-preview b { color: var(--text-primary); font-weight: 700; }

.invoice-detail-modal .customer-summary {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .invoice-detail-modal .customer-summary { grid-template-columns: repeat(2, 1fr); }
}

/* Small pill above card title (e.g. "عرض سعر — تقديري") */
.pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-text);
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 720px) {
  .phase-status-row { grid-template-columns: 1fr; }
}

/* Pending badge (for header meta) */
.pending-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-soft);
  color: var(--brand-text);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(8, 120, 190, 0.20);
}
.pending-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse-brand 1.8s ease-in-out infinite;
}
@keyframes pulse-brand {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Disabled button state */
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   BUSINESS CARD — bilingual form + preview (المرفق ٣)
   ═══════════════════════════════════════════════════════════════ */

/* Highlight bilingual pairs in the form: pair each row-of-two visually */
.card-form {
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.card-form label input[dir="ltr"] {
  font-family: var(--font-arabic);
  letter-spacing: 0.005em;
}

/* Bilingual card preview */
.card-preview-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .card-preview-wrap { grid-template-columns: 1fr; }
  .card-form { grid-template-columns: 1fr; }
}

.biz-card {
  aspect-ratio: 8.5 / 5.5;
  min-height: 200px;
  background:
    linear-gradient(135deg, #FFFFFF 0%, #F0F6FB 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}
.biz-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-hover) 100%);
}
.biz-card--ar { direction: rtl; text-align: right; }
.biz-card--en { direction: ltr; text-align: left; }

.biz-card__logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-arabic);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(8, 120, 190, 0.30);
}
.biz-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.biz-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.biz-card__title {
  font-size: 12px;
  color: var(--brand-hover);
  font-weight: 600;
  margin-bottom: 4px;
}
.biz-card__org {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.biz-card__contact {
  font-size: 10.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.biz-card__contact > div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOMER SUMMARY / COST GRID
   ═══════════════════════════════════════════════════════════════ */
.customer-summary, .cost-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.customer-summary div, .cost-grid div { background: var(--bg-subtle); border-radius: 8px; padding: 12px; }
.customer-summary span, .cost-grid span { display: block; color: var(--text-muted); font-size: 11px; font-weight: 500; margin-bottom: 4px; }
.customer-summary b, .cost-grid b { font-size: 13px; color: var(--text-primary); font-weight: 600; }
.money { font-size: 24px; color: var(--brand-hover); font-weight: 700; letter-spacing: -0.01em; margin: 6px 0; }

/* ═══════════════════════════════════════════════════════════════
   INVOICE CARD
   ═══════════════════════════════════════════════════════════════ */
.invoice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  transition: border-color 0.12s;
}
.invoice-card:hover { border-color: var(--border-strong); }
.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 12px;
}
.invoice-head h3 { font-size: 15px; font-weight: 700; margin: 0; }
.invoice-head small { color: var(--text-muted); font-size: 11.5px; }
.payment-progress { height: 6px; background: var(--bg-inset); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.payment-progress i { display: block; height: 100%; background: #8A49BC; border-radius: inherit; }

/* ═══════════════════════════════════════════════════════════════
   FILE UPLOAD
   ═══════════════════════════════════════════════════════════════ */
.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-subtle);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.file-drop:hover { border-color: var(--brand); background: var(--brand-soft); }
.file-drop b { display: block; font-size: 14px; color: var(--text-primary); font-weight: 700; margin-bottom: 6px; }
.file-drop p { font-size: 12px; color: var(--text-muted); margin: 0; }

.notes-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; background: var(--bg-surface); margin-top: 12px; }
.notes-box b { display: block; font-size: 13px; color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
.notes-box p { font-size: 12.5px; display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px dotted var(--border); margin: 0; }
.notes-box p:last-child { border-bottom: none; }

.review-actions {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   WIZARD
   ═══════════════════════════════════════════════════════════════ */
.request-wizard { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.wizard-steps {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  height: max-content;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.wizard-step.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 700; }
.wizard-step i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-inset);
  color: var(--text-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.wizard-step.on i { background: var(--brand); color: white; }

/* ═══════════════════════════════════════════════════════════════
   SERVICE PICKER
   ═══════════════════════════════════════════════════════════════ */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.service-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  text-align: right;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.12s, background 0.12s, transform 0.06s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.service-card:hover, .service-card.selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.service-card > span:first-child { display: none; }
.service-card b { display: block; font-size: 14px; font-weight: 700; color: var(--text-primary); }
.service-card small { color: var(--text-tertiary); font-size: 12px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   REQUEST DETAIL LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.request-detail-layout { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 16px; }
.side-panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; height: max-content; }
.side-panel h3 { font-size: 14px; margin-bottom: 10px; font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   LANDING BACK LINK
   ═══════════════════════════════════════════════════════════════ */
.landing-back-link {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-text);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  z-index: 30;
  transition: transform 0.12s, border-color 0.12s;
}
.landing-back-link:hover { transform: translateY(-1px); border-color: var(--brand); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1300px) {
  .stock-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .report-grid, .equip-grid, .approval-grid, .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .stock-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .customer-summary, .cost-grid { grid-template-columns: repeat(2, 1fr); }
  .request-detail-layout { grid-template-columns: 1fr 2fr; }
  .request-detail-layout .side-panel:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand { display: none; }
  .auth-form { padding: 32px 24px; }
  .role-cards { grid-template-columns: 1fr; max-height: none; }
}
/* Hamburger — desktop hidden; mobile shown */
.header-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-inline-end: 8px;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.header-menu-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--brand);
}

/* Backdrop for mobile drawer */
.side-backdrop {
  display: none;
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

@media (max-width: 800px) {
  .side {
    transform: translateX(100%);
    transition: transform 0.24s ease;
    top: 64px;
    width: min(280px, 82vw);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    padding-top: 8px;
    z-index: 7;
  }
  .app.side-open .side { transform: translateX(0); }
  .app.side-open .side-backdrop {
    display: block;
    opacity: 1;
  }
  .main { margin: 0; width: 100%; }
  .header-menu-btn { display: inline-flex; }
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .action { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .form { grid-template-columns: 1fr; }
  .request-wizard { grid-template-columns: 1fr; }
  .wizard-steps { display: none; }
}
@media (max-width: 520px) {
  header { padding: 0 14px; }
  .content { padding: 16px; }
  .report-grid, .equip-grid, .form, .kanban, .stock-grid,
  .service-grid, .customer-summary, .cost-grid, .approval-grid, .settings-grid {
    grid-template-columns: 1fr;
  }
  .full { grid-column: auto; }
  .ph { flex-direction: column; align-items: stretch; }
}

/* ============================================================ */
/* PUBLIC LANDING PAGE — futuristic dark navy + glassmorphism    */
/* ============================================================ */

.lp-shell {
  --lp-bg-0: #F5F9FD;
  --lp-bg-1: #FFFFFF;
  --lp-bg-2: #EBF3FB;
  --lp-surface: rgba(255, 255, 255, 0.75);
  --lp-surface-2: rgba(255, 255, 255, 0.92);
  --lp-border: rgba(8, 120, 190, 0.10);
  --lp-border-strong: rgba(8, 120, 190, 0.22);
  --lp-text: #0F1E33;
  --lp-text-2: #405876;
  --lp-text-3: #7A93B0;
  --lp-accent: #0878BE;
  --lp-accent-2: #08A4E8;
  --lp-accent-soft: rgba(8, 120, 190, 0.08);
  --lp-accent-glow: rgba(8, 120, 190, 0.28);
  --lp-line: rgba(8, 120, 190, 0.06);

  position: relative;
  min-height: 100vh;
  color: var(--lp-text);
  background: var(--lp-bg-0);
  font-family: var(--font-arabic);
  overflow-x: hidden;
  isolation: isolate;
}
.lp-shell *,
.lp-shell *::before,
.lp-shell *::after { box-sizing: border-box; }
.lp-shell a { color: inherit; text-decoration: none; }
.lp-shell h1, .lp-shell h2, .lp-shell h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.lp-shell p { margin: 0; line-height: 1.75; color: var(--lp-text-2); font-size: 15px; }

.lp-container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }
@media (max-width: 720px) { .lp-container { padding: 0 20px; } }

/* ---------- Ambient background ---------- */
.lp-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 80% -10%, rgba(8, 120, 190, 0.10), transparent 55%),
    radial-gradient(ellipse at -10% 30%, rgba(8, 164, 232, 0.08), transparent 60%),
    linear-gradient(180deg, #F5F9FD 0%, #EBF3FB 45%, #F0F5FB 100%);
}
.lp-bg__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--lp-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--lp-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  opacity: 0.55;
}
.lp-bg__glow {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.65;
}
.lp-bg__glow--1 { top: -80px; left: -100px; width: 460px; height: 460px; background: radial-gradient(circle, rgba(8, 164, 232, 0.22), transparent 70%); }
.lp-bg__glow--2 { top: 40%; right: -140px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(8, 120, 190, 0.16), transparent 70%); }
.lp-bg__glow--3 { bottom: -140px; left: 30%; width: 620px; height: 620px; background: radial-gradient(circle, rgba(79, 168, 245, 0.14), transparent 70%); }

/* ---------- Header ---------- */
.lp-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.lp-header__inner {
  max-width: 1240px; margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.lp-header.is-scrolled {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--lp-border);
  box-shadow: 0 4px 24px -12px rgba(8, 120, 190, 0.15);
}
.lp-brand { display: flex; align-items: center; gap: 12px; }
.lp-brand__logos { display: flex; align-items: center; gap: 10px; }
.lp-brand__logo { height: 42px; width: auto; filter: drop-shadow(0 2px 6px rgba(8, 120, 190, 0.10)); }
.lp-brand__logo--sm { height: 36px; }
.lp-brand__divider { width: 1px; height: 28px; background: linear-gradient(180deg, transparent, var(--lp-border-strong), transparent); }
.lp-brand__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.lp-brand__title { font-size: 16px; font-weight: 700; color: var(--lp-text); letter-spacing: -0.01em; }
.lp-brand__sub { font-size: 11px; color: var(--lp-text-3); font-weight: 500; }

.lp-nav { display: flex; align-items: center; gap: 32px; }
.lp-nav a {
  position: relative;
  font-size: 14px; font-weight: 500; color: var(--lp-text-2);
  padding: 6px 0; transition: color 0.2s;
}
.lp-nav a:hover { color: var(--lp-text); }
.lp-nav a::after {
  content: ''; position: absolute; bottom: 0; right: 0; left: 100%;
  height: 1px; background: linear-gradient(90deg, var(--lp-accent), transparent);
  transition: left 0.3s ease;
}
.lp-nav a:hover::after { left: 0; }

.lp-header__cta { display: flex; align-items: center; gap: 10px; }
.lp-menu-toggle {
  display: none;
  background: var(--lp-surface); border: 1px solid var(--lp-border-strong);
  color: var(--lp-text); border-radius: 10px; width: 40px; height: 40px;
  cursor: pointer; align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
}

/* ---------- Buttons ---------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(.2,.7,.3,1);
  white-space: nowrap;
}
.lp-shell .lp-btn--primary, .lp-shell .lp-btn--primary:hover {
  background: linear-gradient(135deg, #0878BE 0%, #08A4E8 100%);
  color: #fff; border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 10px 26px -10px var(--lp-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lp-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -8px var(--lp-accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.lp-btn--white {
  background: #FFFFFF; color: var(--lp-accent); border-color: rgba(8, 120, 190, 0.18);
  box-shadow: 0 12px 28px -12px rgba(8, 40, 90, 0.28), 0 2px 6px -2px rgba(8, 40, 90, 0.10);
}
.lp-btn--white:hover {
  transform: translateY(-1px); color: var(--lp-accent); border-color: var(--lp-border-strong);
  box-shadow: 0 16px 34px -10px rgba(8, 40, 90, 0.32), 0 2px 6px -2px rgba(8, 40, 90, 0.10);
}
.lp-btn--glass {
  background: var(--lp-surface); color: var(--lp-text);
  border: 1px solid var(--lp-border-strong);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 12px -6px rgba(8, 120, 190, 0.15);
}
.lp-btn--glass:hover {
  background: var(--lp-surface-2); border-color: rgba(8, 120, 190, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -6px rgba(8, 120, 190, 0.22);
}
.lp-btn--ghost {
  background: transparent; color: var(--lp-text-2);
  border-color: var(--lp-border);
}
.lp-btn--ghost:hover { color: var(--lp-text); border-color: var(--lp-border-strong); }

/* ---------- Common ---------- */
.lp-main { position: relative; z-index: 2; }
.lp-eyebrow {
  display: inline-block;
  padding: 6px 14px; border-radius: 999px;
  background: var(--lp-accent-soft); border: 1px solid rgba(8, 120, 190, 0.18);
  color: var(--lp-accent); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 16px;
}
.lp-h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--lp-text); letter-spacing: -0.02em; }
.lp-lead { font-size: 16px; color: var(--lp-text-2); line-height: 1.85; }
.lp-section { padding: 90px 0; position: relative; }
.lp-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }

.lp-glass {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 20px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 12px 32px -20px rgba(8, 40, 90, 0.15), 0 2px 6px -3px rgba(8, 40, 90, 0.06);
  position: relative;
  transition: transform 0.25s cubic-bezier(.2,.7,.3,1), border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lp-glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 60%);
}

/* ---------- Hero ---------- */
.lp-hero { padding: 160px 0 90px; position: relative; }
.lp-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.lp-shell .lp-hero__title { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.25; margin: 28px 0 32px; letter-spacing: -0.025em; }
.lp-hero__glow {
  display: inline-block; padding: 0.06em 0 0.22em; margin-bottom: -0.22em; line-height: 1.3;
  background: linear-gradient(90deg, #4FA8F5, #7CC4FF 50%, #A6D8FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(124, 196, 255, 0.35));
}
.lp-shell .lp-hero__desc { font-size: 17px; line-height: 1.85; margin: 0 0 48px; max-width: 560px; color: var(--lp-text-2); }
.lp-hero__actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---- المسرح البصري: حاسوب محمول + هاتف، تُقاس عناصرهما بوحدة cqw فتتناسب مع عرض العمود ---- */
.lp-hero__visual { position: relative; }
.lp-hero__stage { position: relative; container-type: inline-size; aspect-ratio: 1 / 0.86; }

/* الحلقات المنقّطة خلف الأجهزة */
.lp-hero__rings {
  position: absolute; width: 118%; height: auto; left: 50%; top: 50%;
  transform: translate(-50%, -50%); color: var(--lp-accent); opacity: 0.12;
  animation: lpRingsDrift 60s linear infinite;
}
@keyframes lpRingsDrift { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lp-hero__rings { animation: none; } }

/* إطار الجهاز المشترك */
.lp-device { position: absolute; }
.lp-device__screen {
  position: relative; overflow: hidden; background: #F5F7FA;
  direction: rtl; text-align: right; font-family: var(--font-arabic);
}

/* الحاسوب المحمول */
.lp-device--laptop { right: 0; top: 7%; width: 88%; }
.lp-device--laptop .lp-device__screen {
  aspect-ratio: 16 / 10; border-radius: 2.2cqw 2.2cqw 0 0;
  border: 1.4cqw solid #16213A; border-bottom-width: 1cqw;
  box-shadow: 0 40px 80px -30px rgba(8, 40, 90, 0.35), 0 12px 28px -14px rgba(8, 40, 90, 0.20);
}
.lp-device--laptop .lp-device__screen::before {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.22) 0%, transparent 38%);
}
.lp-device__base {
  height: 2.1cqw; margin: 0 -5%; border-radius: 0 0 2cqw 2cqw;
  background: linear-gradient(180deg, #DDE6F1 0%, #B9C8DA 100%);
  box-shadow: 0 24px 40px -18px rgba(8, 40, 90, 0.30);
  position: relative;
}
.lp-device__base::after {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 16%; height: 0.7cqw; border-radius: 0 0 1cqw 1cqw; background: #A7B8CC;
}

/* شاشة الحاسوب: واجهة العميل الحقيقية مصغّرة (شريط جانبي + محتوى) */
.lp-app { display: flex; height: 100%; font-size: 1.55cqw; color: #0F1E33; }
.lp-app__side {
  flex: none; width: 24%; background: #FFFFFF; border-left: 1px solid rgba(8, 120, 190, 0.12);
  padding: 1.6cqw 0; display: flex; flex-direction: column; gap: 0.35cqw;
}
.lp-app__brand { padding: 0 1.6cqw 1.4cqw; display: flex; flex-direction: column; gap: 0.25cqw; }
.lp-app__brand b { font-size: 1.7cqw; font-weight: 700; }
.lp-app__brand small { font-size: 1.05cqw; color: #7A93B0; }
.lp-app__nav {
  display: flex; align-items: center; gap: 1cqw; padding: 0.95cqw 1.6cqw;
  color: #405876; border-right: 0.35cqw solid transparent; font-weight: 500;
}
.lp-app__nav svg { width: 1.8cqw; height: 1.8cqw; opacity: 0.7; }
.lp-app__nav i { font-style: normal; }
.lp-app__nav--on { background: #E3F0FA; color: #07558A; border-right-color: #0878BE; font-weight: 600; }
.lp-app__nav--on svg { opacity: 1; }
.lp-app__main { flex: 1; min-width: 0; padding: 0 2cqw 2cqw; display: flex; flex-direction: column; gap: 1.5cqw; }
.lp-app__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3cqw 0; border-bottom: 1px solid rgba(8, 120, 190, 0.10); color: #405876; font-weight: 600;
}
.lp-app__avatar { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; background: linear-gradient(135deg, #0878BE, #08A4E8); }
.lp-app__welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 2cqw;
  padding: 2cqw 2.2cqw; border-radius: 1.4cqw; color: #fff;
  background: linear-gradient(135deg, #063D65 0%, #0878BE 100%);
}
.lp-app__welcome b { display: block; font-size: 2cqw; margin-bottom: 0.4cqw; }
.lp-app__welcome small { font-size: 1.4cqw; color: rgba(255, 255, 255, 0.85); }
.lp-app__btn { flex: none; background: #fff; color: #0878BE; font-weight: 700; padding: 0.9cqw 1.6cqw; border-radius: 0.9cqw; font-size: 1.4cqw; }
.lp-app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.lp-app__kpi { background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.2cqw; padding: 1.3cqw 1.5cqw; }
.lp-app__kpi small { display: block; font-size: 1.2cqw; color: #7A93B0; }
.lp-app__kpi b { display: block; font-size: 2.6cqw; font-weight: 700; margin: 0.3cqw 0; color: #0F1E33; }
.lp-app__kpi i { font-style: normal; font-size: 1.1cqw; color: #16845B; }
.lp-app__card { background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.2cqw; padding: 1.4cqw 1.5cqw; display: grid; gap: 1cqw; }
.lp-app__card-head { display: flex; justify-content: space-between; align-items: center; }
.lp-app__card-head b { font-size: 1.7cqw; }
.lp-app__card-head span { font-size: 1.25cqw; color: #0878BE; font-weight: 600; }
.lp-app__req { border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1cqw; padding: 1cqw 1.3cqw; display: grid; gap: 0.35cqw; }
.lp-app__req-row { display: flex; justify-content: space-between; align-items: center; }
.lp-app__req b { font-size: 1.45cqw; font-weight: 600; }
.lp-app__req small { font-size: 1.15cqw; color: #7A93B0; }
.lp-app__code { font-family: 'JetBrains Mono', monospace; color: #0878BE; font-weight: 600; font-size: 1.3cqw; direction: ltr; }
.lp-app .lp-tag, .lp-phone .lp-tag { font-size: 1.1cqw; padding: 0.3cqw 0.9cqw; }

/* الهاتف: يتراكب على زاوية الحاسوب اليسرى السفلى */
.lp-device--phone { left: 0; bottom: 0; width: 32%; z-index: 4; }
.lp-device--phone .lp-device__screen {
  aspect-ratio: 9 / 18.5; border-radius: 4.2cqw; border: 1.1cqw solid #16213A;
  box-shadow: 0 40px 70px -24px rgba(8, 40, 90, 0.45), 0 0 0 0.25cqw rgba(255, 255, 255, 0.5);
}
.lp-device--phone .lp-device__screen::after {
  content: ''; position: absolute; top: 0.9cqw; left: 50%; transform: translateX(-50%);
  width: 34%; height: 2.2cqw; border-radius: 999px; background: #16213A; z-index: 5;
}
.lp-phone { height: 100%; padding: 1.5cqw 1.7cqw; font-size: 1.5cqw; color: #0F1E33; display: flex; flex-direction: column; gap: 1.4cqw; background: #F5F7FA; }
.lp-phone__status { display: flex; justify-content: space-between; align-items: center; font-size: 1.15cqw; font-weight: 700; direction: ltr; padding: 0 0.6cqw; }
.lp-phone__sig { display: inline-flex; gap: 0.25cqw; align-items: flex-end; }
.lp-phone__sig i { width: 0.5cqw; background: #0F1E33; border-radius: 0.1cqw; height: 0.7cqw; }
.lp-phone__sig i:nth-child(2) { height: 1cqw; } .lp-phone__sig i:nth-child(3) { height: 1.3cqw; }
/* رأس التطبيق على الجوّال: قائمة + الشعار النصي + جرس بنقطة تنبيه */
.lp-phone__bar { display: flex; align-items: center; gap: 1cqw; font-size: 1.7cqw; padding: 1.1cqw 0 0.9cqw; border-bottom: 1px solid rgba(8, 120, 190, 0.12); }
.lp-phone__bar svg { width: 2cqw; height: 2cqw; color: #405876; }
.lp-phone__bar b { flex: 1; color: #07558A; }
.lp-phone__bell { position: relative; display: inline-flex; }
.lp-phone__bell i { position: absolute; top: -0.2cqw; left: -0.2cqw; width: 0.8cqw; height: 0.8cqw; border-radius: 50%; background: #E0453A; border: 0.2cqw solid #F5F7FA; }
.lp-phone__crumb { display: flex; align-items: baseline; gap: 0.7cqw; }
.lp-phone__crumb small { font-size: 1.15cqw; color: #7A93B0; }
.lp-phone__crumb small::after { content: '/'; margin-right: 0.7cqw; }
.lp-phone__crumb b { font-size: 1.8cqw; }
.lp-phone__card { background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.3cqw; padding: 1.2cqw 1.3cqw; display: grid; gap: 1cqw; }
.lp-phone__head { display: flex; justify-content: space-between; align-items: center; }
.lp-phone__title { font-weight: 700; font-size: 1.65cqw; }
.lp-phone__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9cqw; }
.lp-phone__meta div { background: #F5F7FA; border-radius: 0.9cqw; padding: 0.8cqw 1cqw; }
.lp-phone__meta small { display: block; font-size: 1.05cqw; color: #7A93B0; }
.lp-phone__meta b { font-size: 1.4cqw; font-weight: 600; }
.lp-phone__progress div { display: flex; justify-content: space-between; font-size: 1.1cqw; color: #7A93B0; margin-bottom: 0.4cqw; }
.lp-phone__progress div b { color: #0878BE; }
.lp-phone__progress i { display: block; height: 0.7cqw; border-radius: 999px; background: rgba(8, 120, 190, 0.12); overflow: hidden; }
.lp-phone__progress u { display: block; width: 62%; height: 100%; background: linear-gradient(90deg, #0878BE, #08A4E8); }
.lp-phone__steps { background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.3cqw; padding: 1.1cqw 1.3cqw; display: grid; gap: 0.9cqw; }
.lp-phone__steps-label { font-size: 1.15cqw; color: #7A93B0; font-weight: 600; }
.lp-phone__step { display: flex; align-items: center; gap: 0.9cqw; color: #7A93B0; font-size: 1.4cqw; }
.lp-phone__step svg { width: 2cqw; height: 2cqw; flex: none; border-radius: 50%; padding: 0.35cqw; }
.lp-phone__step i { font-style: normal; flex: 1; }
.lp-phone__step em { font-style: normal; font-size: 1.05cqw; font-weight: 600; }
.lp-phone__step--done { color: #16845B; }
.lp-phone__step--done svg { background: #DDEDE1; }
.lp-phone__step--now { color: #C78100; font-weight: 700; }
.lp-phone__step--now svg { background: #FFF3D8; }
.lp-phone__step--next { color: #405876; }
.lp-phone__step--next svg { background: #E3F0FA; color: #0878BE; }
.lp-phone__step--next em { color: #7A93B0; }
.lp-phone__files { display: flex; gap: 0.8cqw; flex-wrap: wrap; }
.lp-phone__files span {
  display: inline-flex; align-items: center; gap: 0.5cqw; font-size: 1.1cqw; direction: ltr;
  padding: 0.5cqw 0.9cqw; border-radius: 999px; background: #E3F0FA; color: #07558A; font-weight: 600;
}
.lp-phone__files svg { width: 1.3cqw; height: 1.3cqw; }

.lp-hero__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid var(--lp-border-strong);
  backdrop-filter: blur(20px);
  font-size: 12px; font-weight: 500; color: var(--lp-text);
  box-shadow: 0 10px 30px -10px rgba(8, 40, 90, 0.15), 0 2px 6px -3px rgba(8, 40, 90, 0.08);
}
.lp-hero__chip { z-index: 5; animation: lpChipFloat 6s ease-in-out infinite; }
.lp-hero__chip--1 { top: 0; left: 6%; color: var(--lp-accent); }
.lp-hero__chip--2 { top: 62%; right: -5%; animation-delay: -2s; }
.lp-hero__chip--3 { bottom: 4%; left: 34%; color: #16845B; animation-delay: -4s; }
@keyframes lpChipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .lp-hero__chip { animation: none; } }

/* ---------- About ---------- */
.lp-about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-about__panel { padding: 42px; }
.lp-about__panel .lp-lead { margin: 16px 0 24px; }

.lp-about__wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  perspective: 900px;
}
.lp-about__wall .lp-cover { aspect-ratio: 3 / 4; transform: rotate(-2deg); }
.lp-about__wall .lp-cover:nth-child(2n) { transform: rotate(3deg) translateY(-8px); }
.lp-about__wall .lp-cover:nth-child(3n) { transform: rotate(-4deg) translateY(4px); }

/* Book cover placeholders */
.lp-cover {
  position: relative; border-radius: 6px 12px 12px 6px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 44px -18px rgba(8, 40, 90, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 16px 18px 16px 16px; color: #fff; isolation: isolate;
}
/* كعب الكتاب على الجهة اليمنى + نقش هندسي خافت في الخلفية */
.lp-cover::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0, rgba(0, 0, 0, 0.35) 7px, rgba(255, 255, 255, 0.18) 7px, rgba(255, 255, 255, 0.18) 8px, transparent 8px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.14), transparent 45%),
    linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.35) 100%);
}
.lp-cover::after { content: none; }
.lp-cover__imprint { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; opacity: 0.85; padding-right: 8px; }
.lp-cover__imprint svg { width: 14px; height: 14px; flex: none; }
.lp-cover__body { padding-right: 8px; }
.lp-cover__body small { display: block; font-size: 10.5px; opacity: 0.75; margin-bottom: 4px; }
.lp-cover__body b { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.lp-cover__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 8px; font-size: 9.5px; opacity: 0.7; }
.lp-cover__foot i { flex: 1; max-width: 42px; height: 1px; background: rgba(255, 255, 255, 0.6); }
.lp-cover--a { background: linear-gradient(135deg, #0F3A5C, #1E5A85); }
.lp-cover--b { background: linear-gradient(135deg, #1A2E5C, #345A9E); }
.lp-cover--c { background: linear-gradient(135deg, #2B2251, #4B3A87); }
.lp-cover--d { background: linear-gradient(135deg, #003F4F, #0E6E7E); }
.lp-cover--e { background: linear-gradient(135deg, #12336B, #2960A8); }
.lp-cover--f { background: linear-gradient(135deg, #1F3A2F, #3E7A64); }


/* ---------- معرض الخدمات (#lp-services) ----------
   قائمة الخدمات يمينًا وإطار متصفّح كبير يسارًا. الشاشات مقاسة بوحدة cqw
   نسبةً إلى عرض الإطار فتتناسب مع أي عرض. ---------- */
.lp-showcase { display: grid; grid-template-columns: 0.78fr 1.45fr; gap: 40px; align-items: center; }
.lp-showcase__list { display: grid; gap: 6px; }
.lp-showcase__item {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  padding: 16px 16px 16px 18px; border-radius: 16px; text-align: right; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: inherit; font-family: inherit;
  position: relative; overflow: hidden; transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.lp-showcase__item:hover { background: rgba(255, 255, 255, 0.55); }
.lp-showcase__item.is-active {
  background: rgba(255, 255, 255, 0.85); border-color: var(--lp-border-strong);
  box-shadow: 0 18px 40px -22px rgba(8, 40, 90, 0.25);
}
.lp-showcase__icon {
  width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center;
  background: var(--lp-accent-soft); color: var(--lp-accent); border: 1px solid rgba(79, 168, 245, 0.22);
  transition: background 0.25s, color 0.25s;
}
.lp-showcase__icon svg { width: 22px; height: 22px; }
.lp-showcase__item.is-active .lp-showcase__icon { background: linear-gradient(135deg, #0878BE, #08A4E8); color: #fff; border-color: transparent; }
.lp-showcase__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-showcase__text b { font-size: 16px; font-weight: 700; color: var(--lp-text); }
.lp-showcase__text small { font-size: 13.5px; line-height: 1.65; color: var(--lp-text-2); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.35s ease, opacity 0.3s ease; }
.lp-showcase__item.is-active .lp-showcase__text small { max-height: 80px; opacity: 1; }
/* شريط زمن التناوب أسفل العنصر النشط */
.lp-showcase__bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: rgba(8, 120, 190, 0.10); border-radius: 2px; opacity: 0; }
.lp-showcase__item.is-active .lp-showcase__bar { opacity: 1; }
.lp-showcase__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2)); border-radius: 2px; }
.lp-showcase__item.is-active .lp-showcase__bar i { animation: lpBarFill 6s linear forwards; }
.lp-showcase.is-manual .lp-showcase__bar, .lp-showcase.is-manual .lp-showcase__bar i { display: none; }
@keyframes lpBarFill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .lp-showcase__bar { display: none; } }

.lp-showcase__dots { display: none; }
.lp-showcase__stage { position: relative; }
.lp-showcase__stage::before {
  content: ''; position: absolute; inset: -8% -6%; z-index: -1; border-radius: 40px;
  background: radial-gradient(ellipse at 30% 30%, rgba(8, 164, 232, 0.18), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(8, 120, 190, 0.14), transparent 55%);
  filter: blur(30px);
}
.lp-showcase__frame {
  container-type: inline-size;
  background: rgba(255, 255, 255, 0.9); border: 1px solid var(--lp-border-strong); border-radius: 20px;
  padding: 14px 16px 16px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -30px rgba(8, 40, 90, 0.35), 0 10px 30px -18px rgba(8, 40, 90, 0.18);
}
.lp-showcase__screens { position: relative; aspect-ratio: 16 / 9.4; margin-top: 10px; }
.lp-screen {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2cqw;
  padding: 2.2cqw 2.4cqw; border-radius: 1.6cqw; background: #F5F7FA; color: #0F1E33;
  font-size: 1.55cqw; opacity: 0; transform: translateY(8px) scale(0.99); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease; overflow: hidden;
}
.lp-screen.is-active { opacity: 1; transform: none; pointer-events: auto; }
.lp-screen__head { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; }
.lp-screen__head b { display: block; font-size: 2.4cqw; font-weight: 700; margin-bottom: 0.3cqw; }
.lp-screen__head small { font-size: 1.45cqw; color: #7A93B0; }
.lp-screen .lp-tag { font-size: 1.25cqw; padding: 0.45cqw 1.1cqw; white-space: nowrap; }
.lp-tag--info { background: #E3F0FA; color: #07558A; border: 1px solid rgba(8, 120, 190, 0.25); }
.lp-tag--muted { background: #EEF2F6; color: #405876; border: 1px solid rgba(64, 88, 118, 0.18); }
.lp-screen .lp-app__code { font-size: 1.4cqw; }
.lp-btn-mock {
  display: inline-flex; align-items: center; gap: 0.6cqw; padding: 0.9cqw 1.7cqw; border-radius: 0.9cqw;
  background: #fff; border: 1px solid rgba(8, 120, 190, 0.25); color: #07558A; font-weight: 600; font-size: 1.4cqw; white-space: nowrap;
}
.lp-btn-mock svg { width: 1.5cqw; height: 1.5cqw; }
.lp-btn-mock--primary { background: linear-gradient(135deg, #0878BE, #08A4E8); color: #fff; border-color: transparent; }

/* المعالج: مسار الخطوات يمينًا والمحتوى يسارًا */
.lp-wz { display: grid; grid-template-columns: 22% 1fr; gap: 2cqw; flex: 1; min-height: 0; }
.lp-wz__rail { background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.2cqw; padding: 1.4cqw 1.2cqw; display: grid; gap: 1.3cqw; align-content: start; }
.lp-wz__step { display: flex; align-items: center; gap: 1cqw; color: #7A93B0; font-size: 1.35cqw; font-weight: 500; }
.lp-wz__step span { width: 2.6cqw; height: 2.6cqw; border-radius: 50%; display: inline-grid; place-items: center; background: #EEF2F6; font-size: 1.2cqw; font-weight: 700; flex: none; }
.lp-wz__step span svg { width: 1.4cqw; height: 1.4cqw; }
.lp-wz__step--done { color: #16845B; } .lp-wz__step--done span { background: #DDEDE1; color: #16845B; }
.lp-wz__step--on { color: #07558A; font-weight: 700; } .lp-wz__step--on span { background: #0878BE; color: #fff; }
.lp-wz__body { display: flex; flex-direction: column; gap: 1.6cqw; min-width: 0; }
.lp-wz__foot { margin-top: auto; display: flex; justify-content: flex-start; gap: 1cqw; flex-direction: row-reverse; }
.lp-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2cqw; }
.lp-svc { position: relative; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.2cqw; padding: 2cqw 1.6cqw; display: grid; gap: 0.9cqw; justify-items: start; }
.lp-svc--on { border-color: #0878BE; box-shadow: 0 0 0 0.35cqw rgba(8, 120, 190, 0.12); }
.lp-svc__ic { width: 3.4cqw; height: 3.4cqw; border-radius: 1cqw; display: inline-grid; place-items: center; background: #E3F0FA; color: #0878BE; }
.lp-svc__ic svg { width: 1.9cqw; height: 1.9cqw; }
.lp-svc b { font-size: 1.45cqw; font-weight: 600; line-height: 1.4; }
.lp-drop { border: 0.2cqw dashed rgba(8, 120, 190, 0.40); border-radius: 1.4cqw; background: #fff; padding: 3.2cqw; display: grid; justify-items: center; gap: 0.6cqw; text-align: center; color: #07558A; }
.lp-drop svg { width: 3cqw; height: 3cqw; }
.lp-drop b { font-size: 1.6cqw; } .lp-drop small { font-size: 1.2cqw; color: #7A93B0; }
.lp-files { display: grid; gap: 0.9cqw; }
.lp-file { display: grid; grid-template-columns: auto 1fr 22% auto; align-items: center; gap: 1.2cqw; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1cqw; padding: 1.3cqw 1.5cqw; }
.lp-file__ic { width: 3cqw; height: 3cqw; border-radius: 0.8cqw; display: inline-grid; place-items: center; background: #E3F0FA; color: #0878BE; }
.lp-file__ic svg { width: 1.6cqw; height: 1.6cqw; }
.lp-file b { display: block; font-size: 1.4cqw; font-weight: 600; direction: ltr; text-align: right; }
.lp-file small { font-size: 1.15cqw; color: #7A93B0; }
.lp-file__bar { display: block; height: 0.6cqw; border-radius: 999px; background: rgba(8, 120, 190, 0.12); overflow: hidden; }
.lp-file__bar u { display: block; height: 100%; background: linear-gradient(90deg, #0878BE, #08A4E8); }
.lp-file__ok { width: 2.2cqw; height: 2.2cqw; border-radius: 50%; display: inline-grid; place-items: center; background: #DDEDE1; color: #16845B; }
.lp-file__ok svg { width: 1.3cqw; height: 1.3cqw; }
.lp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8cqw; }
.lp-form label { display: grid; gap: 0.5cqw; }
.lp-form--full { grid-column: 1 / -1; }
.lp-form span { font-size: 1.25cqw; color: #405876; font-weight: 600; }
.lp-form i { font-style: normal; font-size: 1.5cqw; background: #fff; border: 1px solid rgba(8, 120, 190, 0.22); border-radius: 0.9cqw; padding: 1.3cqw 1.4cqw; }
.lp-form__area { color: #A0B2C6; min-height: 8cqw; }

/* تفاصيل الطلب: مراحل أفقية + بطاقة حالة */
.lp-stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1cqw; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.4cqw; padding: 3cqw 1.6cqw; position: relative; }
.lp-stepper__s { display: grid; justify-items: center; text-align: center; gap: 0.7cqw; color: #7A93B0; position: relative; }
.lp-stepper__s:not(:last-child)::after { content: ''; position: absolute; top: 2.3cqw; left: -50%; width: 100%; height: 0.3cqw; background: rgba(8, 120, 190, 0.15); z-index: 0; }
.lp-stepper__s--done:not(:last-child)::after { background: #16845B; }
.lp-stepper__s span { position: relative; z-index: 1; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; display: inline-grid; place-items: center; background: #EEF2F6; font-size: 1.8cqw; font-weight: 700; border: 0.4cqw solid #fff; }
.lp-stepper__s span svg { width: 2.2cqw; height: 2.2cqw; }
.lp-stepper__s b { font-size: 1.7cqw; font-weight: 700; color: #405876; }
.lp-stepper__s small { font-size: 1.3cqw; }
.lp-stepper__s--done span { background: #DDEDE1; color: #16845B; }
.lp-stepper__s--on span { background: #0878BE; color: #fff; box-shadow: 0 0 0 0.4cqw rgba(8, 120, 190, 0.18); }
.lp-stepper__s--on b { color: #07558A; }
.lp-status { display: grid; grid-template-columns: auto 1fr; gap: 1.6cqw 2cqw; align-items: center; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.4cqw; padding: 3cqw 2.6cqw; margin-top: auto; }
.lp-status__ic { width: 6.4cqw; height: 6.4cqw; border-radius: 50%; display: inline-grid; place-items: center; background: #FFF3D8; color: #C78100; grid-row: span 2; }
.lp-status__ic svg { width: 3cqw; height: 3cqw; }
.lp-status__txt b { display: block; font-size: 2.2cqw; font-weight: 700; margin-bottom: 0.3cqw; }
.lp-status__txt small { font-size: 1.55cqw; color: #7A93B0; }
.lp-progress div { display: flex; justify-content: space-between; font-size: 1.2cqw; color: #7A93B0; margin-bottom: 0.4cqw; }
.lp-progress div b { color: #0878BE; }
.lp-progress i { display: block; height: 0.7cqw; border-radius: 999px; background: rgba(8, 120, 190, 0.12); overflow: hidden; }
.lp-progress u { display: block; height: 100%; background: linear-gradient(90deg, #0878BE, #08A4E8); }

/* الإشعارات والجدول */
.lp-tabs { display: flex; gap: 0.6cqw; border-bottom: 1px solid rgba(8, 120, 190, 0.12); }
.lp-tabs span { padding: 0.8cqw 1.4cqw; font-size: 1.35cqw; color: #7A93B0; font-weight: 600; border-bottom: 0.3cqw solid transparent; margin-bottom: -1px; }
.lp-tabs .is-on { color: #07558A; border-bottom-color: #0878BE; }
.lp-notes { display: grid; gap: 0.8cqw; }
.lp-note { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2cqw; align-items: center; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1cqw; padding: 1.4cqw 1.5cqw; }
.lp-note--unread { border-right: 0.4cqw solid #0878BE; }
.lp-note__ic { width: 3cqw; height: 3cqw; border-radius: 50%; display: inline-grid; place-items: center; background: #E3F0FA; color: #0878BE; }
.lp-note__ic svg { width: 1.6cqw; height: 1.6cqw; }
.lp-note__ic--ok { background: #DDEDE1; color: #16845B; }
.lp-note b { display: block; font-size: 1.4cqw; font-weight: 600; }
.lp-note small { font-size: 1.15cqw; color: #7A93B0; }
.lp-note em { font-style: normal; font-size: 1.15cqw; color: #7A93B0; white-space: nowrap; }
.lp-search { display: inline-flex; align-items: center; gap: 0.8cqw; background: #fff; border: 1px solid rgba(8, 120, 190, 0.22); border-radius: 0.9cqw; padding: 0.8cqw 1.3cqw; font-size: 1.3cqw; color: #A0B2C6; }
.lp-search svg { width: 1.5cqw; height: 1.5cqw; color: #7A93B0; }
.lp-table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; background: #fff; border: 1px solid rgba(8, 120, 190, 0.12); border-radius: 1.2cqw; overflow: hidden; font-size: 1.35cqw; }
.lp-table th { text-align: right; font-size: 1.2cqw; color: #7A93B0; font-weight: 600; padding: 1cqw 1.3cqw; background: #F8FAFC; border-bottom: 1px solid rgba(8, 120, 190, 0.12); }
.lp-table td { padding: 1.4cqw 1.5cqw; border-bottom: 1px solid rgba(8, 120, 190, 0.08); }
.lp-table td:first-child, .lp-table td:nth-child(3), .lp-table td:last-child { white-space: nowrap; }
.lp-table td:last-child { direction: ltr; text-align: right; font-variant-numeric: tabular-nums; }
.lp-table th:nth-child(1) { width: 26%; } .lp-table th:nth-child(2) { width: 34%; } .lp-table th:nth-child(3) { width: 22%; } .lp-table th:nth-child(4) { width: 18%; }
.lp-table td, .lp-table th { overflow: hidden; text-overflow: ellipsis; }
.lp-table tr:last-child td { border-bottom: 0; }

/* ---------- Cards grid ---------- */
.lp-cards-grid { display: grid; gap: 20px; }
.lp-cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-cards-grid--5 { grid-template-columns: repeat(5, 1fr); }
.lp-card { padding: 28px 24px; text-align: right; }
.lp-card:hover { transform: translateY(-4px); border-color: var(--lp-border-strong); background: var(--lp-surface-2); }
.lp-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--lp-accent-soft); color: var(--lp-accent-2);
  border: 1px solid rgba(79, 168, 245, 0.22);
  margin-bottom: 18px;
}
.lp-card__icon svg { width: 22px; height: 22px; }
.lp-card h3 { font-size: 16px; color: var(--lp-text); margin-bottom: 10px; }
.lp-card p { font-size: 13.5px; color: var(--lp-text-2); line-height: 1.75; }

/* ---------- Service pills ---------- */
.lp-services-strip {
  position: relative; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  padding: 36px 24px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.45); border: 1px solid var(--lp-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
/* توهّج خلفي خافت يُبرز الحزام عن الخلفية */
.lp-services-strip::before {
  content: ''; position: absolute; inset: 10% 15%; z-index: -1; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(8, 164, 232, 0.18), transparent 70%); filter: blur(30px);
}
.lp-service-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 20px; border-radius: 999px;
  background: #FFFFFF; border: 1.5px solid rgba(8, 120, 190, 0.28);
  color: var(--lp-text); font-size: 15px; font-weight: 700;
  box-shadow: 0 10px 24px -14px rgba(8, 40, 90, 0.45);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.lp-service-pill i {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #0878BE, #08A4E8); color: #fff;
  box-shadow: 0 6px 14px -6px var(--lp-accent-glow);
  transition: transform 0.2s ease;
}
.lp-service-pill i svg { width: 16px; height: 16px; }
.lp-service-pill:hover {
  transform: translateY(-3px); border-color: rgba(8, 120, 190, 0.45); background: #fff;
  box-shadow: 0 16px 30px -16px rgba(8, 40, 90, 0.40);
}
.lp-service-pill:hover i { transform: scale(1.08); }

/* ---------- Journey ---------- */
/* ---------- رحلة الطلب: خطّ زمني ---------- */
.lp-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; counter-reset: none; }
.lp-journey__step { position: relative; padding: 0 12px; text-align: center; }
/* الخطّ الواصل بين العُقد: يمتدّ من مركز عقدة إلى مركز التالية (في RTL التالية على اليسار) */
.lp-journey__step::before {
  content: ''; position: absolute; top: 34px; left: -50%; width: 100%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(8, 120, 190, 0.35), rgba(8, 120, 190, 0.12));
  background-image: repeating-linear-gradient(90deg, rgba(8, 120, 190, 0.45) 0 12px, transparent 12px 20px);
  background-size: 200% 100%;
}
.lp-journey__step:last-child::before { content: none; }
.lp-journey__node { position: relative; width: 68px; height: 68px; margin: 0 auto 18px; z-index: 1; }
.lp-journey__icon {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--lp-border-strong); color: var(--lp-accent);
  box-shadow: 0 18px 36px -18px rgba(8, 40, 90, 0.35), inset 0 1px 0 #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lp-journey__icon svg { width: 28px; height: 28px; }
.lp-journey__num {
  position: absolute; top: -10px; right: -10px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #0878BE, #08A4E8); color: #fff;
  font-size: 13px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  border: 3px solid var(--lp-bg-0); box-shadow: 0 6px 14px -6px var(--lp-accent-glow);
}
.lp-journey__step:hover .lp-journey__icon { transform: translateY(-4px); box-shadow: 0 24px 40px -18px rgba(8, 40, 90, 0.45), inset 0 1px 0 #fff; }
.lp-journey__step h3 { font-size: 16px; color: var(--lp-text); margin-bottom: 8px; }
.lp-journey__step p { font-size: 13.5px; color: var(--lp-text-2); max-width: 220px; margin: 0 auto; }
/* حركة انسياب خفيفة على الخطّ الواصل (تُعطَّل مع تقليل الحركة) */
@keyframes lpJourneyFlow { to { background-position: -40px 0; } }
.lp-journey__step::before { animation: lpJourneyFlow 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) { .lp-journey__step::before { animation: none; } }

/* ---------- Featured covers grid ---------- */
.lp-covers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.lp-cover--tall { height: 300px; padding: 20px 22px 20px 18px; }
.lp-cover--tall .lp-cover__body b { font-size: 18px; }

/* ---------- Platform preview ---------- */
.lp-preview__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.lp-preview__intro .lp-lead { margin: 16px 0 24px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-checks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--lp-text-2);
}
.lp-checks li svg {
  padding: 4px; border-radius: 50%;
  background: #DDEDE1; color: #16845B;
  border: 1px solid rgba(22, 132, 91, 0.25);
  width: 22px; height: 22px;
}

.lp-preview__mock { padding: 20px; overflow: hidden; }
.lp-preview__topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px 14px; border-bottom: 1px solid var(--lp-border);
}
.lp-preview__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(8, 40, 90, 0.15);
}
.lp-preview__dot:first-child { background: #FF6060; }
.lp-preview__dot:nth-child(2) { background: #FFC33C; }
.lp-preview__dot:nth-child(3) { background: #5ADC8C; }
.lp-preview__url {
  flex: 1; text-align: center; font-size: 11px; color: var(--lp-text-3);
  font-family: 'JetBrains Mono', monospace;
}
.lp-preview__body { padding: 20px 6px 6px; display: grid; gap: 14px; }
.lp-preview__req {
  padding: 18px; border-radius: 14px;
  background: #FFFFFF; border: 1px solid var(--lp-border);
  box-shadow: 0 2px 8px -4px rgba(8, 40, 90, 0.08);
}
.lp-preview__req--soft { opacity: 0.85; }
.lp-preview__req-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lp-preview__num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--lp-accent); font-weight: 600; }
.lp-tag {
  padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.lp-tag--warning { background: #FFF3D8; color: #C78100; border: 1px solid rgba(199, 129, 0, 0.20); }
.lp-tag--success { background: #DDEDE1; color: #16845B; border: 1px solid rgba(22, 132, 91, 0.25); }
.lp-preview__req-meta {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.lp-preview__req-meta div {
  padding: 8px 10px; border-radius: 8px;
  background: #F1F5F9;
}
.lp-preview__req-meta span { display: block; font-size: 10.5px; color: var(--lp-text-3); margin-bottom: 3px; }
.lp-preview__req-meta b { font-size: 12.5px; color: var(--lp-text); font-weight: 600; }

.lp-preview__progress { margin-top: 10px; }
.lp-preview__bar { height: 6px; background: rgba(8, 120, 190, 0.10); border-radius: 3px; overflow: hidden; }
.lp-preview__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lp-accent), var(--lp-accent-2)); box-shadow: 0 0 10px var(--lp-accent-glow); }
.lp-preview__progress small { display: block; margin-top: 5px; font-size: 11px; color: var(--lp-text-3); }
.lp-preview__attach { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.lp-preview__attach span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 8px;
  background: var(--lp-accent-soft); border: 1px solid rgba(8, 120, 190, 0.18);
  color: var(--lp-accent); font-size: 11px; font-weight: 500;
}

.lp-preview__notif {
  display: grid; gap: 8px; padding: 12px;
  border-radius: 12px; border: 1px solid var(--lp-border);
  background: #F8FBFE;
}
.lp-preview__notif-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.lp-preview__notif-item b { display: block; font-size: 12.5px; color: var(--lp-text); font-weight: 600; margin-bottom: 2px; }
.lp-preview__notif-item small { color: var(--lp-text-3); font-size: 10.5px; }
.lp-preview__notif-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lp-accent); box-shadow: 0 0 8px var(--lp-accent-glow);
  flex-shrink: 0;
}
.lp-preview__notif-dot--muted { background: rgba(8, 40, 90, 0.20); box-shadow: none; }

/* ---------- CTA ---------- */
.lp-cta__box {
  padding: 60px 50px; text-align: center;
  background: linear-gradient(135deg, rgba(8, 164, 232, 0.06), rgba(8, 120, 190, 0.04));
  border: 1px solid var(--lp-border-strong);
}
.lp-cta__box .lp-lead { margin: 18px auto 28px; max-width: 640px; }
.lp-cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.lp-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-contact__card { padding: 30px 24px; text-align: right; }
.lp-contact__card h3 { font-size: 15px; margin-bottom: 8px; color: var(--lp-text); }
.lp-contact__card p { font-size: 14px; color: var(--lp-text-2); line-height: 1.85; }
.lp-contact__card a { color: var(--lp-accent-2); }
.lp-contact__card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  padding-top: 40px;
  position: relative; z-index: 2;
}
.lp-footer__inner {
  display: grid; grid-template-columns: 2fr 3fr 2fr; gap: 32px;
  align-items: center; padding-bottom: 32px;
}
.lp-footer__brand { display: flex; align-items: center; gap: 12px; }
.lp-footer__brand .lp-brand__logo { height: 40px; }
.lp-footer__nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.lp-footer__nav a { font-size: 13px; color: var(--lp-text-2); }
.lp-footer__nav a:hover { color: var(--lp-text); }
.lp-footer__mail { text-align: left; }
.lp-footer__mail a { font-size: 13px; color: var(--lp-accent-2); }
.lp-footer__base {
  border-top: 1px solid var(--lp-border);
  padding: 20px 0; text-align: center;
  font-size: 12px; color: var(--lp-text-3);
}

/* ---------- Back-to-landing link (inside auth screen) ---------- */
.lp-back-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: var(--text-tertiary, #64748B);
  font-family: inherit; font-size: 12.5px; font-weight: 500;
  cursor: pointer;
  padding: 0; margin-bottom: 18px;
  transition: color 0.2s;
}
.lp-back-link:hover { color: var(--brand, #0878BE); }

/* ---------- Body-lock while landing scrolls ---------- */
html.lp-active,
body.lp-active {
  background: #F5F9FD !important;
}
body.lp-active { color: #0F1E33; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .lp-nav { display: none; }
  .lp-menu-toggle { display: inline-flex; }
  .lp-cards-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .lp-covers-grid { grid-template-columns: repeat(3, 1fr); }
  .lp-covers-grid .lp-cover:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
  .lp-hero { padding: 130px 0 60px; }
  .lp-hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero__visual { max-width: 620px; margin: 0 auto; width: 100%; }
  .lp-about__grid { grid-template-columns: 1fr; }
  .lp-showcase { grid-template-columns: 1fr; gap: 20px; }
  .lp-showcase__list {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    padding: 4px 24px 6px; margin: 0 -20px;
    scroll-snap-type: x proximity; scroll-padding: 0 24px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  }
  .lp-showcase__item { scroll-snap-align: center; }
  /* نقاط تحت الحبوب تدلّ على عددها وموضع النشط منها */
  .lp-showcase__dots { display: flex; justify-content: center; gap: 7px; margin-top: -8px; }
  .lp-showcase__dots span { width: 7px; height: 7px; border-radius: 999px; background: rgba(8, 120, 190, 0.22); transition: width 0.25s ease, background 0.25s ease; }
  .lp-showcase__dots .is-active { width: 22px; background: linear-gradient(90deg, #0878BE, #08A4E8); }
  .lp-showcase__list::-webkit-scrollbar { display: none; }
  .lp-showcase__item { flex: none; grid-template-columns: 34px auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); border-color: var(--lp-border); }
  .lp-showcase__icon { width: 34px; height: 34px; border-radius: 10px; }
  .lp-showcase__icon svg { width: 18px; height: 18px; }
  .lp-showcase__text b { font-size: 14px; white-space: nowrap; }
  .lp-showcase__text small, .lp-showcase__bar { display: none; }
  .lp-showcase__frame { padding: 10px 10px 12px; border-radius: 16px; }
  .lp-preview__grid { grid-template-columns: 1fr; gap: 32px; }
  .lp-cards-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .lp-cards-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .lp-journey { grid-template-columns: 1fr; gap: 36px; max-width: 420px; margin: 0 auto; }
  .lp-journey__step { padding: 0; text-align: center; }
  .lp-journey__node { margin: 0 auto 14px; }
  /* الوصلة تملأ الفجوة بين نصّ الخطوة وعقدة التالية فقط، لا تمرّ خلف النصّ */
  .lp-journey__step::before { top: calc(100% + 8px); left: 50%; right: auto; transform: translateX(-50%); width: 3px; height: 20px; background-image: repeating-linear-gradient(180deg, rgba(8, 120, 190, 0.5) 0 6px, transparent 6px 10px); background-size: 100% 200%; animation: none; }
  .lp-journey__step p { margin: 0 auto; max-width: 260px; }
  .lp-covers-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-contact-grid { grid-template-columns: 1fr; }
  .lp-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .lp-footer__mail { text-align: center; }
  .lp-footer__brand { justify-content: center; }
}
@media (max-width: 640px) {
  .lp-section { padding: 52px 0; }
  .lp-section-head { margin-bottom: 28px; }
  .lp-shell .lp-h2 { font-size: 24px; }

  /* البطل على الجوّال: أزرار بعرض كامل، والرقائق داخل حدود الشاشة */
  .lp-hero { padding: 104px 0 48px; }
  .lp-shell .lp-hero__title { margin: 20px 0 20px; }
  .lp-shell .lp-hero__desc { font-size: 15.5px; margin-bottom: 28px; }
  .lp-hero__actions { gap: 10px; }
  .lp-hero__actions .lp-btn { width: 100%; justify-content: center; }
  .lp-hero__visual { margin-top: 8px; }
  .lp-hero__chip--1 { left: 0; top: 2%; }
  .lp-hero__chip--2 { right: 0; top: 64%; }
  .lp-hero__chip--3 { left: 30%; bottom: 0; }

  /* جدار الأغلفة: يُبقي الشعار أيقونةً فقط ويُخفي السطر السفلي */
  .lp-about__panel { padding: 28px 22px; }
  .lp-about__wall { gap: 10px; }
  .lp-about__wall .lp-cover { padding: 10px 10px 10px 8px; border-radius: 4px 8px 8px 4px; }
  .lp-about__wall .lp-cover__imprint span, .lp-about__wall .lp-cover__foot, .lp-about__wall .lp-cover__body small { display: none; }
  .lp-about__wall .lp-cover__imprint { padding-right: 6px; }
  .lp-about__wall .lp-cover__body { padding-right: 6px; }
  .lp-about__wall .lp-cover__body b { font-size: 12.5px; }

  /* بطاقات "ماذا تقدّم الدار" و"تواصل معنا": صفّ أفقي مضغوط بدل بطاقة طويلة */
  .lp-cards-grid--5, .lp-contact-grid { gap: 10px; }
  .lp-cards-grid--5 .lp-card, .lp-contact__card {
    display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; align-items: start; padding: 16px 16px;
  }
  .lp-cards-grid--5 .lp-card .lp-card__icon, .lp-contact__card .lp-card__icon { width: 42px; height: 42px; margin: 0; grid-row: span 2; }
  .lp-cards-grid--5 .lp-card .lp-card__icon svg, .lp-contact__card .lp-card__icon svg { width: 20px; height: 20px; }
  .lp-cards-grid--5 .lp-card h3, .lp-contact__card h3 { font-size: 15px; margin-bottom: 4px; }
  .lp-cards-grid--5 .lp-card p, .lp-contact__card p { font-size: 13px; line-height: 1.6; }
  .lp-cards-grid--5 .lp-card:hover, .lp-contact__card:hover { transform: none; }

  /* الدعوة الختامية: أزرار بعرض كامل */
  .lp-cta__actions { flex-direction: column; gap: 10px; }
  .lp-cta__actions .lp-btn { width: 100%; justify-content: center; }
  .lp-services-strip { display: grid; grid-template-columns: 1fr 1fr; padding: 14px; gap: 10px; border-radius: 20px; }
  .lp-service-pill { font-size: 13px; padding: 10px 10px 10px 12px; gap: 8px; border-radius: 14px; justify-content: flex-start; }
  .lp-service-pill i { width: 28px; height: 28px; }
  .lp-cards-grid--3, .lp-cards-grid--5 { grid-template-columns: 1fr; }
  .lp-covers-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-cta__box { padding: 40px 24px; }
  .lp-header__inner { padding: 12px 20px; gap: 12px; }
  .lp-brand__text { display: none; }
  .lp-shell .lp-hero__title { font-size: clamp(21px, 7vw, 30px); line-height: 1.35; }
  .lp-hero__chip { font-size: 11px; padding: 6px 11px; }
}

/* Menu open state */
.lp-header.lp-menu-open .lp-nav {
  display: flex; flex-direction: column; align-items: stretch; text-align: right; gap: 4px;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  padding: 24px 32px;
  border-bottom: 1px solid var(--lp-border);
  box-shadow: 0 8px 24px -12px rgba(8, 40, 90, 0.15);
  gap: 18px;
}

/* Bell red dot */
#bellBtn { position: relative; }
.bell-dot {
  position: absolute;
  top: 4px; inset-inline-start: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E23B3B;
  box-shadow: 0 0 0 2px #fff;
  pointer-events: none;
}

/* Bell popover */
.bell-pop {
  position: fixed;
  min-width: 340px;
  max-width: 380px;
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
  z-index: 1000;
  overflow: hidden;
}
.bell-pop.hidden { display: none; }
.bell-pop__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #F5F9FD;
}
.bell-pop__count {
  display: inline-block; margin-inline-start: 8px;
  background: #E23B3B; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.bell-pop__link {
  background: none; border: 0; padding: 0;
  color: #0878BE; font-size: 12px; cursor: pointer;
}
.bell-pop__list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; }
.bell-pop__item {
  display: flex; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bell-pop__item:last-child { border-bottom: 0; }
.bell-pop__dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 8px; background: transparent; flex-shrink: 0;
}
.bell-pop__item.is-unread .bell-pop__dot { background: #0878BE; }
.bell-pop__body { flex: 1; min-width: 0; }
.bell-pop__title { font-weight: 700; font-size: 13.5px; margin-bottom: 2px; color: #0F1E33; }
.bell-pop__meta  { font-size: 11px; color: #7A93B0; margin-bottom: 3px; }
.bell-pop__desc  { font-size: 12.5px; color: #405876; }
.bell-pop__foot {
  padding: 10px 16px;
  border-top: 1px solid rgba(0,0,0,0.06);
  background: #F5F9FD;
}
.bell-pop__all {
  width: 100%; text-align: center;
  background: none; border: 0;
  color: #0878BE; font-weight: 700; font-size: 13px; cursor: pointer;
  padding: 6px;
}
.bell-pop__all:hover { text-decoration: underline; }

/* Quote details modal */
.quote-detail__price {
  text-align: center;
  padding: 16px 0 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}
.quote-detail__price-label { display: block; color: #7A93B0; font-size: 13px; margin-bottom: 6px; }
.quote-detail__price-value { display: block; font-size: 34px; font-weight: 800; color: #0878BE; }
.quote-detail__rows { display: grid; gap: 10px; margin-bottom: 20px; }
.quote-detail__rows > div { display: flex; justify-content: space-between; font-size: 13.5px; }
.quote-detail__rows span { color: #7A93B0; }
.quote-detail__actions { display: flex; gap: 10px; justify-content: flex-end; }
.quote-card:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(8,120,190,0.12); }

/* Notifications page — cards */
.notif-summary {
  display: flex; gap: 12px;
  margin-bottom: 16px;
}
.notif-summary__stat {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.notif-summary__stat span    { color: #7A93B0; font-size: 13px; }
.notif-summary__stat strong  { color: #0F1E33; font-size: 22px; font-weight: 800; }
.notif-summary__stat--accent { border-color: #E23B3B; }
.notif-summary__stat--accent strong { color: #E23B3B; }

.notif-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.notif-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.notif-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8, 120, 190, 0.10);
  border-color: rgba(8, 120, 190, 0.22);
}
.notif-card--unread { background: #F5F9FD; border-color: rgba(8, 120, 190, 0.24); }
.notif-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
}
.notif-card__icon--request { background: #E3F0FA; color: #0878BE; }
.notif-card__icon--quote   { background: #E9F6EC; color: #16845B; }
.notif-card__icon--invoice { background: #FFF3D8; color: #C78100; }
.notif-card__icon--system  { background: #F0EAFB; color: #6E44B8; }
.notif-card__body { min-width: 0; }
.notif-card__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.notif-card__title { font-weight: 700; font-size: 14px; color: #0F1E33; }
.notif-card__when  { font-size: 11.5px; color: #7A93B0; white-space: nowrap; }
.notif-card__meta  { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notif-card__pill {
  font-size: 10.5px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.notif-card__pill--request { background: #E3F0FA; color: #0878BE; }
.notif-card__pill--quote   { background: #E9F6EC; color: #16845B; }
.notif-card__pill--invoice { background: #FFF3D8; color: #C78100; }
.notif-card__pill--system  { background: #F0EAFB; color: #6E44B8; }
.notif-card__ref  { font-size: 11.5px; color: #7A93B0; }
.notif-card__desc { font-size: 13px; color: #405876; margin: 0; line-height: 1.55; }
.notif-card__badge {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #E23B3B;
}

/* Profile page */
.profile-hero {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #F5F9FD 0%, #EBF3FB 100%);
  border: 1px solid rgba(8, 120, 190, 0.12);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
}
.profile-hero__avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: #fff;
  color: #0878BE;
  display: grid; place-items: center;
  font-size: 40px; font-weight: 800;
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(8, 120, 190, 0.15);
}
.profile-hero__body { min-width: 0; }
.profile-hero__name { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: #0F1E33; }
.profile-hero__pos  { color: #405876; font-size: 14px; margin-bottom: 10px; }
.profile-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.profile-badge {
  font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: #fff; color: #405876;
  border: 1px solid rgba(0,0,0,0.08);
}
.profile-badge--brand { background: #E3F0FA; color: #0878BE; border-color: rgba(8,120,190,0.24); }
.profile-badge--ok    { background: #E9F6EC; color: #16845B; border-color: rgba(22,132,91,0.24); }
.profile-badge--soft  { background: #F0EAFB; color: #6E44B8; border-color: rgba(110,68,184,0.24); }
.profile-hero__meta {
  display: grid; gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  min-width: 220px;
}
.profile-hero__meta > div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px;
}
.profile-hero__meta span { color: #7A93B0; }
.profile-hero__meta b    { color: #0F1E33; font-weight: 700; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.profile-stat {
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.profile-stat span    { color: #7A93B0; font-size: 12px; }
.profile-stat strong  { color: #0F1E33; font-size: 24px; font-weight: 800; }

.profile-section {
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 14px;
}
.profile-section__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.profile-section__head h3 { margin: 0; font-size: 15px; }
.profile-section__head span { color: #7A93B0; font-size: 12.5px; }
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
.profile-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12.5px; color: #7A93B0; font-weight: 600;
}
.profile-grid input,
.profile-grid select {
  padding: 9px 12px;
  border: 1px solid #E1E7EE;
  border-radius: 8px;
  background: #fff;
  color: #0F1E33;
  font-family: inherit;
  font-size: 13.5px;
}
.profile-grid input[readonly] { background: #F5F9FD; color: #405876; }

.profile-toggles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.profile-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #0F1E33; font-weight: 500;
  cursor: pointer;
}
.profile-toggle input { accent-color: #0878BE; width: 16px; height: 16px; }

.profile-activity {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
}
.profile-activity li {
  display: grid; grid-template-columns: 12px 1fr; gap: 10px;
  align-items: flex-start;
}
.profile-activity__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #0878BE; margin-top: 8px;
}
.profile-activity b     { display: block; font-size: 13.5px; color: #0F1E33; margin-bottom: 2px; }
.profile-activity small { color: #7A93B0; font-size: 12px; }

@media (max-width: 780px) {
  .profile-hero { grid-template-columns: 72px 1fr; }
  .profile-hero__meta { grid-column: 1 / -1; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-grid  { grid-template-columns: 1fr; }
  .profile-toggles { grid-template-columns: 1fr; }
}

/* Proof approval card */
.proof-card {
  border: 1px solid rgba(8, 120, 190, 0.14);
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  display: grid; gap: 12px;
  margin-bottom: 8px;
}
.proof-card--pending  { border-color: #E23B3B; background: #FFF5F5; }
.proof-card--approved { border-color: #16845B; background: #F1FAF3; }
.proof-card--rejected { border-color: #C78100; background: #FFF7E6; }

.proof-card__banner b     { display: block; color: #C22929; font-size: 14px; margin-bottom: 2px; }
.proof-card__banner small { color: #7A3535; font-size: 12.5px; }

.proof-card__file {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(8, 120, 190, 0.08);
  border-radius: 10px;
}
.proof-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #E3F0FA;
  color: #0878BE;
  display: grid; place-items: center;
}
.proof-card__file b     { font-size: 13.5px; color: #0F1E33; }
.proof-card__file small { display: block; color: #7A93B0; font-size: 11.5px; margin-top: 2px; }

.proof-card__status {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  align-self: flex-start;
}
.proof-card__status--ok   { background: #E9F6EC; color: #16845B; }
.proof-card__status--warn { background: #FFF3D8; color: #C78100; }

.proof-card__actions {
  display: flex; gap: 10px; justify-content: flex-end;
}

/* Mini pipeline — compact stage tracker in tables */
.mini-pipe { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
.mini-pipe__track { display: flex; align-items: center; gap: 4px; }
.mini-pipe__dot {
  flex: 1; height: 6px;
  border-radius: 3px;
  background: #E1E7EE;
  transition: background 0.15s;
}
.mini-pipe__dot--done    { background: #16845B; }
.mini-pipe__dot--current { background: #0878BE; box-shadow: 0 0 0 2px rgba(8,120,190,0.20); }
.mini-pipe__dot--pending { background: #E1E7EE; }
.mini-pipe__dot--skipped { background: #F0EAFB; opacity: 0.5; }
.mini-pipe__label {
  font-size: 11px; color: #0878BE; font-weight: 700;
  white-space: nowrap;
}

/* Owner chip */
.owner-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 2px;
  background: #F5F9FD;
  border: 1px solid rgba(8, 120, 190, 0.14);
  border-radius: 999px;
  font-size: 10px;
}
.owner-chip--unassigned {
  background: #FFF3D8; color: #C78100;
  border-color: rgba(199, 129, 0, 0.24);
  padding: 3px 10px;
}
.owner-chip--unassigned .owner-chip__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #C78100;
}
.owner-chip__avatar {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #0878BE; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 9.5px;
  flex-shrink: 0;
}
.owner-chip__body { display: flex; flex-direction: column; line-height: 1.2; }
.owner-chip__name { color: #0F1E33; font-weight: 600; font-size: 10.5px; }
.owner-chip__body small { color: #7A93B0; font-size: 9.5px; }

/* Larger variant — used inside detail modals where the chip has room to breathe */
.customer-summary .owner-chip,
.owner-chip--detailed {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px 6px 6px;
  gap: 10px;
  font-size: 12px;
  border-radius: 999px;
  background: #fff;
  border-color: rgba(8, 120, 190, 0.24);
  box-shadow: 0 1px 3px rgba(8, 120, 190, 0.05);
  white-space: nowrap;
  width: auto;
  margin-bottom: 0;
}
.customer-summary .owner-chip__avatar,
.owner-chip--detailed .owner-chip__avatar {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  font-size: 12px;
  margin-bottom: 0;
}
.customer-summary .owner-chip__body,
.owner-chip--detailed .owner-chip__body {
  display: inline-flex;
  flex-direction: column;
  padding-inline-end: 4px;
  margin-bottom: 0;
}
.customer-summary .owner-chip__name,
.owner-chip--detailed .owner-chip__name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #0F1E33;
  line-height: 1.25;
  white-space: nowrap;
  margin-bottom: 0;
}
.customer-summary .owner-chip__body small,
.owner-chip--detailed .owner-chip__body small {
  font-size: 10.5px;
  color: #7A93B0;
  margin-top: 1px;
  white-space: nowrap;
}

/* Row actions */
.row-actions { display: flex; gap: 6px; }

/* Owner row in detail modal */
.owner-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #F5F9FD; border-radius: 10px; }
.owner-row > span { color: #7A93B0; font-size: 12.5px; }
.owner-row > b { display: flex; align-items: center; gap: 12px; }
.owner-row__btn { padding: 6px 14px !important; font-size: 12.5px !important; }

/* Assign modal */
.assign-modal .assign-team-list { display: grid; gap: 6px; margin-bottom: 14px; }
.assign-team {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid #E1E7EE;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.assign-team:hover { border-color: #0878BE; background: #F5F9FD; }
.assign-team input[type="radio"] { accent-color: #0878BE; width: 16px; height: 16px; flex-shrink: 0; }
.assign-team input[type="radio"]:checked ~ .assign-team__avatar { background: #16845B; }
.assign-team:has(input:checked) { border-color: #0878BE; background: #E3F0FA; }
.assign-team__avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #0878BE; color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.assign-team__body { display: flex; flex-direction: column; line-height: 1.3; }
.assign-team__body b { font-size: 13.5px; color: #0F1E33; }
.assign-team__body small { color: #7A93B0; font-size: 11.5px; }
.assign-note-label { display: block; color: #7A93B0; font-size: 12.5px; margin-top: 8px; }
.assign-note-label textarea {
  width: 100%; margin-top: 4px;
  padding: 8px 10px;
  border: 1px solid #E1E7EE; border-radius: 8px;
  font-family: inherit; font-size: 13px;
  color: #0F1E33; resize: vertical;
}

/* Sidebar section headers (grouped nav) */
.nav-section {
  padding: 8px 14px 2px;
  color: var(--text-muted, #94A3B8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.nav-section:first-child { margin-top: 0; padding-top: 4px; }

/* Ensure sidebar scrolls smoothly when there are many items */
.nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,0.35) transparent;
}
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.35); border-radius: 3px; }
.nav::-webkit-scrollbar-track { background: transparent; }

/* ─── Kanban / pipeline board ─────────────────────── */
.kanban-total-wrap { display: flex; align-items: center; gap: 8px; }
.kanban-total {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: #fff; color: #0F1E33;
  border: 1px solid rgba(8,120,190,0.20);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 500;
}
.kanban-total b { color: #0878BE; font-weight: 800; font-size: 14px; }

.kanban {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 16px;
  align-items: stretch;
  scroll-snap-type: x proximity;
}
.kanban__col {
  flex: 0 0 260px;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  background: #F8FAFC;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 12px;
  padding: 0;
  display: flex; flex-direction: column;
  min-height: 380px;
  overflow: hidden;
  scroll-snap-align: start;
}
.kanban__col--start   { border-top: 3px solid #0878BE; }
.kanban__col--mid     { border-top: 3px solid #94A3B8; }
.kanban__col--optional{ border-top: 3px solid #B39DDB; background: #FAFAFF; }
.kanban__col--end     { border-top: 3px solid #16845B; }

.kanban__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 12px;
  gap: 8px;
}
.kanban__head-title { display: flex; align-items: center; gap: 8px; }
.kanban__step {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #0878BE;
  border: 1.5px solid rgba(8,120,190,0.30);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.kanban__label {
  color: #0F1E33; font-size: 13.5px; font-weight: 700;
  letter-spacing: -0.005em;
}
.kanban__count {
  min-width: 24px; height: 22px; padding: 0 8px;
  background: #E3F0FA; color: #0878BE;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.kanban__col--optional .kanban__count { background: #F0EAFB; color: #6E44B8; }
.kanban__optional-tag {
  margin: 0 14px 8px;
  padding: 3px 8px;
  background: #F0EAFB; color: #6E44B8;
  font-size: 10.5px; font-weight: 600;
  text-align: center;
  border-radius: 4px;
}
.kanban__body {
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 10px 14px;
  flex: 1;
}

.kanban-empty {
  color: #B0BEC5;
  text-align: center;
  padding: 24px 12px;
  border: 1.5px dashed rgba(148,163,184,0.30);
  border-radius: 10px;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-top: 8px;
}
.kanban-empty__icon { font-size: 20px; color: #CBD5E1; line-height: 1; }
.kanban-empty__label { font-size: 12px; }

.kanban-card {
  background: #fff;
  border: 1px solid #E1E7EE;
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, border-color 0.12s;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 150px;
}
.kanban-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(8,120,190,0.10);
  border-color: rgba(8,120,190,0.30);
}
.kanban-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.kanban-card__id {
  color: #7A93B0; font-size: 11px; font-weight: 700;
  letter-spacing: 0.02em;
}
.kanban-card__prio {
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  white-space: nowrap;
}
.kanban-card__prio--urgent { background: #FCE8E8; color: #C22929; border: 1px solid rgba(194,41,41,0.25); }
.kanban-card__prio--high   { background: #FFF3D8; color: #C78100; border: 1px solid rgba(199,129,0,0.25); }
.kanban-card__prio--medium { background: #E3F0FA; color: #0878BE; border: 1px solid rgba(8,120,190,0.20); }
.kanban-card__prio--normal { background: #F1F5F9; color: #64748B; border: 1px solid #E1E7EE; }

.kanban-card__title {
  color: #0F1E33; font-size: 13.5px; font-weight: 700;
  line-height: 1.4;
  min-height: 38px;
}
.kanban-card__meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  color: #7A93B0; font-size: 11.5px;
}
.kanban-card__dot { color: #CBD5E1; }

.kanban-card__bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}
.kanban-card__owner {
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 0; flex: 1;
}
.kanban-card__avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0878BE; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.kanban-card__owner--none .kanban-card__avatar {
  background: #FFF3D8; color: #C78100;
}
.kanban-card__owner-name {
  color: #0F1E33; font-size: 12px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.kanban-card__owner--none .kanban-card__owner-name { color: #C78100; }
.kanban-card__due {
  display: inline-flex; align-items: center; gap: 4px;
  color: #7A93B0; font-size: 11px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Material badges (materialOrders view) */
.mat-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}
.mat-badge--ready   { background: #E3F0FA; color: #0878BE; border-color: rgba(8,120,190,0.24); }
.mat-badge--pending { background: #FFF3D8; color: #C78100; border-color: rgba(199,129,0,0.24); }
.mat-badge--ok      { background: #E9F6EC; color: #16845B; border-color: rgba(22,132,91,0.24); }
.mat-badge--done    { background: #E9F6EC; color: #16845B; border-color: rgba(22,132,91,0.30); }
.mat-badge--warn    { background: #FCE8E8; color: #C22929; border-color: rgba(194,41,41,0.24); }

/* Work order checklist */
.wo-checklist {
  display: grid; gap: 6px;
  margin: 10px 0;
}
.wo-checklist--inline { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.wo-check {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.wo-check--done    { background: #E9F6EC; color: #16845B; }
.wo-check--pending { background: #F1F5F9; color: #94A3B8; }

/* Issue work order modal */
.issue-wo__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  padding: 14px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid rgba(8,120,190,0.10);
}
.issue-wo__summary > div { display: flex; justify-content: space-between; font-size: 13px; }
.issue-wo__summary span { color: #7A93B0; }
.issue-wo__summary b    { color: #0F1E33; font-weight: 700; }
@media (max-width: 500px) {
  .issue-wo__summary { grid-template-columns: 1fr; }
}

/* ─── ERP-grade Request Details modal ─────────────────────── */

.detail-section {
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 12px;
  scroll-margin-top: 20px;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.detail-section--flash {
  border-color: #0878BE;
  box-shadow: 0 0 0 3px rgba(8, 120, 190, 0.15);
}
.detail-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(8, 120, 190, 0.10);
}
.detail-section__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0F1E33;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-section__hint {
  color: #7A93B0;
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}
.detail-section__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: #FFF3D8;
  color: #C78100;
  border: 1px solid rgba(199,129,0,0.30);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.detail-section--internal {
  background: #FFFBF0;
  border-color: rgba(199,129,0,0.20);
}
.detail-section--internal .detail-section__head {
  border-bottom-color: rgba(199,129,0,0.20);
}
.detail-section--actions {
  background: #F5F9FD;
  border-color: rgba(8, 120, 190, 0.20);
}

/* Next Action Card */
.next-action {
  border: 1px solid rgba(8, 120, 190, 0.24);
  border-radius: 12px;
  background: linear-gradient(135deg, #F5F9FD 0%, #EBF3FB 100%);
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}
.next-action__stages {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.next-action__stage {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid rgba(8, 120, 190, 0.15);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.next-action__stage span {
  color: #7A93B0;
  font-size: 11px;
  font-weight: 600;
}
.next-action__stage b {
  color: #0F1E33;
  font-size: 14px;
  font-weight: 700;
}
.next-action__stage--next {
  background: #E3F0FA;
  border-color: rgba(8, 120, 190, 0.30);
}
.next-action__stage--next b { color: #0878BE; }
.next-action__arrow {
  color: #0878BE;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.next-action__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.next-action__note {
  margin: 0;
  color: #405876;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.next-action__btn {
  min-width: 180px;
  white-space: nowrap;
}

/* Clickable workflow stepper */
.wf-stepper--clickable .wf-stepper__step {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px 6px;
  border-radius: 8px;
  text-align: right;
  transition: background 0.12s, transform 0.12s;
  font-family: inherit;
}
.wf-stepper--clickable .wf-stepper__step:hover {
  background: rgba(8, 120, 190, 0.06);
  transform: translateY(-1px);
}
.wf-stepper--clickable .wf-stepper__step:focus-visible {
  outline: 2px solid #0878BE;
  outline-offset: 2px;
}
.wf-stepper__hint {
  margin-top: 10px;
  padding: 6px 10px;
  color: #7A93B0;
  font-size: 11.5px;
  background: rgba(148,163,184,0.08);
  border-radius: 6px;
  display: inline-block;
}

/* Confirmation dialog */
.confirm-dialog { display: grid; gap: 14px; }
.confirm-body {
  margin: 0;
  color: #0F1E33;
  font-size: 14px;
  line-height: 1.6;
}
.confirm-facts {
  background: #F8FAFC;
  border: 1px solid rgba(8, 120, 190, 0.10);
  border-radius: 10px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.confirm-line {
  font-size: 13px;
  color: #405876;
}
.confirm-line b { color: #0F1E33; }
.confirm-line--warn {
  color: #C22929;
}
.confirm-line--warn b { color: #C22929; }
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Success dialog */
.success-dialog {
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 6px 4px;
}
.success-dialog__icon {
  color: #16845B;
  background: #E9F6EC;
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
}
.success-dialog__body {
  margin: 0;
  color: #0F1E33;
  font-size: 14px;
  line-height: 1.6;
}
.success-dialog__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

/* Rich action cards (action buttons with explanations) */
.actions--stack {
  display: grid;
  gap: 10px;
}
.action-card {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #E1E7EE;
  border-radius: 10px;
  transition: border-color 0.12s;
}
.action-card:hover { border-color: rgba(8, 120, 190, 0.30); }
.action-card--primary {
  border-color: rgba(8, 120, 190, 0.30);
  background: #F5F9FD;
}
.action-card--danger { border-color: rgba(194, 41, 41, 0.24); background: #FFF5F5; }
.action-card--wait   { background: #F8FAFC; opacity: 0.85; }

.action-card__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #E3F0FA;
  color: #0878BE;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.action-card--danger .action-card__icon {
  background: #FCE8E8;
  color: #C22929;
}
.action-card--wait .action-card__icon {
  background: #F1F5F9;
  color: #94A3B8;
}
.action-card__body { min-width: 0; }
.action-card__title {
  font-size: 14px;
  font-weight: 700;
  color: #0F1E33;
  margin-bottom: 3px;
}
.action-card__desc {
  font-size: 12.5px;
  color: #405876;
  line-height: 1.5;
}
.action-card .btn {
  white-space: nowrap;
}
.action-card--danger .btn {
  color: #C22929;
  border-color: rgba(194, 41, 41, 0.35);
}
.action-card--wait .btn {
  color: #94A3B8;
  border-color: #E1E7EE;
  cursor: default;
}

@media (max-width: 640px) {
  .next-action__stages { gap: 8px; }
  .next-action__arrow { transform: rotate(90deg); align-self: center; }
  .action-card { grid-template-columns: 36px 1fr; }
  .action-card > .btn { grid-column: 1 / -1; }
}

/* ─── Workflow accordion (inside Request Details) ─────────────────────── */
.detail-section--workflow {
  background: #F8FAFC;
  border-color: rgba(8,120,190,0.14);
}
.wf-accordion {
  display: grid;
  gap: 8px;
}
.wf-panel {
  background: #fff;
  border: 1px solid #E1E7EE;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wf-panel[open] { border-color: rgba(8,120,190,0.30); box-shadow: 0 4px 12px rgba(8,120,190,0.06); }
.wf-panel--current { border-color: rgba(8,120,190,0.35); background: #F5F9FD; }
.wf-panel--current[open] { box-shadow: 0 6px 18px rgba(8,120,190,0.10); }
.wf-panel--done    { background: #FAFDFB; }
.wf-panel--locked  { opacity: 0.75; }
.wf-panel--skipped { opacity: 0.55; background: #FAFAFF; }

.wf-panel__head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 32px 1fr auto 16px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  user-select: none;
}
.wf-panel__head::-webkit-details-marker { display: none; }
.wf-panel__head:hover { background: rgba(8,120,190,0.03); }

.wf-panel__step {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.wf-panel__step--done    { background: #E9F6EC; color: #16845B; }
.wf-panel__step--current { background: #0878BE; color: #fff; box-shadow: 0 0 0 3px rgba(8,120,190,0.20); }
.wf-panel__step--locked  { background: #F1F5F9; color: #94A3B8; }
.wf-panel__step--skipped { background: #F0EAFB; color: #B39DDB; }

.wf-panel__title { min-width: 0; }
.wf-panel__title b {
  display: block;
  font-size: 14px; font-weight: 700; color: #0F1E33;
  margin-bottom: 2px;
}
.wf-panel__title small { color: #7A93B0; font-size: 12px; }

.wf-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  white-space: nowrap;
}
.wf-badge--done    { background: #E9F6EC; color: #16845B; }
.wf-badge--current { background: #0878BE; color: #fff; }
.wf-badge--locked  { background: #F1F5F9; color: #94A3B8; }
.wf-badge--skipped { background: #F0EAFB; color: #6E44B8; }

.wf-panel__chevron {
  width: 16px; height: 16px;
  border-inline-end: 2px solid #94A3B8;
  border-bottom: 2px solid #94A3B8;
  transform: rotate(-45deg);
  transition: transform 0.2s;
  margin-top: -4px;
}
.wf-panel[open] .wf-panel__chevron {
  transform: rotate(45deg);
  margin-top: 4px;
}

.wf-panel__body {
  padding: 4px 14px 16px;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: 4px;
}
.wf-panel__note {
  margin: 8px 0 0;
  color: #7A93B0;
  font-size: 13px;
  line-height: 1.6;
  padding: 10px 12px;
  background: rgba(148,163,184,0.08);
  border-radius: 8px;
}

.wf-summary-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 8px;
  margin-top: 8px;
}
.wf-summary-block > div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px;
}
.wf-summary-block > div > span { color: #7A93B0; }
.wf-summary-block > div > b    { color: #0F1E33; font-weight: 700; }
.wf-summary-block__actions {
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end; gap: 8px;
  padding-top: 8px; margin-top: 4px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  align-items: center;
}

.wf-inline-action {
  padding: 12px 14px;
  background: #F5F9FD;
  border: 1px solid rgba(8,120,190,0.15);
  border-radius: 8px;
  margin-top: 8px;
  display: grid; gap: 10px;
}
.wf-inline-action p {
  margin: 0;
  color: #405876;
  font-size: 13px;
  line-height: 1.6;
}

.wf-tag {
  display: inline-flex; align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.wf-tag--done { background: #E9F6EC; color: #16845B; }
.wf-tag--warn { background: #FFF3D8; color: #C78100; }
.wf-tag--info { background: #E3F0FA; color: #0878BE; }

@media (max-width: 500px) {
  .wf-summary-block { grid-template-columns: 1fr; }
}

/* ─── External Customer Portal ─────────────────────── */

/* Outstanding invoices alert */
.ext-alert {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFF3D8 100%);
  border: 1px solid rgba(194, 41, 41, 0.24);
  border-inline-start: 4px solid #E23B3B;
  border-radius: 12px;
  margin-top: 14px;
}
.ext-alert__body b { display: block; font-size: 15px; color: #C22929; margin-bottom: 2px; }
.ext-alert__body p { margin: 0; color: #7A3535; font-size: 13px; }
.ext-alert__body p b { display: inline; color: #C22929; font-size: 15px; font-weight: 800; }

/* Stat pill (compact summary chip) */
.stat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: #FFF3D8; color: #C78100;
  border: 1px solid rgba(199, 129, 0, 0.30);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
}
.stat-pill b { color: #C22929; font-weight: 800; font-size: 13px; }

/* Payment modal */
.pay-modal { display: grid; gap: 12px; }
.pay-modal__amount {
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 8px;
}
.pay-modal__amount span {
  display: block; color: #7A93B0; font-size: 13px; margin-bottom: 6px;
}
.pay-modal__amount strong {
  display: block; font-size: 32px; font-weight: 800; color: #0878BE;
}

.pay-methods { display: grid; gap: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #E1E7EE;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.pay-method:hover { border-color: #0878BE; background: #F5F9FD; }
.pay-method:has(input:checked) { border-color: #0878BE; background: #E3F0FA; }
.pay-method input[type="radio"] {
  accent-color: #0878BE;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.pay-method > div { flex: 1; }
.pay-method b { display: block; color: #0F1E33; font-size: 13.5px; margin-bottom: 2px; }
.pay-method small { color: #7A93B0; font-size: 11.5px; }

/* Payment coming-soon block */
.pay-coming-soon {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, #F5F9FD 0%, #FFF3D8 100%);
  border: 1px solid rgba(199, 129, 0, 0.24);
  border-radius: 12px;
  display: grid; gap: 10px; justify-items: center;
}
.pay-coming-soon__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #fff;
  color: #C78100;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(199, 129, 0, 0.15);
}
.pay-coming-soon b {
  color: #0F1E33; font-size: 16px; font-weight: 800;
}
.pay-coming-soon p {
  margin: 0; color: #405876; font-size: 13px; line-height: 1.6;
  max-width: 400px;
}

/* ─── Delivery method (wizard step 4) ─────────────────────── */

.delivery-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}
@media (max-width: 600px) {
  .delivery-methods { grid-template-columns: 1fr; }
}
.delivery-method {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #E1E7EE;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, transform 0.06s;
  position: relative;
}
.delivery-method:hover { border-color: rgba(8,120,190,0.30); background: #F5F9FD; }
.delivery-method.is-selected {
  border-color: #0878BE; background: #E3F0FA;
  box-shadow: 0 4px 12px rgba(8,120,190,0.10);
}
.delivery-method input[type="radio"] {
  appearance: none;
  width: 18px; height: 18px;
  border: 2px solid #94A3B8; border-radius: 50%;
  flex-shrink: 0; cursor: pointer;
  position: relative;
}
.delivery-method input[type="radio"]:checked {
  border-color: #0878BE;
}
.delivery-method input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  border-radius: 50%; background: #0878BE;
}
.delivery-method__icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #F1F5F9; color: #0878BE;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.delivery-method.is-selected .delivery-method__icon {
  background: #0878BE; color: #fff;
}
.delivery-method__body { flex: 1; min-width: 0; }
.delivery-method__body b { display: block; color: #0F1E33; font-size: 14px; margin-bottom: 3px; }
.delivery-method__body small { color: #7A93B0; font-size: 11.5px; line-height: 1.4; display: block; }

/* Pickup info block */
.pickup-info {
  padding: 16px 18px;
  background: #F8FAFC;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 10px;
  margin-top: 14px;
}
.pickup-info__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.pickup-info__row span { color: #7A93B0; }
.pickup-info__row b { color: #0F1E33; text-align: right; }
.pickup-info__row + .pickup-info__row { border-top: 1px dashed rgba(0,0,0,0.06); }

/* Delivery form */
.delivery-form { margin-top: 14px; }

.location-search {
  position: relative;
  display: flex; gap: 8px; align-items: stretch;
  margin-bottom: 12px;
}
.location-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #E1E7EE;
  border-radius: 10px;
  font-family: inherit; font-size: 13.5px;
  background: #fff;
}
.location-search input:focus {
  outline: none; border-color: #0878BE;
}
.loc-btn {
  display: inline-flex !important; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 9px 14px !important;
}
.autocomplete-suggestions {
  position: absolute;
  top: calc(100% + 6px); right: 0; left: 0;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.20);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.10);
  z-index: 10;
  overflow: hidden;
}
.autocomplete-empty {
  padding: 14px 16px;
  color: #7A93B0; font-size: 13px; text-align: center;
}
.autocomplete-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: right;
  font-family: inherit;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.10s;
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover { background: #F5F9FD; }
.autocomplete-item__icon {
  width: 30px; height: 30px;
  background: #E3F0FA; color: #0878BE;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}
.autocomplete-item__body { flex: 1; min-width: 0; }
.autocomplete-item__body b { display: block; color: #0F1E33; font-size: 13px; margin-bottom: 2px; }
.autocomplete-item__body small { color: #7A93B0; font-size: 11px; }

/* Mock map preview — styled to feel like a real map */
.map-preview {
  position: relative;
  height: 240px;
  background: #E8EEF3;
  border: 1.5px solid #C8D5E1;
  border-radius: 12px;
  overflow: hidden;
  cursor: crosshair;
  margin-bottom: 8px;
}
.map-preview.has-pin { cursor: crosshair; }

/* Background — greenery blobs + water body */
.map-preview::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 15% 25%, #C9E4CA 0%, #C9E4CA 60%, transparent 62%),
    radial-gradient(ellipse 30% 25% at 85% 75%, #C9E4CA 0%, #C9E4CA 60%, transparent 62%),
    radial-gradient(ellipse 25% 20% at 75% 20%, #B8D8E8 0%, #B8D8E8 55%, transparent 58%),
    #E8EEF3;
  pointer-events: none;
}

/* Street grid — visible cross-hatch */
.map-preview__grid {
  position: absolute; inset: 0;
  background-image:
    /* main thick avenues */
    linear-gradient(rgba(255,255,255,0.85) 3px, transparent 3px),
    linear-gradient(90deg, rgba(255,255,255,0.85) 3px, transparent 3px),
    /* secondary streets */
    linear-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.55) 1px, transparent 1px);
  background-size:
    120px 120px,
    120px 120px,
    30px 30px,
    30px 30px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

/* Diagonal highway accent */
.map-preview::after {
  content: '';
  position: absolute;
  left: -10%; top: 55%;
  width: 130%; height: 6px;
  background: rgba(255,255,255,0.90);
  transform: rotate(-8deg);
  transform-origin: center;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}
.map-preview__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  display: none;
  align-items: center; justify-content: center;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(8,120,190,0.30));
}
.map-preview__hint {
  position: absolute;
  bottom: 8px; left: 12px; right: 12px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(8,120,190,0.14);
  border-radius: 8px;
  font-size: 11.5px; color: #405876;
  text-align: center;
  z-index: 3;
  backdrop-filter: blur(3px);
}

.delivery-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #FCE8E8; color: #C22929;
  border: 1px solid rgba(194,41,41,0.30);
  border-radius: 8px;
  font-size: 13px;
}

/* Leaflet mount */
.map-wrap {
  position: relative;
  margin-bottom: 8px;
}
.leaflet-mount {
  height: 280px;
  border: 1.5px solid #C8D5E1;
  border-radius: 12px;
  overflow: hidden;
  background: #E8EEF3;
}
.leaflet-mount .leaflet-control-container { z-index: 400; }
.map-hint {
  padding: 6px 12px;
  color: #7A93B0; font-size: 11.5px;
  text-align: center;
}
.detail-delivery__map-preview.midad-mini-map {
  height: 180px;
  margin-top: 10px;
  border: 1px solid #C8D5E1;
  border-radius: 10px;
  overflow: hidden;
}

/* Pickup / Delivery chip on order rows */
.delivery-chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700;
  border: 1px solid transparent;
  margin-inline-start: 6px;
  vertical-align: middle;
  white-space: nowrap;
}
.delivery-chip--pickup   { background: #E9F6EC; color: #16845B; border-color: rgba(22,132,91,0.24); }
.delivery-chip--delivery { background: #E3F0FA; color: #0878BE; border-color: rgba(8,120,190,0.24); }

/* Review step — delivery block */
.review-delivery {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(8,120,190,0.14);
  background: #F5F9FD;
}
.review-delivery--pickup { border-color: rgba(22,132,91,0.20); background: #F1FAF3; }
.review-delivery__head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.review-delivery__head b { color: #0F1E33; font-size: 14px; }
.review-delivery p {
  margin: 0 0 4px;
  color: #405876; font-size: 13px;
}
.review-delivery small { color: #7A93B0; font-size: 11.5px; }
.review-delivery__rows {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
}
.review-delivery__rows > div {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px;
}
.review-delivery__rows > div > span { color: #7A93B0; }
.review-delivery__rows > div > b { color: #0F1E33; }
@media (max-width: 500px) { .review-delivery__rows { grid-template-columns: 1fr; } }

/* Detail (internal view) — delivery block */
.detail-delivery {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(8,120,190,0.14);
  background: #F8FAFC;
}
.detail-delivery--pickup { border-color: rgba(22,132,91,0.20); background: #F1FAF3; }
.detail-delivery__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.20);
  color: #0878BE;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 700;
}
.detail-delivery--pickup .detail-delivery__badge {
  border-color: rgba(22,132,91,0.30);
  color: #16845B;
}
.detail-delivery__map-preview {
  position: relative;
  height: 140px;
  margin-top: 10px;
  background: #F1F5F9;
  border: 1px solid #E1E7EE;
  border-radius: 10px;
  overflow: hidden;
}
.detail-delivery__map-preview .map-preview__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(8,120,190,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,120,190,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}
.detail-delivery__map-preview .map-preview__pin {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -100%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  filter: drop-shadow(0 4px 6px rgba(8,120,190,0.30));
}

/* ==============================================================
   PRODUCTION MODULE — Redesign
   ============================================================== */

.prod-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.prod-kpi {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 12px;
  border-inline-start: 3px solid #94A3B8;
}
.prod-kpi--brand    { border-inline-start-color: #0878BE; }
.prod-kpi--info     { border-inline-start-color: #0878BE; }
.prod-kpi--progress { border-inline-start-color: #C78100; }
.prod-kpi--danger   { border-inline-start-color: #E23B3B; background: #FFF5F5; }
.prod-kpi--success  { border-inline-start-color: #16845B; }
.prod-kpi--warn     { border-inline-start-color: #C78100; background: #FFFBF0; }
.prod-kpi__label { color: #7A93B0; font-size: 12px; margin-bottom: 4px; }
.prod-kpi__value { color: #0F1E33; font-size: 26px; font-weight: 800; line-height: 1; }
.prod-kpi__suffix { color: #405876; font-size: 11.5px; margin-top: 4px; }

.prod-charts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
@media (max-width: 900px) { .prod-charts { grid-template-columns: 1fr; } }
.prod-chart-card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 12px;
}
.prod-chart-card h3 { margin: 0 0 12px; font-size: 14px; color: #0F1E33; }

.donut-wrap { display: flex; align-items: center; gap: 16px; }
.donut {
  position: relative;
  width: 130px; height: 130px;
  border-radius: 50%;
  flex-shrink: 0;
}
.donut__center {
  position: absolute; inset: 22%;
  background: #fff; border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
}
.donut__center b { display: block; font-size: 22px; font-weight: 800; color: #0F1E33; }
.donut__center small { color: #7A93B0; font-size: 11px; }
.donut-legend { flex: 1; display: grid; gap: 6px; }
.donut-legend__row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #405876;
}
.donut-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend__row b { margin-inline-start: auto; color: #0F1E33; }

.dept-loads { display: grid; gap: 12px; }
.dept-load__row { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 4px; }
.dept-load__row span { color: #405876; }
.dept-load__row b { color: #0F1E33; }

.bar-chart {
  display: grid; grid-template-columns: repeat(6, 1fr);
  align-items: end; height: 130px;
  padding: 4px 0; gap: 8px;
}
.bar-chart__col {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; height: 100%;
}
.bar-chart__bar {
  width: 100%; max-width: 32px;
  background: linear-gradient(180deg, #0878BE 0%, #08A4E8 100%);
  border-radius: 6px 6px 0 0;
  position: relative; min-height: 20px;
}
.bar-chart__bar span {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 700; color: #0878BE;
}
.bar-chart__label { color: #7A93B0; font-size: 11px; }

.dept-chip {
  display: inline-flex; padding: 2px 8px;
  background: #E3F0FA; color: #0878BE;
  border-radius: 999px;
  font-size: 9.5px; font-weight: 700;
  border: 1px solid rgba(8,120,190,0.20);
}

/* Current status card in WO details */
.detail-section--current {
  background: linear-gradient(135deg, #F5F9FD 0%, #EBF3FB 100%);
  border-color: rgba(8,120,190,0.20);
}
.wo-current-status {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 20px;
}
@media (max-width: 640px) { .wo-current-status { grid-template-columns: 1fr; } }
.wo-current-status__cell {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid rgba(8,120,190,0.10);
}
.wo-current-status__cell span { color: #7A93B0; font-size: 11.5px; }
.wo-current-status__cell b { color: #0F1E33; font-size: 13px; }
.wo-current-status__cell--progress { grid-column: 1 / -1; }
.wo-current-status__cell--progress .bar { flex: 1; margin: 4px 0; }

/* Task distribution table */
.task-dist-table {
  overflow-x: auto;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 10px;
}
.task-dist-table table { width: 100%; border-collapse: collapse; }
.task-dist-table th, .task-dist-table td {
  padding: 10px 12px; text-align: right;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 12.5px;
}
.task-dist-table thead th { background: #F8FAFC; font-weight: 700; color: #405876; }
.task-emp-select, .task-prio-select {
  padding: 6px 10px; font-family: inherit; font-size: 12.5px;
  border: 1px solid #E1E7EE; border-radius: 6px;
  background: #fff; min-width: 180px;
}
.task-prio-select { min-width: 100px; }

/* Live production tracker */
.live-tracker {
  list-style: none; margin: 0; padding: 0;
  position: relative;
}
.live-tracker::before {
  content: ''; position: absolute;
  top: 12px; bottom: 12px; inset-inline-end: 15px;
  width: 2px; background: #E1E7EE;
}
.live-tracker__step {
  position: relative;
  padding: 8px 40px 8px 0;
  display: flex; align-items: flex-start; gap: 12px;
}
.live-tracker__marker {
  position: absolute; inset-inline-end: 4px;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: #F1F5F9; color: #94A3B8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #E1E7EE;
  z-index: 2;
}
.live-tracker__step--done .live-tracker__marker    { background: #16845B; color: #fff; }
.live-tracker__step--current .live-tracker__marker { background: #0878BE; color: #fff; box-shadow: 0 0 0 3px rgba(8,120,190,0.30); }
.live-tracker__step--pending .live-tracker__marker { background: #fff; color: #94A3B8; }
.live-tracker__body { flex: 1; }
.live-tracker__title { font-weight: 700; color: #0F1E33; font-size: 13.5px; margin-bottom: 3px; }
.live-tracker__meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  color: #7A93B0; font-size: 11.5px;
}
.live-tracker__step--current .live-tracker__title { color: #0878BE; }
.live-tracker__note {
  margin-top: 4px; padding: 6px 10px;
  background: #F8FAFC;
  border-radius: 6px;
  font-size: 12px; color: #405876;
}

/* Materials table */
.wo-materials table { width: 100%; border-collapse: collapse; }
.wo-materials th, .wo-materials td {
  padding: 10px 12px; text-align: right;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 12.5px;
}
.wo-materials thead th { background: #F8FAFC; font-weight: 700; color: #405876; }

/* Execution timeline */
.exec-timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 4px;
}
.exec-timeline li {
  display: grid; grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.10s;
}
.exec-timeline li:hover { background: #F8FAFC; }
.exec-timeline__time {
  color: #0878BE; font-weight: 700;
  font-size: 12.5px; padding-top: 2px;
}
.exec-timeline__body b { display: block; color: #0F1E33; font-size: 13px; }
.exec-timeline__body small { color: #7A93B0; font-size: 11.5px; }

/* Delivery block in WO */
.wo-delivery {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 500px) { .wo-delivery { grid-template-columns: 1fr; } }
.wo-delivery__method, .wo-delivery__status {
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 10px;
}
.wo-delivery__method span, .wo-delivery__status span {
  display: block; color: #7A93B0; font-size: 11.5px; margin-bottom: 4px;
}
.wo-delivery__method b, .wo-delivery__status b { color: #0F1E33; font-size: 14px; }
.wo-delivery__details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 10px;
}
@media (max-width: 500px) { .wo-delivery__details { grid-template-columns: 1fr; } }
.wo-delivery__details > div { display: flex; justify-content: space-between; font-size: 12.5px; gap: 10px; }
.wo-delivery__details span { color: #7A93B0; }
.wo-delivery__details b { color: #0F1E33; text-align: end; }

/* Equipment grid */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.equip-card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 12px;
  border-inline-start: 3px solid #16845B;
  display: flex; flex-direction: column; gap: 12px;
}
.equip-card--maintenance { border-inline-start-color: #C78100; background: #FFFBF0; }
.equip-card--idle        { border-inline-start-color: #94A3B8; }
.equip-card__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.equip-card__head h3 { margin: 0; font-size: 14px; color: #0F1E33; }
.equip-card__head small { color: #7A93B0; font-size: 11.5px; }
.equip-card__body { display: grid; gap: 6px; }
.equip-card__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; padding: 4px 0;
}
.equip-card__row span { color: #7A93B0; }
.equip-card__row b { color: #0F1E33; text-align: end; }
.equip-card__row a { color: #0878BE; text-decoration: none; }
.equip-card__row a:hover { text-decoration: underline; }
.equip-card__actions {
  display: flex; gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

/* Compact table for customer/requester/approver views (many columns) */
.panel.table table th,
.panel.table table td {
  font-size: 12px;
  padding: 8px 10px;
}
.panel.table table th { font-weight: 700; color: #405876; }
.panel.table td.col-delivery {
  white-space: nowrap;
  text-align: center;
}
.panel.table td.col-delivery .delivery-chip {
  margin-inline-start: 0;
}
/* Force table columns to be no wider than needed */
.panel.table table { table-layout: auto; }
.panel.table table td b {
  font-size: 12px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   EXECUTIVE MODULE — Premium enterprise ERP style
   ═══════════════════════════════════════════════════════════════ */

.ex-ph {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(8,120,190,0.04), rgba(15,30,51,0.02));
  border-radius: 16px;
  border: 1px solid rgba(8,120,190,0.08);
  margin-bottom: 20px;
}
.ex-ph h2 { font-size: 22px; margin: 0 0 4px; color: #0F1E33; font-weight: 800; }
.ex-ph p  { margin: 0; color: #4A6178; font-size: 13.5px; }
.ex-ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ex-ph-actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* KPI TILES */
.ex-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ex-kpis--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1400px) { .ex-kpis--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) { .ex-kpis      { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ex-kpis, .ex-kpis--5 { grid-template-columns: 1fr; } }

.ex-kpi {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(8,120,190,0.10);
  box-shadow: 0 4px 14px rgba(8,120,190,0.05);
  transition: transform .18s, box-shadow .18s;
  overflow: hidden;
  min-height: 92px;
}
.ex-kpi::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
}
.ex-kpi:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8,120,190,0.10); }
.ex-kpi__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.ex-kpi__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ex-kpi__label {
  font-size: 12.5px;
  color: #7A93B0;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}
.ex-kpi__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.ex-kpi__value {
  font-size: 24px;
  font-weight: 800;
  color: #0F1E33;
  line-height: 1.15;
  white-space: nowrap;
}
.ex-kpi__suffix {
  font-size: 12px;
  font-weight: 600;
  color: #7A93B0;
  margin-inline-start: 2px;
}
.ex-kpi__trend {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.ex-kpi__trend.up   { color: #2E7D32; background: rgba(46,125,50,0.10); }
.ex-kpi__trend.down { color: #C22929; background: rgba(194,41,41,0.10); }

.ex-kpi--brand::before    { background: #0878BE; }
.ex-kpi--brand    .ex-kpi__icon { background: rgba(8,120,190,0.10);  color: #0878BE; }
.ex-kpi--progress::before { background: #4A9EDB; }
.ex-kpi--progress .ex-kpi__icon { background: rgba(74,158,219,0.10); color: #4A9EDB; }
.ex-kpi--danger::before   { background: #C22929; }
.ex-kpi--danger   .ex-kpi__icon { background: rgba(194,41,41,0.10);  color: #C22929; }
.ex-kpi--warn::before     { background: #FFB300; }
.ex-kpi--warn     .ex-kpi__icon { background: rgba(255,179,0,0.10);   color: #FFB300; }
.ex-kpi--success::before  { background: #2E7D32; }
.ex-kpi--success  .ex-kpi__icon { background: rgba(46,125,50,0.10);   color: #2E7D32; }
.ex-kpi--info::before     { background: #7C4DFF; }
.ex-kpi--info     .ex-kpi__icon { background: rgba(124,77,255,0.10);  color: #7C4DFF; }

/* CHART CARDS */
.ex-chart-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.ex-chart-grid--2   { grid-template-columns: 1fr 1fr; }
.ex-chart-grid--3-2 { grid-template-columns: 2fr 1fr; }
@media (max-width: 1000px) { .ex-chart-grid--2, .ex-chart-grid--3-2 { grid-template-columns: 1fr; } }

.ex-chart-card {
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 4px 14px rgba(8,120,190,0.04);
  backdrop-filter: blur(6px);
}
.ex-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.ex-chart-head h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: #0F1E33;
}
.ex-chart-hint { font-size: 11.5px; color: #7A93B0; }
.ex-see-all { font-size: 12px; color: #0878BE; text-decoration: none; font-weight: 600; }

/* SVG CHARTS */
.ex-donut { width: 180px; height: 180px; flex-shrink: 0; }
.ex-donut__val { font-size: 26px; font-weight: 800; fill: #0F1E33; }
.ex-donut__lbl { font-size: 10.5px; fill: #7A93B0; font-weight: 600; }
.ex-line { width: 100%; height: auto; display: block; }
.ex-axis { font-size: 10px; fill: #7A93B0; }

.ex-chart-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.ex-legend {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}
.ex-legend--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.ex-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #4A6178;
}
.ex-legend li b { margin-inline-start: auto; color: #0F1E33; font-weight: 700; }
.ex-legend__dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* HORIZONTAL BARS */
.ex-hbar {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ex-hbar li {
  display: grid;
  grid-template-columns: 1fr 3fr auto;
  gap: 10px;
  align-items: center;
}
.ex-hbar__label {
  font-size: 12.5px;
  color: #4A6178;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-hbar__track {
  background: rgba(8,120,190,0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.ex-hbar__track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width .3s;
}
.ex-hbar__value {
  font-size: 12.5px;
  font-weight: 700;
  color: #0F1E33;
  white-space: nowrap;
}

/* TIMELINE */
.ex-timeline {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ex-timeline__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background .18s;
}
.ex-timeline__item:hover { background: rgba(8,120,190,0.04); }
.ex-timeline__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(8,120,190,0.08);
}
.ex-timeline__title { font-size: 13px; font-weight: 700; color: #0F1E33; }
.ex-timeline__desc  { font-size: 11.5px; color: #7A93B0; margin-top: 2px; }
.ex-timeline__time  { font-size: 11px; color: #7A93B0; white-space: nowrap; }

/* QUICK ACTIONS */
.ex-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.ex-quick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(8,120,190,0.04), rgba(255,255,255,0));
  border: 1px solid rgba(8,120,190,0.08);
  border-radius: 14px;
  text-decoration: none;
  color: #0F1E33;
  transition: all .18s;
}
.ex-quick:hover {
  background: linear-gradient(135deg, rgba(8,120,190,0.08), rgba(255,255,255,0));
  border-color: rgba(8,120,190,0.20);
  transform: translateY(-1px);
}
.ex-quick__icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(8,120,190,0.10);
  color: #0878BE;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ex-quick b     { font-size: 13px; font-weight: 700; }
.ex-quick small { font-size: 11px; color: #7A93B0; }

/* SETTINGS GRID */
.ex-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .ex-settings-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .ex-settings-grid { grid-template-columns: 1fr; } }

.ex-settings-card {
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(8,120,190,0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ex-settings-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ex-settings-card__head h3 { margin: 0; font-size: 14.5px; font-weight: 700; color: #0F1E33; }
.ex-settings-card__icon {
  width: 36px; height: 36px;
  background: rgba(8,120,190,0.10);
  color: #0878BE;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ex-settings-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ex-settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(8,120,190,0.10);
  font-size: 12.5px;
}
.ex-settings-row:last-child { border-bottom: 0; }
.ex-settings-row span { color: #7A93B0; }
.ex-settings-row b     { color: #0F1E33; font-weight: 700; }
.ex-settings-card > .btn { align-self: flex-end; }

/* ROLE CARDS */
.ex-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.ex-role-card {
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(8,120,190,0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ex-role-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0; top: 0; bottom: 0;
  width: 4px;
}
.ex-role-card--brand::before    { background: #0878BE; }
.ex-role-card--info::before     { background: #4A9EDB; }
.ex-role-card--progress::before { background: #7C4DFF; }
.ex-role-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ex-role-card__head h3 { margin: 0; font-size: 14px; font-weight: 700; color: #0F1E33; }
.ex-role-card__desc { font-size: 12px; color: #7A93B0; margin: 0; line-height: 1.5; }
.ex-role-card__meta { font-size: 11.5px; color: #4A6178; font-weight: 600; }

/* PERMISSION MATRIX */
.ex-perm-matrix {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid rgba(8,120,190,0.10);
}
.ex-perm-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}
.ex-perm-matrix th, .ex-perm-matrix td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid rgba(8,120,190,0.06);
  border-inline-end: 1px solid rgba(8,120,190,0.06);
}
.ex-perm-matrix thead th {
  background: rgba(8,120,190,0.04);
  font-weight: 700;
  color: #0F1E33;
}
.ex-perm-matrix__role { border-inline-end: 2px solid rgba(8,120,190,0.20) !important; }
.ex-perm-matrix__mod  {
  text-align: right;
  padding-inline-start: 12px;
  padding-inline-end: 14px;
  background: rgba(8,120,190,0.03);
  min-width: 110px;
  font-size: 12px;
}
.ex-perm-matrix__perm {
  font-size: 10px;
  color: #7A93B0;
  font-weight: 600;
  min-width: 44px;
}
.ex-perm-matrix td:nth-child(6n+1) { border-inline-end: 2px solid rgba(8,120,190,0.15); }
.ex-perm-matrix input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: #0878BE;
  cursor: pointer;
}

/* STAGE SELECT (production manager UI in WO details) */
.wo-current-status__cell--edit {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wo-stage-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(8,120,190,0.20);
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
  color: #0F1E33;
  font-family: inherit;
  cursor: pointer;
}
.wo-stage-select:focus {
  outline: none;
  border-color: #0878BE;
  box-shadow: 0 0 0 3px rgba(8,120,190,0.15);
}

/* COMING SOON PLACEHOLDER */
.coming-soon-card {
  background: #fff;
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 18px;
  padding: 60px 32px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(8,120,190,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 620px;
  margin: 20px auto;
}
.coming-soon-card__icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(8,120,190,0.10), rgba(74,158,219,0.05));
  color: #0878BE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 6px 18px rgba(8,120,190,0.10);
}
.coming-soon-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #0F1E33;
}
.coming-soon-card p {
  margin: 0;
  color: #4A6178;
  font-size: 14px;
  line-height: 1.7;
  max-width: 460px;
}
.coming-soon-card__badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,179,0,0.10);
  color: #B27300;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* ═══════════════════════════════════════════════════════════════
   COMPACT LOGIN + ROLE PICKER (opens as modal from landing)
   ═══════════════════════════════════════════════════════════════ */
.mini-login__sub {
  font-size: 13px;
  color: #0878BE;
  font-weight: 600;
  margin: -4px 0 14px;
  text-align: right;
}
.mini-login label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #4A6178;
}
.mini-login label input[type="email"],
.mini-login label input[type="password"] {
  padding: 12px 14px;
  border: 1px solid rgba(8,120,190,0.20);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #0F1E33;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.mini-login label input:focus {
  outline: none;
  border-color: #0878BE;
  box-shadow: 0 0 0 3px rgba(8,120,190,0.12);
}
.mini-login__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-top: 2px;
}
.mini-login__row a {
  color: #0878BE;
  text-decoration: none;
  font-weight: 600;
}
.mini-login__row a:hover { text-decoration: underline; }
.mini-login__remember {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #7A93B0;
  font-weight: 500 !important;
}
.mini-login__submit {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}
.mini-login__hint {
  text-align: center;
  font-size: 12px;
  color: #7A93B0;
  margin: 6px 0 0;
}

/* Role picker cards inside modal */
.role-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (max-width: 640px) {
  .role-picker-grid { grid-template-columns: 1fr; }
}
.role-picker-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(8,120,190,0.03), rgba(255,255,255,0));
  border: 1px solid rgba(8,120,190,0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: all .18s;
  text-align: right;
  font-family: inherit;
}
.role-picker-card:hover {
  background: linear-gradient(135deg, rgba(8,120,190,0.08), rgba(255,255,255,0));
  border-color: rgba(8,120,190,0.30);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8,120,190,0.08);
}
.role-picker-card strong {
  font-size: 14px;
  font-weight: 700;
  color: #0F1E33;
}
.role-picker-card small {
  font-size: 11.5px;
  color: #7A93B0;
  line-height: 1.5;
}
