@property --pm-glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --pm-sidebar-width: 274px;
  --pm-sidebar-collapsed-width: 84px;
  --pm-charcoal-950: #0e1015;
  --pm-charcoal-900: #14171f;
  --pm-charcoal-800: #1e232e;
  --pm-charcoal-700: #2b3240;
  --pm-teal-400: #2dd4bf;
  --pm-teal-500: #14b8a6;
  --pm-teal-600: #0d9488;
  --pm-teal-700: #0f766e;
  --pm-bg: #f3f5f8;
  --pm-surface: #ffffff;
  --pm-border: #e4e7ec;
  --pm-text: #111827;
  --pm-muted: #64748b;
  --pm-profit: #059669;
  --pm-profit-bg: #ecfdf5;
  --pm-loss: #e11d48;
  --pm-loss-bg: #fff1f2;
  --pm-warning: #d97706;
  --pm-warning-bg: #fffbeb;
}

html,
body {
  min-height: 100%;
  font-family: 'Cairo', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--pm-bg);
  color: var(--pm-text);
  font-size: 0.95rem;
}

.pm-shell {
  display: flex;
  min-height: 100vh;
}

/* RTL Charcoal Sidebar on the Right */
.pm-sidebar {
  width: var(--pm-sidebar-width);
  background: linear-gradient(180deg, var(--pm-charcoal-950) 0%, var(--pm-charcoal-900) 60%, var(--pm-charcoal-800) 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1045;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.pm-sidebar-brand {
  padding: 1.25rem 1.25rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pm-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pm-teal-500), var(--pm-teal-700));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.32);
}

.pm-nav-section {
  padding: 0.85rem 0.75rem 0.25rem;
}

.pm-nav-heading {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  padding: 0 0.75rem 0.4rem;
}

.pm-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.58rem 0.85rem;
  border-radius: 0.65rem;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: right;
}

.pm-nav-link:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  transform: translateX(-3px);
}

.pm-nav-link.active {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.22), rgba(20, 184, 166, 0.34));
  color: #ffffff;
  border: 1px solid rgba(45, 212, 191, 0.32);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.2);
}

.pm-nav-link.active::before {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 20%;
  bottom: 20%;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: var(--pm-teal-400);
  box-shadow: 0 0 12px var(--pm-teal-400);
}

.pm-main {
  flex: 1;
  min-width: 0;
  margin-right: var(--pm-sidebar-width);
  display: flex;
  flex-direction: column;
  transition: margin-right 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.pm-topbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 1rem;
  margin: 0.75rem 1.25rem 0;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 1020;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.pm-content {
  padding: 1.5rem;
  flex: 1;
}

.pm-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 16, 21, 0.62);
  backdrop-filter: blur(2px);
  z-index: 1040;
}

@media (max-width: 991.98px) {
  .pm-sidebar {
    transform: translateX(100%);
  }

  body.pm-sidebar-open .pm-sidebar {
    transform: translateX(0);
  }

  body.pm-sidebar-open .pm-sidebar-backdrop {
    display: block;
  }

  .pm-main {
    margin-right: 0;
  }

  .pm-content {
    padding: 1rem;
  }

  .pm-topbar {
    padding: 0.75rem 1rem;
  }
}

/* Cards & Bento KPIs */
.pm-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.pm-kpi-card {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  height: 100%;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  animation: pmFadeUp 0.4s ease both;
}

.pm-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.07);
}

.pm-kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pm-kpi-card:hover .pm-kpi-icon {
  transform: scale(1.08) translateY(-2px);
}

.pm-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pm-muted);
}

.pm-kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.num-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pm-num {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Project Hero Summary & Mini-KPI Tiles */
.pm-project-hero {
  background: var(--pm-surface);
  border: 1px solid var(--pm-border);
  border-radius: 1.15rem;
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.04);
  overflow: hidden;
}

.pm-project-hero-top {
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--pm-border);
}

.pm-project-avatar {
  width: 48px;
  height: 48px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.14), rgba(20, 184, 166, 0.24));
  color: var(--pm-teal-700);
  border: 1px solid rgba(13, 148, 136, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #475569;
}

.pm-meta-chip strong {
  color: #0f172a;
}

