:root{
  --wd-green-700: #114a2f;
  --wd-green-600: #17613d;
  --wd-green-500: #198754;
  --wd-green-100: #f1f8f4;
  --wd-green-050: #f6fbf8;

  --wd-ink: #0f172a;
  --wd-muted: rgba(15,23,42,.55);
  --wd-muted-strong: rgba(15,23,42,.68);
  --wd-border: rgba(15,23,42,.08);
  --wd-shadow: 0 .35rem .9rem rgba(0,0,0,.05);
  --wd-shadow-hover: 0 .55rem 1.1rem rgba(0,0,0,.07);
  --wd-radius-card: 16px;
  --wd-radius-card-lg: 18px;
  --wd-radius-control: 10px;
  --wd-radius-soft: 12px;
}

.page-wrap {
  padding: 1.5rem 0 2.5rem;
}

.wd-card,
.card {
  border-radius: var(--wd-radius-card);
  border: 1px solid var(--wd-border);
  background: #fff;
}

.wd-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .25rem;
}

.wd-muted,
.mini-muted {
  color: var(--wd-muted);
  font-size: .9rem;
}

.btn {
  border-radius: 12px;
}

/* Navbar */
.wd-navbar.navbar {
  background: linear-gradient(135deg, var(--wd-green-600) 0%, var(--wd-green-700) 100%);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-top: .8rem;
  padding-bottom: .8rem;
}

.wd-navbar .navbar-brand {
  font-size: 1.15rem;
  letter-spacing: .01em;
  text-decoration: none;
}

.wd-navbar .navbar-brand:hover,
.wd-navbar .navbar-brand:focus {
  text-decoration: none;
}

.wd-navbar-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.wd-navbar .nav-link {
  color: rgba(255,255,255,.84);
  font-weight: 500;
  padding: .6rem .95rem;
  border-radius: 10px;
  transition: .15s ease;
  text-decoration: none;
}

.wd-navbar .nav-link:hover,
.wd-navbar .nav-link:focus {
  color: #fff;
  background: rgba(255,255,255,.10);
  text-decoration: none;
}

.wd-navbar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
  text-decoration: none;
}

.wd-navbar .navbar-nav {
  gap: .35rem;
}

.wd-badge-soft {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  padding: .55rem .8rem;
  border-radius: 10px;
  font-weight: 500;
}

.wd-navbar .navbar-toggler {
  border-color: rgba(255,255,255,.18);
  border-radius: 10px;
  padding: .45rem .65rem;
}

.wd-navbar .navbar-toggler:focus {
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.12);
}

.wd-logout-btn {
  border-radius: 10px;
  padding-left: .9rem;
  padding-right: .9rem;
}

.wd-logout-btn:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.45);
}

@media (max-width: 991.98px) {
  .wd-navbar .navbar-collapse {
    margin-top: .9rem;
    padding: .85rem;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.04);
    border-radius: 14px;
  }

  .wd-navbar .navbar-nav {
    gap: .2rem;
  }

  .wd-navbar .nav-link {
    border-radius: 10px;
  }
}

/* Page header */
.wd-page-header {
  margin-bottom: 1rem;
}

.wd-page-title {
  margin-bottom: .25rem;
}

/* Workflow cards */
.wd-workflow-row {
  position: relative;
}

.wd-workflow-col {
  position: relative;
}

.wd-workflow-col:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -9px;
  top: 42%;
  font-size: 1.2rem;
  color: rgba(15,23,42,.22);
  pointer-events: none;
  z-index: 2;
}

.wd-workflow-card {
  border-radius: var(--wd-radius-card-lg);
  padding: 1.15rem;
  height: 100%;
  border: 1px solid rgba(25,135,84,.12);
  box-shadow: var(--wd-shadow);
  transition: .15s ease;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, var(--wd-green-050) 100%);
}

.wd-workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wd-shadow-hover);
  border-color: rgba(25,135,84,.22);
  background: linear-gradient(180deg, #ffffff 0%, var(--wd-green-100) 100%);
}

.wd-workflow-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(25,135,84,.10);
  color: var(--wd-green-500);
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: .85rem;
}

.wd-workflow-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,135,84,.08);
  color: var(--wd-green-500);
  font-size: 1.35rem;
  margin-bottom: .9rem;
}

.wd-workflow-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .45rem;
}

.wd-workflow-text {
  color: var(--wd-muted-strong);
  font-size: .95rem;
  line-height: 1.45;
  margin-bottom: 1rem;
  min-height: 3.4rem;
  flex-grow: 1;
}

.wd-workflow-card .btn {
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .wd-workflow-text { min-height: auto; }
  .wd-workflow-col::after { display: none; }
}

/* Quick links */
.wd-quick-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--wd-border);
  border-radius: 14px;
  padding: 1rem;
  height: 100%;
  transition: .15s ease;
  background: #fff;
}

.wd-quick-link:hover,
.wd-quick-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 .4rem .9rem rgba(0,0,0,.06);
  text-decoration: none;
  color: inherit;
}

.wd-quick-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(25,135,84,.08);
  color: var(--wd-green-500);
  margin-bottom: .75rem;
  font-size: 1.1rem;
}

/* KPI cards */
.wd-kpi-label {
  color: rgba(15,23,42,.65);
  font-size: .85rem;
}

.wd-kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.05;
}

.wd-kpi-sub {
  color: var(--wd-muted);
  font-size: .8rem;
}

/* Utility cards */
.wd-pill-card {
  border: 1px solid var(--wd-border);
  border-radius: 12px;
  padding: .8rem 1rem;
  background: #fff;
}

/* Skeleton */
.wd-skeleton {
  display: inline-block;
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  position: relative;
  overflow: hidden;
}

.wd-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-60%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: wd-shimmer 1.2s infinite;
}

@keyframes wd-shimmer {
  100% { transform: translateX(60%); }
}

/* Breadcrumb / empty / error */
.wd-breadcrumb {
  font-size: .9rem;
  color: var(--wd-muted);
}

.wd-empty,
.wd-error {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--wd-border);
  background: #fff;
}

.wd-error {
  border-color: rgba(220,53,69,.18);
  background: rgba(220,53,69,.03);
}