/* Panel admin vendeia · extiende vp.css. Shell grafito + bottom-nav móvil. */

.pnl-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100dvh; }

/* sidebar (desktop) */
.pnl-side { background: #17120e; color: #f3ece3; display: flex; flex-direction: column; gap: 4px;
  padding: 18px 14px; position: sticky; top: 0; height: 100dvh; }
.pnl-brand { font-family: var(--vp-disp); font-weight: 800; font-size: 1.28rem; letter-spacing: -.03em; padding: 6px 10px 14px; }
.pnl-brand span { color: var(--vp-brand); }
.pnl-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pnl-nav a { display: flex; align-items: center; gap: 11px; padding: .72em .8em; border-radius: 12px;
  font-weight: 500; font-size: .94rem; color: #c4b8a9; transition: background .15s, color .15s; }
.pnl-nav a .i { font-size: 1.05rem; width: 22px; text-align: center; }
.pnl-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.pnl-nav a.active { background: var(--vp-brand); color: #fff; box-shadow: var(--vp-sh-brand); }
.pnl-store { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; padding: 12px; }
.pnl-store b { font-size: .9rem; }
.pnl-store a { color: var(--vp-brand); font-size: .82rem; font-weight: 600; }
.pnl-store .plan { font-size: .74rem; color: #9c9183; margin-top: 2px; }

/* main */
.pnl-main { background: var(--vp-bg); min-width: 0; display: flex; flex-direction: column; }
.pnl-top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--vp-bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--vp-line); padding: 13px clamp(16px, 3vw, 30px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pnl-top h1 { font-size: 1.18rem; }
.pnl-top__r { display: flex; align-items: center; gap: 10px; }
.pnl-credits { display: inline-flex; align-items: center; gap: .4em; background: var(--vp-brand-soft); color: var(--vp-brand-ink);
  font-weight: 600; font-size: .82rem; padding: .42em .8em; border-radius: var(--vp-pill); }
.pnl-body { padding: clamp(18px, 3vw, 30px); max-width: 1120px; width: 100%; }

/* stat cards */
.pnl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; }
.pnl-stat { background: var(--vp-surface); border: 1px solid var(--vp-line); border-radius: var(--vp-r-lg);
  padding: 16px 18px; box-shadow: var(--vp-sh1); }
.pnl-stat .k { font-size: .8rem; color: var(--vp-ink-muted); font-weight: 500; display: flex; align-items: center; gap: .4em; }
.pnl-stat .v { font-family: var(--vp-disp); font-weight: 700; font-size: 1.7rem; margin-top: 5px; letter-spacing: -.01em; }
.pnl-stat .d { font-size: .76rem; font-weight: 600; margin-top: 3px; }
.pnl-stat .d.up { color: var(--vp-ok); }

/* layout 2-col */
.pnl-2col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1000px) { .pnl-2col { grid-template-columns: 1.5fr 1fr; } }

/* tabla */
.pnl-table { width: 100%; border-collapse: collapse; }
.pnl-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--vp-ink-muted); padding: 10px 16px; border-bottom: 1px solid var(--vp-line); }
.pnl-table td { padding: 13px 16px; border-bottom: 1px solid var(--vp-line); font-size: .9rem; }
.pnl-table tr:last-child td { border-bottom: 0; }
.pnl-table tr:hover td { background: var(--vp-surface-2); }

/* checklist onboarding */
.pnl-check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--vp-line); }
.pnl-check:last-child { border-bottom: 0; }
.pnl-check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--vp-line-strong);
  display: grid; place-items: center; flex: 0 0 auto; font-size: .8rem; color: transparent; }
.pnl-check.done .box { background: var(--vp-ok); border-color: var(--vp-ok); color: #fff; }
.pnl-check.done .t { color: var(--vp-ink-muted); text-decoration: line-through; }
.pnl-check .t { font-size: .92rem; font-weight: 500; flex: 1; }

.pnl-credit-bar { height: 8px; border-radius: 99px; background: var(--vp-surface-2); overflow: hidden; margin-top: 10px; }
.pnl-credit-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vp-brand), #ffb347); }

.pnl-section-h { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.pnl-section-h h2 { font-size: 1.05rem; }

/* nav móvil (bottom bar) */
.pnl-deskonly { }
@media (max-width: 860px) {
  .pnl-shell { grid-template-columns: 1fr; }
  .pnl-side { position: fixed; bottom: 0; left: 0; right: 0; top: auto; height: auto; flex-direction: row;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); gap: 2px; z-index: 30; border-top: 1px solid rgba(255,255,255,.08); }
  .pnl-brand, .pnl-store { display: none; }
  .pnl-nav { flex-direction: row; justify-content: space-around; gap: 0; flex: 1; }
  .pnl-nav a { flex-direction: column; gap: 3px; font-size: .64rem; padding: 5px 6px; border-radius: 12px; text-align: center; }
  .pnl-nav a.active { box-shadow: none; }
  .pnl-nav a.pnl-deskonly { display: none; }
  .pnl-main { padding-bottom: 70px; }
  .pnl-top { padding: 12px 16px; }
  .pnl-top h1 { font-size: 1.05rem; }
}