.pm-stat-tile {
  background: #ffffff;
  border: 1px solid var(--pm-border);
  border-radius: 0.95rem;
  padding: 1rem 1.15rem;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pm-stat-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pm-stat-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-stat-tile-slate {
  border-top: 3px solid #64748b;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 65%);
}

.pm-stat-tile-emerald {
  border-top: 3px solid #059669;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 65%);
}

.pm-stat-tile-rose {
  border-top: 3px solid #e11d48;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 65%);
}

.pm-stat-tile-result-profit {
  border-top: 3px solid #0d9488;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 65%);
}

.pm-stat-tile-result-loss {
  border-top: 3px solid #e11d48;
  background: linear-gradient(180deg, #fff1f2 0%, #ffffff 65%);
}

/* FinTech Project Switcher Dropdown */
.pm-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(13, 148, 136, 0.28);
  background: #ffffff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}

.pm-switcher-btn:hover,
.pm-switcher-btn[aria-expanded="true"] {
  border-color: var(--pm-teal-500);
  background: #f0fdfa;
  color: var(--pm-teal-700);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.14);
}

.pm-switcher-btn .pm-icon-chevron {
  transition: transform 0.22s ease;
}

.pm-switcher-btn[aria-expanded="true"] .pm-icon-chevron {
  transform: rotate(180deg);
}

.pm-switcher-menu {
  min-width: 240px;
  max-height: 290px;
  overflow-y: auto;
  padding: 0.4rem;
  border-radius: 0.9rem;
  border: 1px solid var(--pm-border);
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.16);
  background: #ffffff;
  margin-top: 0.35rem !important;
}

.pm-switcher-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pm-muted);
  padding: 0.35rem 0.65rem 0.45rem;
}

.pm-switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.52rem 0.72rem;
  border-radius: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.pm-switcher-item:hover {
  background-color: #f0fdfa;
  color: var(--pm-teal-700);
}

.pm-switcher-item.active {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.18));
  color: var(--pm-teal-700);
  font-weight: 700;
}

/* Animated Glow Border Primary Buttons */
@keyframes pmGlowSpin {
  0% {
    --pm-glow-angle: 0deg;
  }

  100% {
    --pm-glow-angle: 360deg;
  }
}

.pm-btn-glow {
  --pm-glow-c1: #14b8a6;
  --pm-glow-c2: #2dd4bf;
  --pm-glow-bg: var(--pm-charcoal-900);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  padding: 0.56rem 1.15rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff !important;
  text-decoration: none;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--pm-glow-bg), var(--pm-glow-bg)) padding-box,
    conic-gradient(from var(--pm-glow-angle), transparent 20%, var(--pm-glow-c1) 45%, var(--pm-glow-c2) 55%, transparent 80%) border-box;
  animation: pmGlowSpin 3.4s linear infinite;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
  transition: transform 0.18s ease, box-shadow 0.22s ease, filter 0.2s ease;
  cursor: pointer;
}

.pm-btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.34);
  color: #ffffff !important;
}

.pm-btn-glow:active {
  transform: translateY(0) scale(0.98);
}

.pm-btn-glow.pm-btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.82rem;
  border-radius: 0.65rem;
}

.pm-btn-glow-teal {
  --pm-glow-c1: #0d9488;
  --pm-glow-c2: #5eead4;
  --pm-glow-bg: #111827;
}

.pm-btn-glow-emerald {
  --pm-glow-c1: #059669;
  --pm-glow-c2: #6ee7b7;
  --pm-glow-bg: #064e3b;
}

.pm-btn-glow-rose {
  --pm-glow-c1: #e11d48;
  --pm-glow-c2: #fda4af;
  --pm-glow-bg: #4c0519;
}

.pm-btn-glow-amber {
  --pm-glow-c1: #d97706;
  --pm-glow-c2: #fcd34d;
  --pm-glow-bg: #451a03;
}

