/* IPOWale admin */
:root { --navy: #0a1a3f; --brand: #1d4ed8; --line: #e5e9f2; --bg: #f4f6fb; --muted: #64748b; --ink: #0f172a; }
body.admin { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: #334155; font-size: 14px; }
h1, h2, h3, h4, h5 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; color: var(--ink); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--navy); color: #94a3b8; overflow-y: auto; z-index: 1040; transition: transform .2s; }
.sb-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.2rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.sb-brand span { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.15rem; }
.sb-brand small { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(255,255,255,.12); padding: .1rem .4rem; border-radius: 4px; }
.sb-nav { padding: .5rem .6rem 2rem; }
.sb-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #64748b; padding: 1rem .6rem .35rem; font-weight: 700; }
.sb-nav a { display: flex; align-items: center; gap: .65rem; padding: .48rem .65rem; color: #cbd5e1; border-radius: 8px; text-decoration: none; font-size: .87rem; }
.sb-nav a.sub { padding-left: 2rem; font-size: .82rem; color: #94a3b8; }
.sb-nav a.sub i { display: none; }
.sb-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sb-nav a.active { background: var(--brand); color: #fff; }
.main { margin-left: 250px; min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: .65rem 1.5rem; }
.page-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.content { padding: 1.5rem; max-width: 1500px; }
.btn-icon { font-size: 1.4rem; line-height: 1; padding: .1rem .4rem; }
.sb-backdrop { display: none; }
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  body.sb-open .sidebar { transform: none; }
  body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
  .main { margin-left: 0; }
  .content { padding: 1rem; }
}
.card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 700; padding: .8rem 1rem; border-radius: 12px 12px 0 0 !important; display: flex; align-items: center; gap: .5rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; height: 100%; display: flex; flex-direction: column; }
.stat .v { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .8rem; }
.stat .ic { font-size: 1.1rem; color: var(--brand); }
.stat.warn .v { color: #b91c1c; }
.table { font-size: .87rem; }
.table thead th { background: #f8fafc; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; }
.table td { vertical-align: middle; }
.form-label { font-weight: 600; font-size: .82rem; margin-bottom: .25rem; }
.form-text { font-size: .76rem; }
.form-control, .form-select { font-size: .9rem; border-radius: 8px; }
.btn { border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--brand); border-color: var(--brand); }
.status-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 700; padding: .18rem .5rem; border-radius: 999px; text-transform: uppercase; }
.status-open, .status-success, .status-active, .status-published { background: #dcfce7; color: #15803d; }
.status-upcoming, .status-running { background: #e0e7ff; color: #4338ca; }
.status-closed, .status-partial, .status-draft { background: #fef3c7; color: #b45309; }
.status-allotment { background: #fae8ff; color: #a21caf; }
.status-listed { background: #e0f2fe; color: #0369a1; }
.status-cancelled, .status-failed, .status-inactive, .status-disabled { background: #fee2e2; color: #b91c1c; }
.status-skipped { background: #f1f5f9; color: #475569; }
.nav-tabs .nav-link { font-weight: 600; color: var(--muted); font-size: .88rem; }
.nav-tabs .nav-link.active { color: var(--brand); }
.tab-card { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; padding: 1.25rem; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(244,246,251,.95); backdrop-filter: blur(6px); padding: .75rem 0; border-top: 1px solid var(--line); margin-top: 1rem; z-index: 10; }
.logo-preview { width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); object-fit: contain; background: #fff; padding: 4px; }
.mini-logo { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); object-fit: contain; background: #fff; }
.initials { width: 30px; height: 30px; border-radius: 8px; background: #eef2ff; color: var(--navy); display: inline-grid; place-items: center; font-weight: 800; font-size: .7rem; }
.chart-wrap { position: relative; height: 280px; }
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.empty { text-align: center; color: var(--muted); padding: 2rem; }
.auth-body { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(900px 400px at 80% 0%, rgba(59,130,246,.25), transparent 60%), var(--navy); padding: 1rem; font-family: "Inter", system-ui, sans-serif; }
.auth-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.settings-nav .nav-link { color: #334155; font-weight: 500; border-radius: 8px; padding: .5rem .75rem; }
.settings-nav .nav-link.active { background: var(--brand); color: #fff; }
code { font-size: .82em; }
.log-msg { font-family: ui-monospace, monospace; font-size: .8rem; white-space: pre-wrap; }
.tab-content .tab-pane { display: none; } .tab-content .tab-pane.active { display: block; }
