:root {
  --lh-sidebar-w: 248px;
  --lh-navy: #0f2a44;
  --lh-navy-2: #16395c;
  --lh-accent: #1e88e5;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-primary: #1e6fd9;
  --bs-primary-rgb: 30, 111, 217;
  --bs-body-bg: #f4f6f9;
}
body { background: var(--bs-body-bg); }

/* Sidebar */
.lh-sidebar { color: #c9d6e3; }
/* .offcanvas-lg forces a transparent background on desktop; keep the navy panel. */
.lh-sidebar, .lh-sidebar.offcanvas-lg { background-color: var(--lh-navy) !important; }
@media (max-width: 991.98px) { .lh-sidebar { width: 280px !important; } }
@media (min-width: 992px) {
  .lh-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--lh-sidebar-w); }
  .lh-main { margin-left: var(--lh-sidebar-w); }
}
.lh-sidebar .offcanvas-body { display: flex; flex-direction: column; height: 100%; padding: 0; }
.lh-brand { display: flex; align-items: center; gap: .6rem; padding: 1.25rem 1.25rem 1rem;
  color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.lh-brand .bi { color: #f6c343; font-size: 1.4rem; }
.lh-section { padding: 1rem 1.25rem .35rem; font-size: .7rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #7f97b0; }
.lh-nav a { display: flex; align-items: center; gap: .75rem; margin: 2px .75rem; padding: .6rem .75rem;
  border-radius: .5rem; color: #c9d6e3; text-decoration: none; font-weight: 500; }
.lh-nav a .bi { font-size: 1.1rem; width: 1.25rem; text-align: center; }
.lh-nav a:hover { background: var(--lh-navy-2); color: #fff; }
.lh-nav a.active { background: var(--lh-accent); color: #fff; }
.lh-user { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.lh-user .btn { color: #c9d6e3; border-color: rgba(255,255,255,.2); }
.lh-user .btn:hover { background: var(--lh-navy-2); color: #fff; }

/* Mobile top bar */
.lh-topbar { background: var(--lh-navy); color: #fff; }

/* Content */
.lh-content { padding: 1.5rem 1rem 4rem; max-width: 1200px; }
@media (min-width: 992px) { .lh-content { padding: 2rem 2.5rem 4rem; } }
.lh-page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem; margin-bottom: 1.5rem; }
.lh-page-head h1 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.lh-page-head .lh-sub { color: #6c7a89; margin-top: .15rem; }
.card { border: 0; box-shadow: 0 1px 3px rgba(16, 42, 68, .08); border-radius: .75rem; }
.card > .table-responsive, .card > .table { border-radius: .75rem; }
.table > :not(caption) > * > * { padding: .75rem 1rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
  color: #6c7a89; font-weight: 600; background: #f8fafc; }
.btn { border-radius: .5rem; font-weight: 500; }
.btn .bi { margin-right: .25rem; }
.btn-icon .bi { margin-right: 0; }

/* Stat tiles */
.lh-stat { display: flex; flex-direction: row; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: inherit;
  text-decoration: none; }
.lh-stat .lh-stat-icon { width: 48px; height: 48px; border-radius: .75rem; display: grid;
  place-items: center; font-size: 1.4rem; }
.lh-stat .lh-stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.lh-stat .lh-stat-label { color: #6c7a89; font-size: .85rem; }
a.lh-stat:hover { background: #fafbfd; }

.lh-section-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  margin: 2rem 0 .75rem; }
.lh-section-head h2 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.lh-empty { text-align: center; color: #8a97a6; padding: 2rem 1rem; }
.lh-empty .bi { display: block; font-size: 2rem; margin-bottom: .5rem; color: #b5c0cc; }

/* Passport review */
.lh-passport-img { width: 100%; max-height: 260px; object-fit: contain; background: #eef1f5;
  border-radius: .5rem; }
.card.lh-ok { border-left: 4px solid var(--bs-success); }
.card.lh-check { border-left: 4px solid var(--bs-warning); }
.card.lh-failed { border-left: 4px solid var(--bs-danger); }
h1 .badge { font-size: .8rem; vertical-align: middle; font-weight: 600; }
.table td { white-space: nowrap; }
.lh-section-head { flex-wrap: wrap; }
.btn { white-space: nowrap; }
.lh-savebar { position: sticky; bottom: 0; display: flex; gap: .5rem; padding: .75rem 0;
  background: var(--bs-body-bg); border-top: 1px solid #e3e8ee; z-index: 5; }

/* Right-to-left (Arabic) */
[dir="rtl"] { --bs-body-font-family: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif; }
@media (min-width: 992px) {
  [dir="rtl"] .lh-sidebar { inset: 0 0 0 auto; }
  [dir="rtl"] .lh-main { margin-left: 0; margin-right: var(--lh-sidebar-w); }
}
[dir="rtl"] .btn .bi { margin-right: 0; margin-left: .25rem; }
[dir="rtl"] .btn-icon .bi { margin-left: 0; }
[dir="rtl"] .bi-arrow-left, [dir="rtl"] .bi-box-arrow-right { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .card.lh-ok, [dir="rtl"] .card.lh-check, [dir="rtl"] .card.lh-failed { border-left: 0; }
[dir="rtl"] .card.lh-ok { border-right: 4px solid var(--bs-success); }
[dir="rtl"] .card.lh-check { border-right: 4px solid var(--bs-warning); }
[dir="rtl"] .card.lh-failed { border-right: 4px solid var(--bs-danger); }
/* Codes, IDs and dates stay left-to-right inside Arabic text. */
[dir="rtl"] .lh-ltr, [dir="rtl"] input[type=email], [dir="rtl"] input[type=date] { direction: ltr; unicode-bidi: isolate; }
.lh-page-head > .d-flex { flex-wrap: wrap; }
