/* CODSHIPX_AI_R110_R1_DASHBOARD_V2_PREMIUM */

.cx-dashboard-v2{
  display:grid;
  gap:14px;
  max-width:1500px;
  margin:0 auto;
}

.cx-dashboard-v2 .cx-dv2-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:22px 24px;
  border:1px solid #dfe7ef;
  border-radius:21px;
  background:
    radial-gradient(circle at 94% 0%,rgba(155,216,36,.13),transparent 30%),
    linear-gradient(135deg,#fff 0%,#fbfdf9 100%);
  box-shadow:0 12px 32px rgba(15,35,61,.055);
}

.cx-dv2-head-copy{min-width:0}

.cx-dv2-live{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#748196;
  font-size:10px;
  font-weight:850;
  letter-spacing:.1em;
}

.cx-dv2-live i,
.cx-dv2-status i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#8dd512;
  box-shadow:0 0 0 5px rgba(141,213,18,.11);
}

.cx-dv2-head h1{
  margin:7px 0 5px;
  color:#101d34;
  font-size:31px;
  line-height:1.06;
  letter-spacing:-.04em;
}

.cx-dv2-head p{
  max-width:720px;
  margin:0;
  color:#718096;
  font-size:12.5px;
  line-height:1.55;
}

.cx-dv2-head-actions{
  display:flex;
  align-items:center;
  gap:9px;
  flex:0 0 auto;
}

.cx-dv2-secondary,
.cx-dv2-codi,
.cx-dv2-text-button{
  appearance:none;
  border:1px solid #dfe7ef;
  background:#fff;
  color:#34445d;
  font:inherit;
  font-size:11px;
  font-weight:760;
  cursor:pointer;
}

.cx-dv2-secondary,
.cx-dv2-codi{
  min-height:39px;
  padding:0 14px;
  border-radius:12px;
}

.cx-dv2-codi{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#355014;
  border-color:#cce79d;
  background:linear-gradient(135deg,#fbfff4,#effbd8);
}

.cx-dv2-loading{
  padding:10px 13px;
  border:1px solid #dce5ed;
  border-radius:12px;
  background:#f8fbfd;
  color:#68788e;
  font-size:11px;
}

.cx-dv2-loading.warning{
  border-color:#eadfb8;
  background:#fffaf0;
  color:#836a28;
}

.cx-dashboard-v2 .cx-dv2-kpis{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:11px!important;
  overflow:visible!important;
}

.cx-dashboard-v2 .cx-dv2-kpis .metric-card{
  min-width:0!important;
  min-height:92px!important;
  margin:0!important;
  padding:15px!important;
  border:1px solid #e0e7ee!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:
    0 2px 4px rgba(15,31,55,.015),
    0 10px 26px rgba(19,44,78,.045)!important;
}

.cx-dashboard-v2 .cx-dv2-kpis .metric-card em{
  white-space:normal!important;
  text-align:right;
}

.cx-dv2-main{
  display:grid;
  grid-template-columns:minmax(360px,.9fr) minmax(0,1.1fr);
  gap:14px;
  align-items:start;
}

.cx-dv2-lower{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(340px,.72fr);
  gap:14px;
}

.cx-dv2-card{
  min-width:0;
  padding:20px;
  border:1px solid #e0e7ee;
  border-radius:21px;
  background:#fff;
  box-shadow:
    0 2px 4px rgba(15,31,55,.015),
    0 12px 30px rgba(19,44,78,.045);
}

.cx-dv2-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:15px;
  margin-bottom:15px;
  border-bottom:1px solid #edf1f5;
}

.cx-dv2-card-head.compact{
  margin-bottom:13px;
}

.cx-dv2-eyebrow{
  display:block;
  margin-bottom:4px;
  color:#8592a5;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.11em;
}

