:root {
  --appdash-bg: #f7f9fa;
  --appdash-card: #fff;
  --appdash-shadow: 0 2px 24px rgba(41, 148, 234, 0.09);
  --appdash-radius: 16px;
  --appdash-blue: #2574fc;
  --appdash-green: #36c57d;
  --appdash-yellow: #fbbf24;
  --appdash-gray: #787878;
  --appdash-text: #143766;
  --appdash-spacing: 24px;
  --appdash-spacing-sm: 16px;
  --appdash-spacing-lg: 32px;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: var(--appdash-text);
  background: var(--appdash-bg);
}

.application-dashboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--appdash-spacing) var(--appdash-spacing-lg) var(--appdash-spacing-sm) var(--appdash-spacing);
  background: #fff;
  border-radius: 0 0 var(--appdash-radius) var(--appdash-radius);
  margin-bottom: var(--appdash-spacing);
}

.application-dashboard__back {
  color: var(--appdash-text);
  font-size: 1.08rem;
  text-decoration: none;
  transition: color 0.2s;
}

.application-dashboard__back:hover {
  color: var(--appdash-blue);
}

.application-dashboard__date {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 8px;
  padding: 6px 16px;
  box-shadow: 0 2px 10px rgba(41, 148, 234, 0.07);
}

.application-dashboard__date-input {
  background: #f3f7fa;
  border: 1px solid #ddeaf7;
  font-weight: 600;
  border-radius: 7px;
  font-size: 1.05rem;
  min-width: 210px;
  text-align: center;
  padding: 8px 14px;
  color: #455169;
  transition: border-color 0.2s, background-color 0.2s;
}

.application-dashboard__date-input:focus {
  outline: none;
  border-color: var(--appdash-blue);
  background: #fff;
}

.application-dashboard__icon-btn {
  background: none;
  border: none;
  color: #7c8aa8;
  font-size: 1.14rem;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.application-dashboard__icon-btn:hover {
  background: #ddefff;
  color: var(--appdash-blue);
}

.application-dashboard__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--appdash-spacing);
  margin: 0 var(--appdash-spacing) var(--appdash-spacing) var(--appdash-spacing);
  padding: 0;
}

.application-dashboard__stat-card {
  flex: 1 1 150px;
  background: var(--appdash-card);
  border-radius: var(--appdash-radius);
  box-shadow: var(--appdash-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--appdash-spacing) 20px;
  min-width: 160px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.application-dashboard__stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 32px rgba(41, 148, 234, 0.15);
}

.application-dashboard__stat-label {
  color: #222;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.application-dashboard__stat-value {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1;
}

.application-dashboard__stat-value.is-green {
  color: var(--appdash-green);
}

.application-dashboard__stat-value.is-yellow {
  color: var(--appdash-yellow);
}

.application-dashboard__stat-value.is-gray {
  color: var(--appdash-gray);
}

.application-dashboard__main {
  display: flex;
  flex-direction: column;
  gap: var(--appdash-spacing);
  margin: 0 var(--appdash-spacing) var(--appdash-spacing) var(--appdash-spacing);
  padding: 0;
}

.application-dashboard__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--appdash-spacing);
}

.application-dashboard__card {
  background: var(--appdash-card);
  border-radius: var(--appdash-radius);
  box-shadow: var(--appdash-shadow);
  margin-bottom: 0;
  padding: var(--appdash-spacing);
  box-sizing: border-box;
  min-width: 240px;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 110px;
}

.application-dashboard__card--chart-main {
  flex: 2 1 70%;
  padding: 20px 16px;
  max-width: calc(70% - 20px);
}

.application-dashboard__card--empty {
  flex: 1 1 38%;
  min-height: 120px;
  background: transparent;
  box-shadow: none;
}

.application-dashboard__chart-title {
  margin: 0 0 var(--appdash-spacing-sm) 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  color: var(--appdash-text);
}

