/* Estilos propios del panel de control (complementan a Unfold). */
.bd-dash { --bd-green: #0b472e; --bd-amber: #f59e0b; --bd-text: #0f172a; --bd-muted: #64748b; --bd-line: #e2e8f0; --bd-card: #fff; --bd-soft: #f8fafc; display: flex; flex-direction: column; gap: 24px; color: var(--bd-text); }
.dark .bd-dash { --bd-green: #34d399; --bd-text: #f1f5f9; --bd-muted: #94a3b8; --bd-line: #1e293b; --bd-card: #0f172a; --bd-soft: #111c30; }

.bd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.bd-head h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.bd-head p { color: var(--bd-muted); margin-top: 2px; }

.bd-btn { display: inline-flex; align-items: center; gap: 6px; background: #0b472e; color: #fff !important; font-weight: 600; padding: 9px 16px; border-radius: 8px; transition: background .15s; }
.bd-btn:hover { background: #063622; }
.bd-btn .material-symbols-outlined { font-size: 18px; }
.bd-btn--sm { padding: 5px 10px; font-size: 12px; }

.bd-card { background: var(--bd-card); border: 1px solid var(--bd-line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgb(0 0 0 / .04); }
.bd-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bd-card__head h2 { font-weight: 600; font-size: 15px; }
.bd-card__head a { color: var(--bd-green); font-weight: 600; font-size: 13px; }

.bd-kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.bd-kpi { position: relative; display: flex; flex-direction: column; gap: 4px; transition: transform .15s, box-shadow .15s; }
.bd-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgb(11 71 46 / .25); }
.bd-kpi__icon { position: absolute; right: 18px; top: 18px; color: var(--bd-green); opacity: .8; font-size: 28px !important; }
.bd-kpi__label { color: var(--bd-muted); font-size: 13px; font-weight: 500; }
.bd-kpi__value { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bd-kpi__detail { color: var(--bd-muted); font-size: 12px; }
.bd-kpi--hot { border-color: var(--bd-amber); background: linear-gradient(135deg, rgb(245 158 11 / .12), transparent 60%), var(--bd-card); }
.bd-kpi--hot .bd-kpi__icon { color: var(--bd-amber); }

.bd-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .bd-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.bd-col { display: flex; flex-direction: column; gap: 24px; }

.bd-table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-table th { text-align: left; font-weight: 600; color: var(--bd-muted); padding: 8px 20px; background: var(--bd-soft); border-bottom: 1px solid var(--bd-line); white-space: nowrap; }
.bd-table td { padding: 10px 20px; border-bottom: 1px solid var(--bd-line); vertical-align: top; }
.bd-table tr:last-child td { border-bottom: 0; }
.bd-table td a { color: var(--bd-green); font-weight: 600; font-variant-numeric: tabular-nums; }
.bd-table small { display: block; color: var(--bd-muted); }

.bd-tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.bd-tag--hot { background: rgb(245 158 11 / .15); color: #b45309; }
.dark .bd-tag--hot { color: #fbbf24; }
.bd-tag--no { background: rgb(239 68 68 / .12); color: #dc2626; margin-left: 4px; }

.bd-empty { color: var(--bd-muted); padding: 24px 0; text-align: center; }
.bd-note { color: var(--bd-muted); font-size: 13px; margin-top: 12px; }
.bd-note strong { color: var(--bd-text); }

.bd-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; height: 150px; align-items: end; }
.bd-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bd-bar__fill { width: 100%; max-width: 34px; min-height: 3px; background: #0b472e; border-radius: 4px 4px 0 0; }
.dark .bd-bar__fill { background: #10b981; }
.bd-bar__n { font-size: 11px; font-weight: 600; color: var(--bd-muted); }
.bd-bar__d { font-size: 11px; color: var(--bd-muted); }

.bd-steps { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.bd-steps li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--bd-line); border-radius: 10px; background: var(--bd-soft); }
.bd-step { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #0b472e; color: #fff; font-size: 12px; font-weight: 700; }
.bd-step__name { font-weight: 600; flex: 1; }
.bd-link { display: inline-flex; align-items: center; gap: 4px; color: var(--bd-green); font-weight: 600; font-size: 12px; }
.bd-link .material-symbols-outlined { font-size: 16px; }
