/* =============================================================
   B2B Grow Lab — Dashboard mock (hero right column)
   Centrepiece. Solo paleta Royal / Sky / Blue / Night.
   ============================================================= */

.dash {
	background: var(--night);
	color: var(--night-ink);
	border-radius: var(--radius-card);
	border: 1px solid var(--night-rule);
	overflow: hidden;
	box-shadow:
		0 32px 80px -40px rgba(9, 51, 136, 0.45),
		0 1px 0 rgba(255, 255, 255, 0.05) inset;
	position: relative;
	font-family: "Geist", sans-serif;
}

/* ----- top bar ----- */
.dash-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid var(--night-rule);
	font-family: "Geist Mono", monospace;
	font-size: 10.5px;
	color: var(--night-ink-3);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.dash-bar .left { display: flex; align-items: center; gap: 12px; }
.dash-bar .dots { display: flex; gap: 6px; }
.dash-bar .dots i {
	width: 8px; height: 8px;
	border-radius: var(--radius-pill);
	background: #2f2d2e;
	display: inline-block;
}

.dash-body { padding: 20px; }

/* ----- KPIs ----- */
.kpis {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.kpi {
	background: var(--night-2);
	border: 1px solid var(--night-rule);
	border-radius: 12px;
	padding: 14px 16px;
}
.kpi .label {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	color: var(--night-ink-3);
	letter-spacing: 0.10em;
	text-transform: uppercase;
}
.kpi .value {
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -0.025em;
	margin-top: 6px;
	color: var(--night-ink);
}
.kpi .value .unit {
	font-size: 16px;
	color: var(--night-ink-2);
	margin-left: 1px;
}
.kpi .delta {
	font-family: "Geist Mono", monospace;
	font-size: 10.5px;
	color: #6EDDA1;
	margin-top: 4px;
	letter-spacing: 0.02em;
}
.kpi .delta.down { color: #E37C5A; }

/* ----- section heads dentro del dashboard ----- */
.dash-section-h {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin: 20px 0 10px;
}
.dash-section-h h4 {
	margin: 0;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--night-ink);
	letter-spacing: -0.005em;
}
.dash-section-h .meta {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	color: var(--night-ink-3);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ----- pipeline 5 cols ----- */
.pipe {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 6px;
}
.pipe .col {
	background: var(--night-2);
	border: 1px solid var(--night-rule);
	border-radius: 10px;
	padding: 10px 9px;
	min-height: 132px;
	display: flex;
	flex-direction: column;
}
.pipe .col h5 {
	margin: 0 0 8px;
	font-size: 9.5px;
	font-weight: 500;
	color: var(--night-ink-2);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.deal {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--night-rule);
	border-radius: 8px;
	padding: 7px 8px;
	margin-bottom: 6px;
}
.deal .co {
	font-size: 11.5px;
	color: var(--night-ink);
	font-weight: 500;
	line-height: 1.1;
}
.deal .amt {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	color: var(--accent-soft);
	margin-top: 3px;
	letter-spacing: 0.02em;
}
.deal.win {
	background: rgba(54, 100, 203, 0.16);
	border-color: rgba(54, 100, 203, 0.5);
}
.deal.win .amt { color: #BFD2F4; }

/* ----- forecast spark ----- */
.spark {
	margin-top: 4px;
	background: var(--night-2);
	border: 1px solid var(--night-rule);
	border-radius: 10px;
	padding: 14px;
}
.spark svg { width: 100%; height: 64px; display: block; }
.spark .x {
	display: flex;
	justify-content: space-between;
	font-family: "Geist Mono", monospace;
	font-size: 9.5px;
	color: var(--night-ink-3);
	margin-top: 6px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
}

/* ----- activity feed ----- */
.activity { margin-top: 14px; }
.activity .row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 7px 0;
	border-bottom: 1px dashed var(--night-rule);
	font-size: 12px;
}
.activity .row:last-child { border-bottom: 0; }
.activity .row .who { color: var(--night-ink); display: inline-flex; align-items: center; }
.activity .row .when {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	color: var(--night-ink-3);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.activity .row .dot {
	width: 6px; height: 6px;
	background: var(--accent);
	border-radius: var(--radius-pill);
	display: inline-block;
	margin-right: 8px;
}
.activity .row.warn .dot { background: #E3A04F; }

/* ----- floating overlays ----- */
.dash-overlays {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.diag-badge {
	position: absolute;
	left: -10px;
	top: 24px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule-strong);
	border-radius: var(--radius-pill);
	padding: 6px 12px 6px 6px;
	font-family: "Geist Mono", monospace;
	font-size: 10.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	box-shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.3);
}
.diag-badge .day {
	background: var(--accent);
	color: #fff;
	padding: 3px 8px;
	border-radius: var(--radius-pill);
	font-weight: 500;
}

.audit-tip {
	position: absolute;
	right: -14px;
	bottom: 24px;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule-strong);
	border-radius: 12px;
	padding: 12px 14px;
	max-width: 230px;
	font-size: 12px;
	line-height: 1.4;
	box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.35);
}
.audit-tip .lbl {
	font-family: "Geist Mono", monospace;
	font-size: 9.5px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin-bottom: 4px;
}
.audit-tip strong { font-weight: 500; }

@media (max-width: 1024px) {
	.diag-badge { left: 8px; top: 12px; }
	.audit-tip { right: 8px; bottom: 12px; }
}

/* Mobile: hacé los deal cards más compactos para que el pipeline 5 cols quepa */
@media (max-width: 520px) {
	.dash-body { padding: 16px; }
	.kpis { grid-template-columns: 1fr; }
	.pipe { grid-template-columns: repeat(5, minmax(98px, 1fr)); overflow-x: auto; padding-bottom: 6px; gap: 8px; }
	.pipe .col { min-height: 110px; }
}