/* Expandable Table Action Buttons */
.pm-btn-expand {
  --pm-exp-color: #0d9488;
  --pm-exp-bg: rgba(13, 148, 136, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 0.55rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background-color: var(--pm-exp-bg);
  color: var(--pm-exp-color) !important;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  vertical-align: middle;
}

.pm-btn-expand .pm-btn-label {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, margin 0.24s ease;
}

.pm-btn-expand:hover,
.pm-btn-expand:focus-visible {
  background-color: var(--pm-exp-color);
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
  padding: 0 0.78rem;
}

.pm-btn-expand:hover .pm-btn-label,
.pm-btn-expand:focus-visible .pm-btn-label {
  max-width: 120px;
  opacity: 1;
  margin-right: 0.38rem;
}

@media (hover: none) {
  .pm-btn-expand {
    padding: 0 0.6rem;
  }
}

.pm-btn-expand-slate {
  --pm-exp-color: #334155;
  --pm-exp-bg: #f1f5f9;
}

.pm-btn-expand-teal {
  --pm-exp-color: #0d9488;
  --pm-exp-bg: rgba(13, 148, 136, 0.11);
}

.pm-btn-expand-amber {
  --pm-exp-color: #d97706;
  --pm-exp-bg: rgba(217, 119, 6, 0.12);
}

.pm-btn-expand-rose {
  --pm-exp-color: #e11d48;
  --pm-exp-bg: rgba(225, 29, 72, 0.11);
}

.pm-btn-expand-emerald {
  --pm-exp-color: #059669;
  --pm-exp-bg: rgba(5, 150, 105, 0.11);
}

/* Soft Tinted Secondary Buttons */
.pm-btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.7rem;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--pm-border);
  background: #ffffff;
  color: #334155 !important;
  text-decoration: none;
  transition: all 0.18s ease;
  cursor: pointer;
}

.pm-btn-soft:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.pm-btn-soft.pm-btn-sm {
  padding: 0.38rem 0.78rem;
  font-size: 0.8rem;
  border-radius: 0.6rem;
}

.pm-btn-soft-teal {
  background: rgba(13, 148, 136, 0.09);
  border-color: rgba(13, 148, 136, 0.25);
  color: #0f766e !important;
}

.pm-btn-soft-teal:hover {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff !important;
}

.pm-btn-soft-emerald {
  background: rgba(5, 150, 105, 0.09);
  border-color: rgba(5, 150, 105, 0.25);
  color: #047857 !important;
}

.pm-btn-soft-emerald:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff !important;
}

.pm-btn-soft-rose {
  background: rgba(225, 29, 72, 0.09);
  border-color: rgba(225, 29, 72, 0.25);
  color: #be123c !important;
}

.pm-btn-soft-rose:hover {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff !important;
}

.pm-btn-soft-amber {
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.28);
  color: #b45309 !important;
}

.pm-btn-soft-amber:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff !important;
}

/* Solar Duotone SVG Micro-Animations */
.pm-svg {
  flex-shrink: 0;
  display: inline-block;
}

.pm-svg-trash-lid,
.pm-svg-pen-body,
.pm-svg-eye-iris,
.pm-svg-arrow-down,
.pm-svg-key-body,
.pm-svg-plus,
.pm-svg-logout-arrow {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

a:hover .pm-icon-trash .pm-svg-trash-lid,
button:hover .pm-icon-trash .pm-svg-trash-lid {
  transform: translateY(-2px) rotate(-14deg);
}

a:hover .pm-icon-pen .pm-svg-pen-body,
button:hover .pm-icon-pen .pm-svg-pen-body {
  transform: rotate(-10deg) translateY(-1px);
}

a:hover .pm-icon-eye .pm-svg-eye-iris,
button:hover .pm-icon-eye .pm-svg-eye-iris {
  transform: scale(1.22);
}

a:hover .pm-icon-key .pm-svg-key-body,
button:hover .pm-icon-key .pm-svg-key-body {
  transform: rotate(18deg);
}

a:hover .pm-icon-plus .pm-svg-plus,
button:hover .pm-icon-plus .pm-svg-plus {
  transform: rotate(90deg);
}

.pm-kpi-card:hover .pm-icon-deposit .pm-svg-arrow-down,
a:hover .pm-icon-deposit .pm-svg-arrow-down,
button:hover .pm-icon-deposit .pm-svg-arrow-down {
  transform: translateY(2.2px);
}

.pm-nav-link:hover .pm-icon-logout .pm-svg-logout-arrow {
  transform: translateX(-3px);
}

@keyframes pmFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2.5px);
  }
}

