.dotpsa-dashboard {
  color: #111827;
}

.dotpsa-dashboard > .d-flex:first-child,
.dotpsa-dashboard > .row:first-child {
  margin-bottom: 16px !important;
}

.dp-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px 24px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 12% 0%, rgba(78, 115, 223, 0.18), transparent 32%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 46px rgba(31, 41, 55, 0.10);
  backdrop-filter: blur(18px);
}

.dp-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #4e73df;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.dp-hero h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  color: #111827;
}

.dp-hero p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
}

.dp-hero-badge {
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: right;
  background: rgba(78, 115, 223, 0.10);
  border: 1px solid rgba(78, 115, 223, 0.14);
}

.dp-hero-badge strong,
.dp-hero-badge span {
  display: block;
}

.dp-hero-badge strong {
  color: #111827;
  font-weight: 900;
}

.dp-hero-badge span {
  color: #6b7280;
  font-size: 12px;
}

.dp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.dp-kpi {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 126px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
  backdrop-filter: blur(16px);
  border-top: 4px solid #4e73df;
}

button.dp-kpi {
  cursor: pointer;
  appearance: none;
}

.dp-clickable {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dp-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.14);
}

.dp-kpi span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dp-kpi strong {
  display: block;
  margin: 12px 0 6px;
  color: #111827;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  font-weight: 900;
}

.dp-kpi small {
  color: #6b7280;
  font-size: 12px;
}

.dp-kpi.is-green { border-top-color: #1cc88a; }
.dp-kpi.is-gold { border-top-color: #f6c23e; }
.dp-kpi.is-cyan { border-top-color: #36b9cc; }
.dp-kpi.is-red { border-top-color: #e74a3b; }
.dp-kpi.is-purple { border-top-color: #6f42c1; }

.dp-kpi-highlight {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.14), rgba(255, 255, 255, 0.86));
  border-color: rgba(111, 66, 193, 0.3);
  box-shadow: 0 18px 44px rgba(111, 66, 193, 0.15);
}

.dp-kpi-highlight strong {
  color: #4c1d95;
}

.dp-kpi-danger {
  background: linear-gradient(135deg, rgba(231, 74, 59, 0.18), rgba(255, 255, 255, 0.90));
  border-color: rgba(231, 74, 59, 0.36);
  box-shadow: 0 18px 44px rgba(231, 74, 59, 0.18);
}

.dp-kpi-danger span,
.dp-kpi-danger strong {
  color: #9f1239;
}

.dp-kpi-danger small {
  color: #b91c1c;
  font-weight: 800;
}

.dp-converted-kpi strong {
  font-size: clamp(28px, 2.4vw, 38px);
}

.dp-kpi-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#dotpsa-executive-dashboard {
  margin-bottom: 18px;
}

.dp-exec-hero {
  margin-top: 6px;
}

.dp-logic-card {
  margin-bottom: 16px;
}

.dp-logic-card p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.dp-employee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.dp-filter-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.76);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 12px 30px rgba(31,41,55,.08);
}

.dp-filter-card label {
  display: grid;
  gap: 5px;
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
}

.dp-filter-card input,
.dp-filter-card select {
  min-height: 38px;
  border: 1px solid #d8deea;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  color: #111827;
}

.dp-date-control {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.dp-date-control input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.dp-date-control button {
  min-height: 38px;
  width: 42px;
  border: 1px solid #d8deea;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: #eef2ff;
  color: #3154c7;
  cursor: pointer;
}

.dp-date-control button:hover,
.dp-date-control button:focus {
  background: #dfe7ff;
  outline: none;
}

.dp-filter-btn {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #4e73df;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.dp-filter-btn.is-light {
  background: #eef2ff;
  color: #3154c7;
}

.dp-employee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.dp-employee-row:hover {
  transform: translateY(-2px);
  border-color: rgba(78, 115, 223, .36);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.11);
}

.dp-employee-row span {
  color: #111827;
  font-weight: 900;
}

.dp-employee-row strong {
  color: #1cc88a;
  font-weight: 900;
}

.dp-employee-row small {
  color: #6b7280;
}

.dp-employee-row em {
  color: #4b5563;
  font-size: 12px;
  font-style: normal;
}

.dp-empty-note {
  margin: 0;
  color: #6b7280;
}

.dp-converted-drilldown {
  margin-bottom: 16px;
  border-color: rgba(246, 194, 62, .42);
}

.dp-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dp-chart-card {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.09);
  backdrop-filter: blur(16px);
}

.dp-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.dp-chart-head h3 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.dp-chart-head span {
  color: #4e73df;
  background: #eef2ff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dp-bar-row {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-bottom: 13px;
}

