/* NexoProCRM v0.17.7 · Ajustes finos del dashboard
   Capa visual: reduce peso/tamaño de métricas y recupera detalles rojos discretos. */
.ch301-dashboard-v3{
  display:grid;
  gap:16px;
}
.ch301-dashboard-hero{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:24px 26px;
  border:1px solid var(--nxp-border);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--nxp-shadow-sm);
}
.ch301-dashboard-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
  color:#667085;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.ch301-dashboard-kicker:before{
  content:"";
  width:22px;
  height:3px;
  border-radius:999px;
  background:#d71920;
}
.ch301-dashboard-hero h2{
  margin:0;
  color:#111827;
  font-size:28px;
  line-height:1.12;
  letter-spacing:-.035em;
  font-weight:800;
}
.ch301-dashboard-hero p{
  max-width:760px;
  margin:8px 0 0;
  color:#667085;
  font-size:15px;
  line-height:1.55;
}
.ch301-dashboard-today{
  flex:0 0 auto;
  min-width:150px;
  padding:14px 16px;
  border:1px solid #dfe5ec;
  border-radius:16px;
  background:#f8fafc;
  text-align:right;
}
.ch301-dashboard-today span{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}
.ch301-dashboard-today strong{
  display:block;
  margin-top:4px;
  color:#202832;
  font-size:17px;
  font-weight:800;
}
.ch301-dashboard-primary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.ch301-dashboard-kpi{
  position:relative;
  min-height:164px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:20px;
  border:1px solid var(--nxp-border);
  border-radius:20px;
  background:#fff;
  color:#202832;
  text-decoration:none!important;
  box-shadow:var(--nxp-shadow-sm);
  overflow:hidden;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.ch301-dashboard-kpi:before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:4px;
  background:#dfe5ec;
}
.ch301-dashboard-kpi:after{
  content:"";
  position:absolute;
  left:20px;
  top:0;
  width:46px;
  height:4px;
  border-radius:0 0 999px 999px;
  background:#d71920;
}
.ch301-dashboard-kpi:hover{
  transform:translateY(-2px);
  box-shadow:var(--nxp-shadow);
  border-color:#cbd5df;
}
.ch301-dashboard-kpi-icon{
  position:absolute;
  top:18px;
  right:18px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#f1f4f7;
  color:#313a46;
  font-size:17px;
  font-weight:800;
}
.ch301-dashboard-kpi-label{
  display:block;
  color:#667085;
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ch301-dashboard-kpi strong{
  display:block;
  margin-top:9px;
  color:#0f172a;
  font-size:29px;
  line-height:1;
  letter-spacing:-.035em;
  font-weight:800;
}
.ch301-dashboard-kpi small{
  display:block;
  margin-top:10px;
  color:#667085;
  font-size:13px;
  font-weight:700;
}
.ch301-dashboard-kpi--dark:before{background:#202832;}
.ch301-dashboard-kpi--dark .ch301-dashboard-kpi-icon{background:#202832;color:#fff;}
.ch301-dashboard-kpi--warning:before{background:#d71920;}
.ch301-dashboard-kpi--warning .ch301-dashboard-kpi-icon{background:#fff1f2;color:#b71118;}
.ch301-dashboard-kpi--neutral:before{background:#cbd5df;}
.ch301-dashboard-section,
.ch301-dashboard-actions-panel,
.ch301-dashboard-export-panel,
.ch301-dashboard-activity{
  border-radius:20px!important;
}
.ch301-dashboard-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.ch301-dashboard-section-head h2{
  margin:0;
  color:#111827!important;
  font-size:20px;
  letter-spacing:-.02em;
  font-weight:800;
}
.ch301-dashboard-section-head p{
  margin:5px 0 0;
  color:#667085!important;
  font-size:14px;
  line-height:1.45;
}
.ch301-dashboard-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.ch301-dashboard-mini{
  position:relative;
  min-height:90px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:15px 16px 15px 18px;
  border:1px solid #e4e9f0;
  border-radius:16px;
  background:#fff;
  text-decoration:none!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.ch301-dashboard-mini:before{
  content:"";
  position:absolute;
  left:0;
  top:18px;
  bottom:18px;
  width:3px;
  border-radius:0 999px 999px 0;
  background:#eef2f6;
}
.ch301-dashboard-mini:hover:before{background:#d71920;}
.ch301-dashboard-mini:hover{
  background:#f8fafc;
  border-color:#cbd5df;
  transform:translateY(-1px);
}
.ch301-dashboard-mini strong{
  color:#0f172a;
  font-size:22px;
  line-height:1;
  letter-spacing:-.025em;
  font-weight:800;
}
.ch301-dashboard-mini span{
  margin-top:8px;
  color:#667085;
  font-size:13px;
  font-weight:700;
}
.ch301-dashboard-action-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.ch301-dashboard-action{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border:1px solid #dfe5ec;
  border-radius:14px;
  background:#fff;
  color:#202832!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:950;
  text-align:center;
  box-shadow:0 8px 18px rgba(17,24,39,.04);
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease;
}
.ch301-dashboard-action:hover{
  background:#f8fafc;
  border-color:#cbd5df;
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(17,24,39,.07);
}
.ch301-dashboard-action--primary{
  background:#202832;
  border-color:#202832;
  color:#fff!important;
}
.ch301-dashboard-action--primary:hover{
  background:#111827;
  border-color:#111827;
  color:#fff!important;
}
.ch301-dashboard-action--ghost{
  background:#f8fafc;
  color:#475467!important;
}
.ch301-dashboard-export-panel{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-left:0!important;
  border-top:1px solid #dfe5ec!important;
}
.ch301-dashboard-export-panel h2{
  margin:0;
  font-size:20px;
  letter-spacing:-.02em;
}
.ch301-dashboard-export-panel p{
  margin:5px 0 0;
  color:#667085!important;
}
.ch301-dashboard-export-panel .ch301-export-actions{
  flex:0 0 auto;
}
.ch301-dashboard-export-panel .ch301-export-form{
  align-items:flex-end;
}
.ch301-dashboard-activity .ch301-dashboard-columns{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
.ch301-dashboard-list-card{
  min-width:0;
  padding:16px;
  border:1px solid #e4e9f0;
  border-radius:16px;
  background:#fff;
}
.ch301-dashboard-list-card h3{
  margin:0 0 12px!important;
  color:#111827!important;
  font-size:16px!important;
  font-weight:800!important;
}
.ch301-dashboard-list-card .ch301-timeline{
  margin:0!important;
}
.ch301-dashboard-list-card .ch301-timeline li{
  border-color:#eef2f6!important;
}
.ch301-dashboard-list-card .ch301-timeline-link{
  color:#202832!important;
}
.ch301-dashboard-list-card .ch301-timeline-link span,
.ch301-dashboard-list-card .ch301-section-hint{
  color:#667085!important;
}
@media(max-width:1320px){
  .ch301-dashboard-primary-grid,
  .ch301-dashboard-metric-grid,
  .ch301-dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:860px){
  .ch301-dashboard-hero,
  .ch301-dashboard-export-panel{display:block;}
  .ch301-dashboard-today{margin-top:14px;text-align:left;}
  .ch301-dashboard-hero h2{font-size:24px;}
  .ch301-dashboard-primary-grid,
  .ch301-dashboard-metric-grid,
  .ch301-dashboard-action-grid,
  .ch301-dashboard-activity .ch301-dashboard-columns{grid-template-columns:1fr!important;}
  .ch301-dashboard-kpi{min-height:140px;}
  .ch301-dashboard-kpi strong{font-size:27px;}
  .ch301-dashboard-export-panel .ch301-export-actions{margin-top:14px;}
}
@media(max-width:540px){
  .ch301-dashboard-hero{padding:20px;}
  .ch301-dashboard-action{justify-content:flex-start;}
}

/* v0.17.7 · detalle rojo discreto en títulos de panel del dashboard */
.ch301-dashboard-section-head h2{
  position:relative;
  padding-left:14px;
}
.ch301-dashboard-section-head h2:before{
  content:"";
  position:absolute;
  left:0;
  top:.18em;
  bottom:.18em;
  width:4px;
  border-radius:999px;
  background:#d71920;
}
