/* Stock HUB panel */
:root { --ac: #0f766e; --ac2: #14b8a6; --acs: #f0fdfa; --ink: #0f172a; --mut: #64748b; --soft: #94a3b8; --line: #e8ebf0; --bg: #f6f8fb;
  --green: #16a34a; --green-s: #dcfce7; --red: #dc2626; --red-s: #fee2e2; --amber: #b45309; --amber-s: #fef3c7; --blue: #1d4ed8; --blue-s: #dbeafe; --purple: #7c3aed; --purple-s: #ede9fe; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.adm-ic { display: block; flex-shrink: 0; }
.hb-shell { display: flex; min-height: 100vh; }
.hb-side { width: 252px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 14px; }
.hb-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 16px; }
.hb-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px -6px #0f766e; }
.hb-brand b { display: block; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.hb-brand span { font-size: 11.5px; color: var(--soft); }
.hb-hubcard { border-radius: 14px; padding: 13px 14px; background: linear-gradient(160deg, #f0fdfa, #fff 80%); border: 1px solid #ccfbf1; margin-bottom: 14px; }
.hb-hubcard small { font-size: 11px; font-weight: 700; color: var(--ac); letter-spacing: .05em; }
.hb-hubcard b { display: block; font-size: 14.5px; margin: 2px 0; }
.hb-hubcard span { display: block; font-size: 12px; color: var(--mut); margin-bottom: 8px; }
.hb-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: #334155; font-weight: 600; margin-bottom: 3px; }
.hb-nav a:hover { background: #f8fafc; }
.hb-nav a.on { background: var(--acs); color: var(--ac); }
.hb-nav a span { flex: 1; }
.hb-nav a i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hb-side-foot { margin-top: auto; }
.hb-side-foot a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--mut); font-weight: 600; font-size: 13px; }
.hb-side-foot a:hover { background: #f8fafc; color: var(--ink); }
.hb-main { flex: 1; min-width: 0; }
.hb-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 20; }
.hb-top h1 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.hb-top-r { display: flex; gap: 8px; align-items: center; }
.hb-adminview { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #eef2ff; color: #4338ca; font-size: 12px; font-weight: 700; }
.hb-live { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 700; color: var(--green); }
.hb-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: hbPulse 1.6s infinite; }
@keyframes hbPulse { 50% { opacity: .3; } }
.hb-banner { display: flex; gap: 10px; align-items: center; padding: 11px 26px; font-size: 13.5px; }
.hb-banner.red { background: var(--red-s); color: #991b1b; }
.hb-content { padding: 22px 26px 40px; }
.hb-alert { padding: 11px 14px; border-radius: 11px; margin-bottom: 16px; font-weight: 600; font-size: 13.5px; }
.hb-alert.success { background: var(--green-s); color: #166534; }
.hb-alert.error { background: var(--red-s); color: #991b1b; }
.hb-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; }
.hb-card h3 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.hb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hb-stat { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 15px; display: flex; gap: 12px; align-items: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hb-stat:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(15,23,42,.2); }
.hb-stat .ib { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--s); color: var(--c); }
.hb-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.hb-stat span { font-size: 12px; color: var(--mut); }
.hb-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 7px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: #f1f5f9; color: #334155; }
.hb-chip.green { background: var(--green-s); color: #166534; } .hb-chip.red { background: var(--red-s); color: #991b1b; } .hb-chip.amber { background: var(--amber-s); color: var(--amber); }
.hb-chip.blue { background: var(--blue-s); color: var(--blue); } .hb-chip.purple { background: var(--purple-s); color: var(--purple); } .hb-chip.teal { background: #ccfbf1; color: var(--ac); } .hb-chip.gray { background: #f1f5f9; color: #475569; } .hb-chip.dark { background: #0f172a; color: #fff; }
.hb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.hb-tabs a { padding: 8px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 13px; color: #475569; }
.hb-tabs a.on { background: var(--ac); border-color: var(--ac); color: #fff; }
.hb-tabs a em { font-style: normal; opacity: .75; margin-left: 3px; }
.hb-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.hb-filter input, .hb-filter select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 13.5px; background: #fff; }
.hb-filter input[type=search] { flex: 1; min-width: 220px; }
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.hb-btn:hover { border-color: #cbd5e1; }
.hb-btn.ac { background: var(--ac); border-color: var(--ac); color: #fff; }
.hb-btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.hb-btn.red { color: var(--red); }
.hb-btn.sm { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.hb-btn:disabled { opacity: .5; cursor: default; }
.hb-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.hb-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hb-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--mut); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; white-space: nowrap; }
.hb-table td { padding: 12px 14px; border-bottom: 1px solid #f1f3f7; vertical-align: top; }
.hb-table tr:last-child td { border-bottom: 0; }
.hb-table tr.click { cursor: pointer; }
.hb-table tr.click:hover td { background: #fafcfd; }
.hb-mut { color: var(--mut); font-size: 12.5px; }
.nw { white-space: nowrap; }
.hb-empty { padding: 40px 20px; text-align: center; color: var(--mut); }
.hb-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hb-kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13.5px; }
.hb-kv span { color: var(--mut); }
.hb-kv b { font-weight: 600; word-break: break-word; }
.hb-otp { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, #0f766e, #14b8a6); color: #fff; }
.hb-otp b { font-size: 30px; letter-spacing: .25em; font-weight: 800; }
.hb-otp small { display: block; font-size: 11.5px; opacity: .85; text-transform: uppercase; letter-spacing: .08em; }
.hb-items { width: 100%; border-collapse: collapse; }
.hb-items td { padding: 10px 0; border-bottom: 1px solid #f1f3f7; vertical-align: top; }
.hb-items tr:last-child td { border-bottom: 0; }
.hb-items .d { font-size: 12.5px; color: var(--mut); margin-top: 3px; line-height: 1.5; }
.hb-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid #e2e8f0; }
.hb-tl li { position: relative; padding: 0 0 12px 10px; font-size: 13px; }
.hb-tl li::before { content: ''; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ac2); border: 2px solid #fff; box-shadow: 0 0 0 1px #99f6e4; }
.hb-tl li small { display: block; color: var(--soft); font-size: 11.5px; }
.hb-field { margin-bottom: 12px; }
.hb-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 5px; color: #334155; }
.hb-field input, .hb-field select, .hb-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.hb-rider { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.hb-rider .av { width: 40px; height: 40px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.hb-rider .av img { width: 100%; height: 100%; object-fit: cover; }
.hb-rider .t { flex: 1; min-width: 0; }
.hb-rider .t b { display: block; font-size: 13.5px; }
.hb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; margin-right: 5px; }
.hb-dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-s); }
.hb-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.hb-bnav { display: none; }
#hbToasts { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.hb-toast { background: #0f172a; color: #fff; padding: 11px 15px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 12px 30px rgba(15,23,42,.3); max-width: 340px; }
.hb-toast.success { background: #166534; } .hb-toast.error, .hb-toast.red { background: #991b1b; } .hb-toast.green { background: #166534; }
@media (max-width: 1200px) { .hb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .hb-side { display: none; }
  .hb-content { padding: 16px 14px 90px; }
  .hb-top { padding: 12px 16px; }
  .hb-banner { padding: 10px 16px; }
  .hb-grid { grid-template-columns: minmax(0, 1fr); }
  .hb-table-wrap { border-radius: 14px; }
  .hb-table.cards thead { display: none; }
  .hb-table.cards, .hb-table.cards tbody, .hb-table.cards tr, .hb-table.cards td { display: block; width: 100%; }
  .hb-table.cards tr { padding: 12px 14px; border-bottom: 1px solid #f1f3f7; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
  .hb-table.cards td { padding: 0; border: 0; max-width: none !important; }
  .hb-table.cards td:nth-child(n+3) { grid-column: 1 / -1; }
  .hb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 40; }
  .hb-bnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none; color: var(--mut); font-size: 11px; font-weight: 700; padding: 4px 0; }
  .hb-bnav .adm-ic { margin: 0 auto; }
  .hb-kv { grid-template-columns: 110px 1fr; }
  #hbToasts { bottom: 80px; left: 16px; right: 16px; }
}