.pm-icon-float {
  animation: pmFloat 3.2s ease-in-out infinite;
}

@keyframes pmPulseRing {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.12);
    opacity: 0.85;
  }
}

.pm-icon-pulse {
  animation: pmPulseRing 1.8s ease-in-out infinite;
}

@keyframes pmFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status Dots & Financial Badges */
.text-profit {
  color: var(--pm-profit) !important;
}

.text-loss {
  color: var(--pm-loss) !important;
}

.text-teal {
  color: var(--pm-teal-600) !important;
}

.badge-profit {
  background-color: var(--pm-profit-bg);
  color: var(--pm-profit);
  border: 1px solid #a7f3d0;
  font-weight: 700;
}

.badge-loss {
  background-color: var(--pm-loss-bg);
  color: var(--pm-loss);
  border: 1px solid #fecdd3;
  font-weight: 700;
}

.badge-status-active {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
}

.pm-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pmStatusPulse 2s infinite;
}

@keyframes pmStatusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.badge-status-completed {
  background-color: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
  font-weight: 700;
}

.badge-status-cancelled {
  background-color: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  font-weight: 700;
}

/* Tables — Option 1: Floating Bento Rows & Mobile Smart Cards */
.pm-row-num {
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.2));
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.pm-sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.pm-sort-link:hover {
  color: var(--pm-teal-600);
}

@media (min-width: 768px) {
  .pm-card .table-responsive {
    padding: 0 0.75rem 0.5rem;
  }

  .pm-card .table {
    border-collapse: separate;
    border-spacing: 0 0.52rem;
    background: transparent;
  }

  .pm-card .table>thead th {
    font-size: 0.78rem;
    color: var(--pm-muted);
    font-weight: 700;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--pm-border);
    white-space: nowrap;
    padding: 0.85rem 0.75rem 0.65rem;
  }

  .pm-card .table>tbody>tr {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05), 0 0 0 1px #e2e8f0;
    border-radius: 0.85rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  .pm-card .table>tbody>tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -6px rgba(13, 148, 136, 0.16), 0 0 0 1px rgba(13, 148, 136, 0.35);
  }

  .pm-card .table>tbody>tr.table-success {
    --bs-table-bg: #ecfdf5;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.1), 0 0 0 1px #a7f3d0;
  }

  .pm-card .table>tbody>tr>td {
    vertical-align: middle;
    border: none;
    background-color: transparent;
    padding: 0.82rem 0.75rem;
  }

  .pm-card .table>tbody>tr>td:first-child {
    border-top-right-radius: 0.85rem;
    border-bottom-right-radius: 0.85rem;
    border-right: 3px solid rgba(13, 148, 136, 0.48);
  }

  .pm-card .table>tbody>tr>td:last-child {
    border-top-left-radius: 0.85rem;
    border-bottom-left-radius: 0.85rem;
  }

  .pm-card .table>tfoot>tr>td {
    border-top: 1px solid var(--pm-border);
    background-color: #f8fafc;
    padding: 0.8rem 0.75rem;
  }

  .pm-card .table>tfoot>tr>td:first-child {
    border-top-right-radius: 0.65rem;
    border-bottom-right-radius: 0.65rem;
  }

  .pm-card .table>tfoot>tr>td:last-child {
    border-top-left-radius: 0.65rem;
    border-bottom-left-radius: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  .pm-card .table-responsive {
    overflow-x: visible;
    padding: 0.75rem;
  }

  .pm-card .table,
  .pm-card .table>tbody,
  .pm-card .table>tfoot,
  .pm-card .table>tbody>tr,
  .pm-card .table>tfoot>tr,
  .pm-card .table>tbody>tr>td,
  .pm-card .table>tfoot>tr>td {
    display: block;
    width: 100%;
  }

  .pm-card .table>thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .pm-card .table>tbody>tr {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-right: 4px solid var(--pm-teal-500);
    border-radius: 1rem;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  }

  .pm-card .table>tbody>tr.table-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-right-color: #059669;
  }

  .pm-card .table>tbody>tr:last-child {
    margin-bottom: 0;
  }

  .pm-card .table>tbody>tr>td:not([colspan]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding: 0.5rem 0 !important;
    text-align: left !important;
    white-space: normal !important;
  }

  .pm-card .table>tbody>tr>td:not([colspan]):last-child {
    border-bottom: none !important;
    padding-bottom: 0.2rem !important;
  }

  .pm-card .table>tbody>tr>td:not([colspan])::before {
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--pm-muted);
    text-align: right;
    flex-shrink: 0;
  }

  .pm-card .table>tbody>tr>td[colspan] {
    border: none !important;
    text-align: center !important;
    padding: 1rem 0 !important;
  }

  .pm-card .table>tfoot>tr {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.55rem 0.85rem;
    margin-top: 0.5rem;
  }

  .pm-card .table>tfoot>tr>td {
    border: none !important;
    padding: 0.2rem 0 !important;
    text-align: right !important;
  }

  .pm-card .table>tfoot>tr>td:empty {
    display: none;
  }
}

