/* Panel admin compartido de las demos (sobrio a propósito: es la "trastienda"). */
:root { --ink:#16181d; --muted:#626976; --line:#e3e5ea; --bg:#f5f6f8; --card:#fff; --acc:#2f5bea; --ok:#13795b; --bad:#b42318; }
* { box-sizing: border-box; }
body.adm { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--acc); }
.adm-demobar { background: #111; color: #eee; font-size: 12.5px; padding: 7px 14px; text-align: center; }
.adm-demobar a { color: #ffd166; font-weight: 600; }
.adm-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 20px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.adm-brand { font-weight: 800; font-size: 17px; color: var(--ink); text-decoration: none; }
.adm-brand small { font-weight: 600; color: var(--muted); font-size: 12px; margin-left: 4px; text-transform: uppercase; letter-spacing: .08em; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-nav a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.adm-nav a:hover { background: var(--bg); color: var(--ink); }
.adm-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.adm-main { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.adm-main h1 { font-size: 24px; margin: 0 0 4px; }
.adm-main h2 { font-size: 18px; margin: 28px 0 10px; }
.adm-muted { color: var(--muted); font-size: 14px; }
.adm-ok, .adm-alert { padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.adm-ok { background: #e7f6ef; color: var(--ok); }
.adm-alert { background: #fdecea; color: var(--bad); }
.adm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0; }
.adm-stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.adm-stat b { display: block; font-size: 26px; }
.adm-stat span { color: var(--muted); font-size: 13px; }
.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.adm-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
table.adm-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm-table th, .adm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.adm-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfc; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg); }
.adm-pill.is-new { background: #e8eefe; color: var(--acc); }
.adm-pill.is-ok { background: #e7f6ef; color: var(--ok); }
.adm-pill.is-off { background: #fdecea; color: var(--bad); }
.adm-form { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.adm-form .full { grid-column: 1 / -1; }
.adm label, .adm-login label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.adm input, .adm select, .adm textarea { font: inherit; color: var(--ink); padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; }
.adm textarea { min-height: 80px; resize: vertical; }
.adm input:focus, .adm select:focus, .adm textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.adm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; padding: 9px 16px; border-radius: 9px; border: 0; background: var(--ink); color: #fff; cursor: pointer; text-decoration: none; }
.adm-btn.is-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.adm-btn.is-danger { background: var(--bad); }
.adm-btn.is-sm { padding: 5px 10px; font-size: 13px; }
.adm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-inline { display: inline; }
.adm-login { max-width: 380px; margin: 40px auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 14px; }
.adm-login h1 { margin: 0; font-size: 22px; }
@media (max-width: 640px) {
  .adm-table thead { display: none; }
  .adm-table, .adm-table tbody, .adm-table tr, .adm-table td { display: block; width: 100%; }
  .adm-table tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .adm-table td { border: 0; padding: 4px 12px; }
  .adm-table td[data-th]::before { content: attr(data-th) " · "; font-weight: 700; color: var(--muted); font-size: 12px; }
}
