:root {
  --dash-card-radius: 16px;
  --dash-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.cdash-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 0;
}

.cdash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.cdash-title h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: #01203f;
  letter-spacing: -0.5px;
}
.cdash-title p {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 0.95rem;
}

.cdash-action .cdash-btn-primary {
  background: #01203f;
  color: #fff;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all 0.2s;
}
.cdash-action .cdash-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 32, 63, 0.2);
}

/* KPI Cards */
.cdash-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.cdash-kpi {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--dash-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 130px;
}

.cdash-kpi::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}

.cdash-kpi.kpi-total::before { background: #10b981; }
.cdash-kpi.kpi-pending::before { background: #f59e0b; }
.cdash-kpi.kpi-awaiting::before { background: #ef4444; }
.cdash-kpi.kpi-contracts::before { background: #01203f; }
.cdash-kpi.kpi-payments::before { background: #22cac3; }

.cdash-kpi .kpi-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cdash-kpi .kpi-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #01203f;
  margin: 10px 0;
}

.cdash-kpi .kpi-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cdash-pill {
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.7rem;
}
.kpi-total .cdash-pill { background: #ecfdf5; color: #10b981; }
.kpi-pending .cdash-pill { background: #fffbeb; color: #f59e0b; border: 1px solid #fef3c7; text-transform: uppercase; }
.kpi-awaiting .cdash-pill { background: #fef2f2; color: #ef4444; }

/* Main Grid */
.cdash-main {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 20px;
}

.cdash-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: var(--dash-shadow);
  margin-bottom: 20px;
}

.cdash-card .card-h {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cdash-card .card-h h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #01203f;
}

.cdash-card .card-b {
  padding: 0 24px 24px 24px;
}

/* Funnel */
.cdash-funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.cdash-mini {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 1px solid #f1f5f9;
}

.cdash-mini .m-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: #01203f;
  margin-bottom: 4px;
}
.cdash-mini .m-label {
  font-size: 0.7rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}
.cdash-mini .m-sub {
  font-size: 0.75rem;
  color: #64748b;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 6px;
  padding: 4px;
  margin-top: 8px;
  font-weight: 700;
}

.funnel-arrow {
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Tables */
.cdash-table {
  width: 100%;
}
.cdash-table th {
  text-align: left;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 800;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.cdash-table td {
  padding: 16px 0;
  border-bottom: 1px solid #f8fafc;
}
.cdash-table tr:last-child td { border-bottom: 0; }

/* Right Stack */
.cdash-right-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cdash-dark {
  background: #01203f;
  color: #fff;
  border: 0;
}
.cdash-dark .card-h h2 { color: #fff; }
.cdash-dark .ex-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cdash-dark .ex-row:last-child { border-bottom: 0; }
.cdash-dark .ex-row span:first-child { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.cdash-dark .ex-row span:last-child { font-weight: 800; font-size: 1.1rem; }

.cdash-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #22cac3;
  text-decoration: none;
  text-transform: uppercase;
}

.activity-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-content {
  font-size: 0.85rem;
}
.activity-content strong { color: #01203f; display: block; margin-bottom: 2px; }
.activity-content p { margin: 0; color: #64748b; line-height: 1.4; }
.activity-content span { font-size: 0.75rem; color: #94a3b8; margin-top: 4px; display: block; }

.cdash-progress {
  height: 4px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}
.cdash-progress div {
  height: 100%;
  transition: width 0.3s ease;
}

@media (max-width: 1200px) {
  .cdash-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 991px) {
  .cdash-main { grid-template-columns: 1fr; }
  .cdash-funnel { grid-template-columns: 1fr; }
  .funnel-arrow { display: none; }
}