.dp-bar-clickable {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.dp-bar-clickable:hover .dp-bar-label span,
.dp-bar-clickable:hover .dp-bar-label strong {
  color: #4e73df;
}

.dp-bar-clickable:focus-visible {
  outline: 2px solid rgba(78, 115, 223, .45);
  outline-offset: 4px;
  border-radius: 10px;
}

.dp-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.dp-bar-label span {
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.dp-bar-label strong {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.dp-bar-track {
  height: 9px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.dp-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4e73df, #36b9cc);
  box-shadow: 0 4px 10px rgba(78, 115, 223, 0.22);
}

.dp-vertical-insight {
  margin-bottom: 18px;
  border-color: rgba(78, 115, 223, 0.22);
}

.dp-chart-head p {
  margin: 5px 0 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.dp-vertical-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.dp-vertical-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  flex: 1;
}

.dp-vertical-filters label {
  display: grid;
  gap: 6px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 900;
}

.dp-vertical-filters select {
  width: 100%;
  border: 1px solid rgba(209, 213, 219, 0.95);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 10px;
}

.dp-toggle-group {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid rgba(78, 115, 223, 0.16);
}

.dp-toggle-group button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #4b5563;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 8px 12px;
}

.dp-toggle-group button.is-active {
  background: #4e73df;
  color: #fff;
  box-shadow: 0 8px 18px rgba(78, 115, 223, 0.22);
}

.dp-vertical-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.dp-vertical-graph {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: 360px;
}

.dp-vertical-axis {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 3px solid rgba(17, 24, 39, 0.22);
}

.dp-vertical-axis span {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-90deg);
  white-space: nowrap;
}

.dp-vertical-plot {
  display: flex;
  align-items: end;
  gap: 18px;
  min-height: 330px;
  padding: 20px 8px 8px;
  border-bottom: 3px solid rgba(17, 24, 39, 0.22);
  overflow-x: auto;
}

.dp-vertical-kam {
  display: grid;
  align-items: end;
  gap: 10px;
  min-width: 190px;
  padding: 0 6px;
  background: transparent;
}

.dp-vertical-kam-head {
  display: grid;
  gap: 3px;
  justify-items: center;
  min-height: 48px;
}

button.dp-vertical-kam-head {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

button.dp-vertical-kam-head:hover h4,
button.dp-vertical-kam-head:hover span {
  color: #4e73df;
}

.dp-vertical-kam-head h4,
.dp-vertical-summary h4 {
  margin: 0;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.dp-vertical-kam-head span {
  color: #4e73df;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.dp-vertical-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  height: 250px;
}

.dp-vertical-bar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  justify-items: center;
  align-items: end;
  width: 54px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: center;
}

.dp-vertical-type {
  color: #374151;
  font-size: 10px;
  font-weight: 900;
  max-width: 62px;
  min-height: 24px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dp-vertical-track {
  display: block;
  width: 42px;
  height: 100%;
  border-radius: 12px 12px 4px 4px;
  background: #edf2f7;
  overflow: hidden;
  position: relative;
}

.dp-vertical-track i {
  display: block;
  width: 100%;
  height: var(--bar-height);
  min-height: 0;
  border-radius: inherit;
  background: var(--vertical-color);
  box-shadow: 0 8px 18px rgba(78, 115, 223, 0.14);
  position: absolute;
  bottom: 0;
  left: 0;
}

.dp-vertical-bar strong {
  color: #111827;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  min-height: 30px;
  text-align: center;
}

.dp-vertical-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  grid-column: 2;
}

.dp-vertical-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.dp-vertical-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--vertical-color);
}

.dp-vertical-bar:hover .dp-vertical-type,
.dp-vertical-bar:hover strong,
.dp-table-link:hover,
.dp-vertical-summary-row:hover span,
.dp-vertical-summary-row:hover strong {
  color: #4e73df;
}