/* Split-Screen FinTech Auth Page */
.pm-auth-page {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.18), transparent 45%),
    linear-gradient(135deg, var(--pm-charcoal-950) 0%, var(--pm-charcoal-900) 55%, #111c21 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.pm-auth-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  background: #ffffff;
  border-radius: 1.35rem;
  overflow: hidden;
  box-shadow: 0 30px 65px -15px rgba(0, 0, 0, 0.55);
}

@media (min-width: 992px) {
  .pm-auth-shell {
    grid-template-columns: 1.05fr 1fr;
  }
}

.pm-auth-showcase {
  background: linear-gradient(155deg, var(--pm-charcoal-950) 0%, #152228 60%, #0d4b46 100%);
  color: #ffffff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pm-auth-showcase::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.22), transparent 70%);
  bottom: -60px;
  left: -60px;
}

.pm-auth-form-pane {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--pm-teal-500);
  box-shadow: 0 0 0 0.22rem rgba(20, 184, 166, 0.2);
}

.page-item.active .page-link {
  background-color: var(--pm-teal-600);
  border-color: var(--pm-teal-600);
}

.page-link {
  color: var(--pm-teal-700);
}

@media print {

  .pm-sidebar,
  .pm-topbar,
  .pm-no-print,
  .pm-sidebar-backdrop,
  .pm-mobile-bottom-nav {
    display: none !important;
  }

  .pm-main {
    margin-right: 0 !important;
  }

  .pm-content {
    padding: 0 !important;
  }

  .pm-card {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
  }
}

/* ==========================================
   Password Visibility Toggle
   ========================================== */
.pm-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pm-password-wrap .form-control {
  padding-inline-start: 2.85rem;
}

html[dir="rtl"] .pm-password-wrap .form-control {
  padding-right: 2.85rem;
  padding-left: 0.85rem;
}

html[dir="ltr"] .pm-password-wrap .form-control {
  padding-left: 2.85rem;
  padding-right: 0.85rem;
}

.pm-password-toggle {
  position: absolute;
  inset-inline-start: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.pm-password-toggle:hover,
.pm-password-toggle:focus-visible {
  color: var(--pm-accent-2);
  background: rgba(13, 148, 136, 0.1);
  outline: none;
}

/* ==========================================
   Sidebar Collapse, Footer & Tooltips (Option 1)
   ========================================== */
.pm-sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  border-radius: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.2s ease;
}

.pm-sidebar-collapse-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  color: #5eead4;
}

body.pm-sidebar-collapsed .pm-svg-collapse-arrow {
  transform: rotate(180deg);
  transform-box: fill-box;
  transform-origin: center;
}

.pm-sidebar-footer {
  margin-top: auto;
  padding: 0.85rem 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(2, 6, 23, 0.35);
}

.pm-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #f8fafc;
  transition: background-color 0.18s ease;
}

.pm-sidebar-user:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.pm-sidebar-user-meta {
  min-width: 0;
}

.pm-sidebar-user-name {
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-sidebar-user-role {
  font-size: 0.72rem;
  color: #5eead4;
}

.pm-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.3);
}

.pm-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
}