.cx-dv2-card-head h2{
  margin:0;
  color:#111f36;
  font-size:19px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.cx-dv2-card-head p{
  margin:5px 0 0;
  color:#7b899c;
  font-size:11px;
  line-height:1.5;
}

.cx-dv2-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  padding:6px 9px;
  border:1px solid #dcebc4;
  border-radius:999px;
  background:#f6fbe9;
  color:#588125;
  font-size:10px;
  font-weight:760;
}

.cx-dv2-signals{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-bottom:13px;
}

.cx-dv2-signals button{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:8px;
  align-items:center;
  min-width:0;
  padding:11px;
  border:1px solid #e5ebf1;
  border-radius:14px;
  background:#fbfcfd;
  text-align:left;
  cursor:pointer;
}

.cx-dv2-signals button>b{
  grid-column:2;
  color:#7a8798;
  font-size:9px;
}

.cx-dv2-signals small{
  display:block;
  color:#7a899d;
  font-size:9.5px;
}

.cx-dv2-signals strong{
  display:block;
  margin-top:2px;
  color:#142238;
  font-size:18px;
}

.cx-dv2-signal-icon{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:10px;
  font-size:13px;
  font-weight:900;
}

.cx-dv2-signal-icon.urgent{
  color:#c6535c;
  background:#fff0f1;
}

.cx-dv2-signal-icon.follow{
  color:#476fd6;
  background:#eef3ff;
}

.cx-dv2-signal-icon.reminder{
  color:#996914;
  background:#fff6df;
}

.cx-dv2-priority-list{
  display:grid;
  gap:7px;
}

.cx-dv2-priority-list>button{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  width:100%;
  padding:10px 11px;
  border:1px solid #e7ecf1;
  border-radius:13px;
  background:#fff;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.cx-dv2-rank{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px;
  background:#f1f5f8;
  color:#637389;
  font-size:10px;
  font-weight:850;
}

.cx-dv2-priority-copy{
  min-width:0;
}

.cx-dv2-priority-copy strong,
.cx-dv2-priority-copy small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cx-dv2-priority-copy strong{
  color:#19283d;
  font-size:11px;
}

.cx-dv2-priority-copy small{
  margin-top:3px;
  color:#8895a6;
  font-size:9.5px;
  text-transform:capitalize;
}

.cx-dv2-priority-list>button>b{
  color:#6f7e91;
  font-size:11px;
}

.cx-dv2-text-button{
  flex:0 0 auto;
  padding:6px 9px;
  border-radius:9px;
}

.cx-dv2-pipeline-list{
  display:grid;
  gap:12px;
}

.cx-dv2-stage{
  display:grid;
  gap:7px;
}

.cx-dv2-stage-row{
  display:grid;
  grid-template-columns:minmax(120px,1fr) auto minmax(90px,auto);
  gap:12px;
  align-items:center;
}

.cx-dv2-stage-row>span{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  overflow:hidden;
  color:#33435a;
  font-size:10.5px;
  font-weight:680;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cx-dv2-stage-row>span i{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
}

.cx-dv2-stage-row>b{
  color:#8290a2;
  font-size:9.5px;
  font-weight:650;
}

.cx-dv2-stage-row>strong{
  color:#16243a;
  font-size:11px;
  text-align:right;
}

.cx-dv2-stage-track{
  display:block;
  width:100%;
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#edf1f4;
}

.cx-dv2-stage-track>i{
  display:block;
  height:100%;
  min-width:4px;
  border-radius:inherit;
}

.cx-dv2-empty{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:92px;
  padding:15px;
  border:1px dashed #dbe3eb;
  border-radius:14px;
  background:#fafcfd;
}

.cx-dv2-empty>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
  border-radius:11px;
  background:#eef5e2;
  color:#679a17;
  font-weight:900;
}

.cx-dv2-empty div{
  min-width:0;
  flex:1;
}

.cx-dv2-empty strong{
  display:block;
  color:#26364c;
  font-size:11px;
}