.dp-vertical-summary {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.dp-vertical-summary-row,
.dp-vertical-total {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 0;
  border-left: 4px solid var(--vertical-color, #4e73df);
  border-radius: 10px;
  background: #f8fafc;
  color: #374151;
  padding: 9px 10px;
  text-align: left;
}

.dp-vertical-summary-row {
  cursor: pointer;
}

.dp-vertical-summary-row span,
.dp-vertical-total span {
  font-size: 12px;
  font-weight: 900;
}

.dp-vertical-summary-row strong,
.dp-vertical-total strong {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
}

.dp-vertical-summary-row em,
.dp-vertical-total em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.dp-vertical-total {
  border-left-color: #111827;
  background: #111827;
}

button.dp-vertical-total {
  cursor: pointer;
  border: 0;
  text-align: left;
}

.dp-vertical-total span,
.dp-vertical-total strong,
.dp-vertical-total em {
  color: #fff;
}

.dp-vertical-table-wrap {
  display: none;
  grid-column: 1 / -1;
  overflow-x: auto;
}

.dp-vertical-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.dp-vertical-table th,
.dp-vertical-table td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.dp-vertical-table th {
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.dp-vertical-table tfoot th,
.dp-vertical-table tfoot td {
  background: linear-gradient(135deg, rgba(78, 115, 223, 0.16), rgba(28, 200, 138, 0.12));
  border-top: 2px solid rgba(78, 115, 223, 0.35);
  border-bottom: 0;
  color: #111827;
  font-weight: 950;
}

.dp-vertical-table tfoot th {
  border-radius: 12px 0 0 12px;
  color: #1f2937;
  font-size: 13px;
}

.dp-vertical-table tfoot td:last-child {
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #111827, #4e73df);
  color: #fff;
}

.dp-vertical-table tfoot td:last-child strong {
  color: #fff;
}

.dp-vertical-table tfoot .dp-table-value {
  background: rgba(255, 255, 255, 0.78);
  color: #111827;
  box-shadow: 0 10px 22px rgba(78, 115, 223, 0.16);
}

.dp-vertical-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--vertical-color);
}

.dp-table-link {
  border: 0;
  border-radius: 999px;
  background: #eef2ff;
  color: #4e73df;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.dp-vertical-insight[data-vertical-view="table"] .dp-vertical-graph,
.dp-vertical-insight[data-vertical-view="table"] .dp-vertical-summary,
.dp-source-vertical-insight[data-source-vertical-view="table"] .dp-vertical-graph,
.dp-source-vertical-insight[data-source-vertical-view="table"] .dp-vertical-summary,
.dp-source-customer-vertical-insight[data-source-customer-vertical-view="table"] .dp-vertical-graph,
.dp-source-customer-vertical-insight[data-source-customer-vertical-view="table"] .dp-vertical-summary,
.dp-nbd-source-vertical-insight[data-nbd-source-vertical-view="table"] .dp-vertical-graph,
.dp-nbd-source-vertical-insight[data-nbd-source-vertical-view="table"] .dp-vertical-summary,
.dp-lead-type-customer-vertical-insight[data-lead-type-customer-vertical-view="table"] .dp-vertical-graph,
.dp-lead-type-customer-vertical-insight[data-lead-type-customer-vertical-view="table"] .dp-vertical-summary,
.dp-fy-lead-type-customer-insight[data-fy-lead-type-customer-view="table"] .dp-vertical-graph,
.dp-fy-lead-type-customer-insight[data-fy-lead-type-customer-view="table"] .dp-vertical-summary,
.dp-month-lead-type-customer-insight[data-month-lead-type-customer-view="table"] .dp-vertical-graph,
.dp-month-lead-type-customer-insight[data-month-lead-type-customer-view="table"] .dp-vertical-summary {
  display: none;
}

.dp-vertical-insight[data-vertical-view="table"] .dp-vertical-layout,
.dp-source-vertical-insight[data-source-vertical-view="table"] .dp-vertical-layout,
.dp-source-customer-vertical-insight[data-source-customer-vertical-view="table"] .dp-vertical-layout,
.dp-nbd-source-vertical-insight[data-nbd-source-vertical-view="table"] .dp-vertical-layout,
.dp-lead-type-customer-vertical-insight[data-lead-type-customer-vertical-view="table"] .dp-vertical-layout,
.dp-fy-lead-type-customer-insight[data-fy-lead-type-customer-view="table"] .dp-vertical-layout,
.dp-month-lead-type-customer-insight[data-month-lead-type-customer-view="table"] .dp-vertical-layout {
  display: block;
}

.dp-vertical-insight[data-vertical-view="table"] .dp-vertical-table-wrap,
.dp-source-vertical-insight[data-source-vertical-view="table"] .dp-vertical-table-wrap,
.dp-source-customer-vertical-insight[data-source-customer-vertical-view="table"] .dp-vertical-table-wrap,
.dp-nbd-source-vertical-insight[data-nbd-source-vertical-view="table"] .dp-vertical-table-wrap,
.dp-lead-type-customer-vertical-insight[data-lead-type-customer-vertical-view="table"] .dp-vertical-table-wrap,
.dp-fy-lead-type-customer-insight[data-fy-lead-type-customer-view="table"] .dp-vertical-table-wrap,
.dp-month-lead-type-customer-insight[data-month-lead-type-customer-view="table"] .dp-vertical-table-wrap {
  display: block;
}

.dotpsa-dashboard .card,
.dotpsa-dashboard .form-control,
.dotpsa-dashboard .css-13cymwt-control,
.dotpsa-dashboard .css-t3ipsp-control {
  backdrop-filter: blur(14px);
}

.dotpsa-dashboard .card {
  background: rgba(255, 255, 255, 0.76) !important;
}

.dotpsa-dashboard .card-header {
  background: rgba(255, 255, 255, 0.54) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.84) !important;
}

.dotpsa-dashboard table {
  border-collapse: separate !important;
  border-spacing: 0;
}

.dotpsa-dashboard table thead th {
  background: #f8fafc !important;
  color: #4b5563;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dotpsa-dashboard table tbody tr:hover {
  background: rgba(78, 115, 223, 0.05);
}

@media (max-width: 1100px) {
  .dp-kpi-grid,
  .dp-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dp-vertical-layout {
    grid-template-columns: 1fr;
  }

  .dp-vertical-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .dp-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dp-hero-badge {
    text-align: left;
    width: 100%;
  }

  .dp-kpi-grid,
  .dp-chart-grid {
    grid-template-columns: 1fr;
  }

  .dp-vertical-filters {
    grid-template-columns: 1fr;
  }

  .dp-vertical-bar {
    width: 50px;
  }

  .dp-vertical-bar strong {
    text-align: center;
  }

  .dp-toggle-group {
    width: 100%;
  }

  .dp-toggle-group button {
    flex: 1;
  }
}
