.mt-dashboard-v2{
  --mt-navy:#0d2342;
  --mt-blue:#1769e0;
  --mt-green:#0a9b68;
  --mt-red:#d93645;
  --mt-amber:#c97914;
  --mt-purple:#6e4ed5;
  --mt-border:#dfe7f0;
  --mt-muted:#718298;
  color:var(--mt-navy);
  display:grid;
  gap:16px;
}
.mt-dashboard-v2 *{box-sizing:border-box}
.mt-dash-heading-row,.mt-dash-task-heading{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:22px;
  background:#fff;
  border:1px solid #e1e8f0;
  border-radius:14px;
  padding:20px 22px;
  box-shadow:0 12px 34px rgba(18,45,80,.055);
}
.mt-dash-heading-row h1,.mt-dash-task-heading h1{
  margin:3px 0 5px;
  color:var(--mt-navy);
  font-size:27px;
  line-height:1.12;
  letter-spacing:-.025em;
}
.mt-dash-heading-row p,.mt-dash-task-heading p{margin:0;color:var(--mt-muted);font-size:12px;line-height:1.45}
.mt-dash-kicker{font-size:9px!important;letter-spacing:.16em!important;color:#7d8da1!important;font-weight:850!important}
.mt-dash-period-tabs{display:flex;gap:4px;align-items:center}
.mt-dash-period-tabs button{
  border:1px solid var(--mt-border);
  background:#fff;
  color:#2d4867;
  padding:8px 13px;
  border-radius:7px;
  font-size:11px;
  font-weight:700;
}
.mt-dash-period-tabs button:hover{background:#f6f9fd}
.mt-dash-period-tabs button.active{background:var(--mt-blue);border-color:var(--mt-blue);color:#fff;box-shadow:0 7px 16px rgba(23,105,224,.18)}
.mt-dash-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.mt-dash-kpi{
  min-height:118px;
  border:1px solid var(--mt-border);
  border-radius:11px;
  background:#fff;
  padding:14px;
  display:flex;
  align-items:flex-start;
  gap:11px;
  box-shadow:0 8px 24px rgba(18,45,80,.035);
}
.mt-dash-kpi-icon{
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#eaf2ff;
  color:var(--mt-blue);
  font-size:17px;
  font-weight:850;
}
.mt-dash-kpi.green .mt-dash-kpi-icon{background:#e8f7f1;color:var(--mt-green)}
.mt-dash-kpi span{display:block;color:#405875;font-size:10px;font-weight:700;margin-top:1px}
.mt-dash-kpi b{display:block;color:#102b4e;font-size:19px;line-height:1.1;margin:6px 0 8px;letter-spacing:-.02em;white-space:nowrap}
.mt-dash-kpi small{display:block;color:var(--mt-muted);font-size:9px;line-height:1.35}
.mt-dash-kpi.skeleton{min-height:118px;background:linear-gradient(90deg,#f6f8fb 25%,#edf2f7 45%,#f6f8fb 65%);background-size:220% 100%;animation:mtDashShimmer 1.3s infinite linear}
@keyframes mtDashShimmer{to{background-position:-220% 0}}
.mt-dash-performance{
  background:#fff;
  border:1px solid #dfe7f0;
  border-radius:14px;
  padding:15px 16px 12px;
  box-shadow:0 12px 34px rgba(18,45,80,.055);
}
.mt-dash-performance-head{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;border-bottom:1px solid #e7edf3;padding-bottom:12px}
.mt-dash-performance-head h2,.mt-dash-task-panel h2{margin:0;font-size:16px;letter-spacing:-.01em;color:#102b4e}
.mt-dash-performance-head p,.mt-dash-task-panel-head p{margin:3px 0 0;color:var(--mt-muted);font-size:10px}
.mt-dash-graph-tabs{display:flex;align-items:center}
.mt-dash-graph-tabs button{
  border:1px solid var(--mt-border);
  background:#fff;
  color:#2b4766;
  padding:9px 16px;
  font-size:10px;
  font-weight:720;
}
.mt-dash-graph-tabs button:first-child{border-radius:7px 0 0 7px}
.mt-dash-graph-tabs button:last-child{border-radius:0 7px 7px 0}
.mt-dash-graph-tabs button+button{border-left:0}
.mt-dash-graph-tabs button.active{background:var(--mt-blue);border-color:var(--mt-blue);color:#fff}
.mt-dash-chart-meta{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:12px 46px 5px}
.mt-dash-chart-meta h3{font-size:13px;margin:0 0 2px;color:#17385e}
.mt-dash-chart-meta p{font-size:9px;color:var(--mt-muted);margin:0}
.mt-dash-legend{display:flex;gap:15px;align-items:center;color:#455f7c;font-size:9px}
.mt-dash-legend span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.mt-dash-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}
.mt-dash-chart-wrap{height:286px;position:relative;padding:0 38px}
.mt-dash-chart-wrap canvas{display:block;width:100%;height:100%}
.mt-dash-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:36px;
  height:36px;
  border-radius:50%;
  border:1px solid var(--mt-border);
  background:#f8fafc;
  color:#173a61;
  font-size:24px;
  line-height:1;
  z-index:2;
}
.mt-dash-arrow:hover{background:#eef4fb}
.mt-dash-arrow.left{left:0}.mt-dash-arrow.right{right:0}
.mt-dash-dots{display:flex;justify-content:center;gap:7px;padding:5px 0 0}
.mt-dash-dots button{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:#ccd7e4}
.mt-dash-dots button.active{background:var(--mt-blue)}
.mt-dash-task-heading{align-items:center;padding-top:18px;padding-bottom:18px}
.mt-dash-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mt-dash-task-panel{
  background:#fff;
  border:1px solid var(--mt-border);
  border-radius:13px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(18,45,80,.045);
}
.mt-dash-task-panel-head{display:flex;align-items:center;gap:10px;padding:13px 15px;border-bottom:1px solid #e8edf3}
.mt-dash-panel-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;font-weight:850;flex:0 0 auto}
.mt-dash-panel-icon.blue{background:#eaf2ff;color:var(--mt-blue)}
.mt-dash-panel-icon.red{background:#fff0f2;color:var(--mt-red)}
.mt-dash-task-row{
  width:100%;
  display:grid;
  grid-template-columns:36px 34px 1fr 18px;
  align-items:center;
  gap:9px;
  padding:10px 13px;
  border:0;
  border-bottom:1px solid #edf1f5;
  background:#fff;
  color:#153657;
  text-align:left;
}
.mt-dash-task-row:last-child{border-bottom:0}
.mt-dash-task-row:hover{background:#f8fbff}
.mt-dash-task-icon{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#eaf2ff;color:var(--mt-blue);font-style:normal;font-weight:850}
.mt-dash-task-icon.green{background:#e8f8f2;color:var(--mt-green)}
.mt-dash-task-icon.amber{background:#fff5e7;color:var(--mt-amber)}
.mt-dash-task-icon.red{background:#fff0f2;color:var(--mt-red)}
.mt-dash-task-icon.purple{background:#f1edff;color:var(--mt-purple)}
.mt-dash-task-row>b{font-size:17px;color:#102b4e}
.mt-dash-task-copy strong{display:block;font-size:11px;color:#183858}
.mt-dash-task-copy small{display:block;color:var(--mt-muted);font-size:9px;margin-top:2px}
.mt-dash-task-row>i{font-style:normal;color:#6a8099;font-size:18px}
.mt-dash-empty{min-height:61px;padding:15px;display:flex;flex-direction:column;justify-content:center;color:#75869b;font-size:10px}
.mt-dash-empty b{color:#31516f;font-size:11px;margin-bottom:2px}
.mt-dash-empty span{font-size:9px}
.mt-dash-load-error{grid-column:1/-1;border:1px solid #eccfd3;background:#fff6f7;color:#8f3540;padding:14px;border-radius:9px;font-size:10px}
.mt-dash-load-error button{margin-left:8px;border:1px solid #e1bac0;background:#fff;border-radius:6px;padding:5px 8px;color:#8f3540;font-size:9px;font-weight:700}
@media(max-width:1250px){
  .mt-dash-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mt-dash-performance-head{grid-template-columns:1fr}
  .mt-dash-graph-tabs{justify-self:start}
}
@media(max-width:900px){
  .mt-dash-heading-row,.mt-dash-task-heading{flex-direction:column}
  .mt-dash-period-tabs{width:100%}
  .mt-dash-period-tabs button{flex:1}
  .mt-dash-task-grid{grid-template-columns:1fr}
  .mt-dash-chart-meta{padding-left:40px;padding-right:40px;align-items:flex-start;flex-direction:column}
  .mt-dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