.application-dashboard__card--table {
  border-radius: var(--appdash-radius);
  margin-bottom: 0;
  padding: var(--appdash-spacing);
  box-sizing: border-box;
  min-width: 250px;
  flex: 1 1 0;
  align-items: center;
  min-height: 120px;
}

.application-dashboard__table-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #22437b;
  margin: 0 0 var(--appdash-spacing-sm) 0;
  padding: 0;
  letter-spacing: 0.015em;
}

.application-dashboard__grid-row {
  display: flex;
  flex-direction: row;
  gap: var(--appdash-spacing);
  width: 100%;
  align-items: stretch;
}

.application-dashboard__card--table {
  flex: 1 1 70%;
  max-width: calc(70% - 20px);
}

.application-dashboard__card--chart {
  flex: 1 1 30%;
  max-width: calc(30% - 5px);
  min-width: 180px;
  padding: var(--appdash-spacing-sm);
}

/* Fix pie chart sizing and spacing */
.application-dashboard__card--chart > div[id$="pie"] {
  width: 100% !important;
  min-width: 0;
  max-width: 100%;
}

.application-dashboard__card--chart .application-dashboard__chart-title {
  margin: 7px 0 12px 0;
  width: 100%;
}

.application-dashboard__row:nth-last-child(1) .application-dashboard__card--table{
    max-width:100%!important;
}

.application-dashboard__aggrid {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 230px;
  min-height: 150px;
  border-radius: var(--appdash-radius);
  margin-bottom: 0;
}

/* Application Dashboard Styles */

/* Grid Container Wrappers */
.application-dashboard-grid-container {
  margin: 20px 0;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Grid Title Styles */
.grid-title {
  font-size: 16px;
  font-weight: 600;
  color: #3b4d64;
  margin-bottom: 16px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Individual Grid Containers */
#application-dashboard-version-grid,
#application-dashboard-dataflow-deployed-version-grid,
#application-dashboard-rpa-machine-connection {
  width: 100%;
  height: 450px;
  margin: 0;
}

/* Chart Containers */
#application-dashboard-execution-chart,
#application-dashboard-process-instance-status-pie,
#application-dashboard-dataflow-instance-status-pie,
#application-dashboard-eiq-bots-status-pie {
  width: 100%;
  height: 350px;
  min-height: 300px;
}

/* Stats Cards */
.stats-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.stats-card .stats-value {
  font-size: 32px;
  font-weight: 700;
  color: #2994ea;
  margin: 10px 0;
}

.stats-card .stats-label {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Dashboard Layout */
.dashboard-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.dashboard-col {
  flex: 1;
}

.dashboard-col-full {
  width: 100%;
}

/* Card Styles */
.dashboard-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.dashboard-card-header {
  font-size: 18px;
  font-weight: 600;
  color: #3b4d64;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

/* Loading Indicator - Center Aligned */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px 20px;
  text-align: center;
  color: var(--appdash-blue);
  font-size: 16px;
  font-weight: 500;
}

.loading-indicator i {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--appdash-blue);
}

/* Responsive Design */
@media (max-width: 992px) {
  .dashboard-row {
    flex-direction: column;
  }

  #application-dashboard-version-grid,
  #application-dashboard-dataflow-deployed-version-grid,
  #application-dashboard-rpa-machine-connection {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .application-dashboard-grid-container {
    padding: 12px;
  }

  #application-dashboard-version-grid,
  #application-dashboard-dataflow-deployed-version-grid,
  #application-dashboard-rpa-machine-connection {
    height: 350px;
  }

  #application-dashboard-execution-chart,
  #application-dashboard-process-instance-status-pie,
  #application-dashboard-dataflow-instance-status-pie,
  #application-dashboard-eiq-bots-status-pie {
    height: 280px;
  }
}

#application-dashboard-version-grid,
#application-dashboard-dataflow-deployed-version-grid,
#application-dashboard-rpa-machine-connection{
    overflow: hidden !important;
}