.cx-dv2-empty small{
  display:block;
  margin-top:3px;
  color:#8290a2;
  font-size:9.5px;
  line-height:1.45;
}

.cx-dv2-empty button{
  padding:7px 9px;
  border:1px solid #dce6ce;
  border-radius:9px;
  background:#f4fae9;
  color:#557a21;
  font-size:9.5px;
  font-weight:760;
  cursor:pointer;
}

.cx-dv2-empty.good{
  min-height:72px;
}

.cx-dv2-momentum-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.cx-dv2-momentum-grid>div{
  padding:12px;
  border:1px solid #e8edf2;
  border-radius:13px;
  background:#fbfcfd;
}

.cx-dv2-momentum-grid small{
  display:block;
  color:#8190a3;
  font-size:9.5px;
}

.cx-dv2-momentum-grid strong{
  display:block;
  margin-top:5px;
  color:#15243a;
  font-size:18px;
  letter-spacing:-.025em;
}

.cx-dv2-quick-grid{
  display:grid;
  gap:7px;
}

.cx-dv2-quick-grid>button{
  display:grid;
  grid-template-columns:35px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  width:100%;
  padding:9px 10px;
  border:1px solid #e5ebf0;
  border-radius:13px;
  background:#fbfcfd;
  color:inherit;
  text-align:left;
  cursor:pointer;
}

.cx-dv2-quick-grid>button>span{
  display:grid;
  place-items:center;
  width:35px;
  height:35px;
  border:1px solid #e0e8ef;
  border-radius:11px;
  background:#f3f7fa;
  color:#59708e;
}

.cx-dv2-quick-grid>button.codi{
  border-color:#d9eab9;
  background:linear-gradient(135deg,#fbfff5,#f4fae8);
}

.cx-dv2-quick-grid>button.codi>span{
  border-color:#d5e8ae;
  background:#eaf8cf;
  color:#659513;
}

.cx-dv2-quick-grid strong{
  display:block;
  color:#1d2c42;
  font-size:10.5px;
}

.cx-dv2-quick-grid small{
  display:block;
  margin-top:2px;
  color:#8592a4;
  font-size:9.5px;
}

.cx-dv2-quick-grid>button>b{
  color:#748397;
  font-size:11px;
}

.cx-dv2-secondary:hover,
.cx-dv2-text-button:hover,
.cx-dv2-signals button:hover,
.cx-dv2-priority-list>button:hover,
.cx-dv2-quick-grid>button:hover{
  border-color:#bcd78d;
  background:#fbfff5;
}

@media (max-width:1180px){
  .cx-dashboard-v2 .cx-dv2-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .cx-dv2-main,
  .cx-dv2-lower{
    grid-template-columns:1fr;
  }
}

@media (max-width:760px){
  .cx-dashboard-v2{
    gap:10px;
  }

  .cx-dashboard-v2 .cx-dv2-head{
    align-items:flex-start;
    padding:17px;
    border-radius:17px;
    flex-direction:column;
  }

  .cx-dv2-head-actions{
    width:100%;
  }

  .cx-dv2-head-actions button{
    flex:1;
  }

  .cx-dashboard-v2 .cx-dv2-kpis{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  .cx-dashboard-v2 .cx-dv2-kpis .metric-card{
    min-height:82px!important;
    padding:12px!important;
  }

  .cx-dv2-card{
    padding:15px;
    border-radius:17px;
  }

  .cx-dv2-signals{
    grid-template-columns:1fr;
  }

  .cx-dv2-momentum-grid{
    grid-template-columns:1fr 1fr;
  }

  .cx-dv2-stage-row{
    grid-template-columns:minmax(0,1fr) auto;
  }

  .cx-dv2-stage-row>strong{
    grid-column:1/-1;
    text-align:left;
  }
}

@media (max-width:470px){
  .cx-dashboard-v2 .cx-dv2-kpis{
    grid-template-columns:1fr!important;
  }
}