@media (min-width: 992px) {
  body.pm-sidebar-collapsed .pm-sidebar {
    width: var(--pm-sidebar-collapsed-width);
  }

  body.pm-sidebar-collapsed .pm-main {
    margin-right: var(--pm-sidebar-collapsed-width);
  }

  body.pm-sidebar-collapsed .pm-sidebar-brand {
    justify-content: center;
    padding-inline: 0.65rem;
    gap: 0.35rem;
  }

  body.pm-sidebar-collapsed .pm-brand-text,
  body.pm-sidebar-collapsed .pm-nav-heading,
  body.pm-sidebar-collapsed .pm-sidebar-user-meta {
    display: none;
  }

  body.pm-sidebar-collapsed .pm-nav-link {
    justify-content: center;
    padding: 0.7rem;
    position: relative;
  }

  body.pm-sidebar-collapsed .pm-nav-link span {
    display: none;
  }

  body.pm-sidebar-collapsed .pm-sidebar-user {
    justify-content: center;
    padding: 0.35rem;
  }

  body.pm-sidebar-collapsed .pm-nav-link[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: fixed;
    right: calc(var(--pm-sidebar-collapsed-width) + 10px);
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(20, 184, 166, 0.35);
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
    z-index: 1060;
    pointer-events: none;
  }
}

/* ==========================================
   Floating Topbar Extras (Option 2)
   ========================================== */
.pm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: #64748b;
  margin-bottom: 0.1rem;
}

.pm-breadcrumb-sep {
  opacity: 0.5;
}

.pm-breadcrumb-current {
  color: var(--pm-accent-2);
  font-weight: 600;
}

.pm-clock-pill {
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pm-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 600;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.pm-user-pill:hover,
.pm-user-pill[aria-expanded="true"] {
  border-color: var(--pm-accent);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.12);
}

.pm-topbar-dropdown {
  min-width: 210px;
  border-radius: 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.pm-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.6rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.pm-dropdown-item:hover {
  background: #f1f5f9;
}

/* ==========================================
   Mobile Bottom App Bar (Option 4)
   ========================================== */
.pm-mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 1035;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0.35rem calc(0.4rem + env(safe-area-inset-bottom));
}

.pm-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.35rem 0.2rem;
  border-radius: 0.7rem;
  border: none;
  background: transparent;
  color: #64748b;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.pm-bottom-nav-item.active,
.pm-bottom-nav-item:hover {
  color: var(--pm-accent-2);
  background: rgba(20, 184, 166, 0.1);
}

@media (max-width: 991.98px) {
  .pm-topbar {
    margin: 0.5rem 0.75rem 0;
    padding: 0.65rem 0.9rem;
  }

  .pm-content {
    padding-bottom: 5.5rem;
  }
}

/* ==========================================
   Custom Scrollbars (Global Ultra-Slim Teal Glow + Sidebar Hover 3px)
   ========================================== */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(13, 148, 136, 0.75);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--pm-teal-600);
}

.table-responsive::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.75);
}

.pm-sidebar::-webkit-scrollbar {
  width: 3px;
  height: 3px;
}

.pm-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.pm-sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.pm-sidebar:hover::-webkit-scrollbar-thumb {
  background: rgba(45, 212, 191, 0.5);
}

.pm-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--pm-teal-400);
}

@supports not selector(::-webkit-scrollbar) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
  }

  .pm-sidebar {
    scrollbar-width: none;
  }

  .pm-sidebar:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 212, 191, 0.55) transparent;
  }
}

/* ==========================================
   VTS Credit Footer (Shared + Auth)
   ========================================== */
.pm-footer {
  margin: 0 1.25rem 1.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  text-align: center;
}

.pm-auth-footer {
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.38);
  text-align: center;
}

.pm-vts-credit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pm-muted);
  line-height: 1.7;
}

.sarab-footer-vts-link {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.5rem;
  margin-inline: 0.15rem;
  border-radius: 0.45rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  color: var(--pm-teal-700);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sarab-footer-vts-link:hover,
.sarab-footer-vts-link:focus-visible {
  background: linear-gradient(135deg, var(--pm-teal-500), var(--pm-teal-700));
  border-color: var(--pm-teal-600);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
  outline: none;
}

@media (max-width: 991.98px) {
  .pm-footer {
    margin: 0 0.75rem 5.25rem;
    padding: 0.75rem 1rem;
  }

  .pm-content {
    padding-bottom: 1.25rem;
  }
}