.dashboard_fit {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 104px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  overflow: hidden;
}
.kpi_strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.kpi_card {
  border: 1px solid var(--tc_border);
  border-radius: 16px;
  background: var(--tc_white);
  padding: 12px 13px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 61, 42, 0.05);
}
.kpi_card span { font-size: 13px; color: var(--tc_muted); font-weight: 700; }
.kpi_card strong { font-size: 31px; color: var(--tc_green); line-height: 1; margin-top: 7px; }
.kpi_card em { font-size: 12px; color: var(--tc_muted); font-style: normal; }
.kpi_card.red strong { color: var(--tc_red); }
.kpi_card.blue strong { color: var(--tc_blue); }
.kpi_card.gold strong { color: var(--tc_gold); }
.dashboard_middle { display: grid; grid-template-columns: 0.75fr 1.25fr 1fr; gap: 12px; min-height: 0; }
.dashboard_bottom { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 12px; min-height: 0; }
.dash_panel {
  background: var(--tc_white);
  border: 1px solid var(--tc_border);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.dash_panel h2, .dash_panel small { flex-shrink: 0; }
.dash_panel h2 { margin: 0 0 4px; font-size: 17px; color: var(--tc_green); }
.dash_panel small { color: var(--tc_muted); font-size: 12px; }
.fake_chart { height: calc(100% - 42px); min-height: 130px; display: flex; align-items: center; justify-content: center; }
.donut {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(var(--tc_red) 0 22%, var(--tc_green_2) 22% 58%, var(--tc_blue) 58% 72%, var(--tc_gold) 72% 84%, #cbd6ce 84% 100%);
  position: relative;
}
.donut::after {
  content: '128';
  position: absolute;
  inset: 32px;
  border-radius: 50%;
  background: white;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  color: var(--tc_green);
}
.bar_list { margin-top: 14px; display: grid; gap: 10px; }
.bar_item { display: grid; grid-template-columns: 72px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.bar_track { height: 14px; background: #eef3ef; border-radius: 8px; overflow: hidden; }
.bar_fill { height: 100%; background: var(--tc_green_2); border-radius: 8px; }
.focus_list { display: grid; gap: 9px; margin-top: 14px; }
.focus_item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 14px;
  background: #fbfdfb;
  border: 1px solid var(--tc_border);
  font-size: 13px;
}
.compact_rows {
  margin-top: 10px;
  height: calc(100% - 44px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 4px;
}
.compact_rows::-webkit-scrollbar { width: 6px; }
.compact_rows::-webkit-scrollbar-thumb { background: #cdddd0; border-radius: 6px; }
.compact_row, .compact_rows .focus_item { flex-shrink: 0; min-height: 38px; }
.compact_row {
  display: grid;
  grid-template-columns: 82px 68px minmax(180px, 1fr) 130px 100px 78px 58px 54px;
  gap: 8px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--tc_border);
  border-radius: 12px;
  background: #fbfdfb;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
}
.update_row { grid-template-columns: 56px 64px 80px minmax(180px, 1fr) 54px; }
.row_text_trim { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) {
  .dashboard_fit { height: auto; overflow: visible; grid-template-rows: auto; }
  .kpi_strip, .dashboard_middle, .dashboard_bottom { grid-template-columns: 1fr; }
  .compact_rows { height: auto; }
}


/* Task Workflow Fix 05E, same dashboard view for all roles */
.dashboard_fit {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: 104px minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 12px;
  overflow: hidden;
}
.kpi_strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 0;
}
.quick_actions_same {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.donut.dynamic_center::after {
  content: attr(data-total);
}
@media (max-width: 1200px) {
  .dashboard_fit {
    height: auto;
    overflow: visible;
    grid-template-rows: auto;
  }
  .kpi_strip,
  .dashboard_middle,
  .dashboard_bottom {
    grid-template-columns: 1fr;
  }
}


/* Task Workflow Fix 05H dashboard same view */
.dashboard_fit { height:100%; min-height:0; display:grid; grid-template-rows:104px minmax(0,1fr) minmax(0,1.05fr); gap:12px; overflow:hidden; }
.kpi_strip { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; min-height:0; }
.quick_actions_same { display:grid; gap:9px; margin-top:14px; }
.donut.dynamic_center::after { content: attr(data-total); }
@media (max-width:1200px){ .dashboard_fit{height:auto;overflow:visible;grid-template-rows:auto;} .kpi_strip,.dashboard_middle,.dashboard_bottom{grid-template-columns:1fr;} }


/* Task Workflow Fix 05K, dashboard row spacing and no text overlap */
.compact_row.fixed_task_row{display:grid;grid-template-columns:88px 150px minmax(220px,1fr) 160px 118px 88px 62px;gap:10px;align-items:center}.compact_row.fixed_task_row>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut.dynamic_center::after{content:attr(data-total)}.quick_actions_same{display:grid;gap:9px;margin-top:14px}@media(max-width:1100px){.compact_row.fixed_task_row{grid-template-columns:1fr}}

/* Role and Task Governance Rule Engine Fix 05L */
.compact_row.fixed_task_row{display:grid;grid-template-columns:88px 150px minmax(220px,1fr) 160px 118px 88px 62px;gap:10px;align-items:center}.compact_row.fixed_task_row>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.donut.dynamic_center::after{content:attr(data-total)}.quick_actions_same{display:grid;gap:9px;margin-top:14px}@media(max-width:1100px){.compact_row.fixed_task_row{grid-template-columns:1fr}}
