/* ============================================================
   Webspot Partner Accounts — Dr. Jonah Tebaa brand
   ============================================================ */
:root {
  --bg-primary: #0a1a1f;
  --bg-deep: #060f12;
  --accent: #00e5d4;
  --accent-orange: #f05a1a;
  --text: #ffffff;
  --text-secondary: #a0c4c0;
  --text-muted: #5a8a84;

  --glass-bg: rgba(0, 229, 212, 0.03);
  --glass-border: rgba(0, 229, 212, 0.08);
  --glass-border-hover: rgba(0, 229, 212, 0.18);
  --glass-blur: blur(16px);

  --r-card: 16px;
  --r-input: 8px;
  --r-pill: 100px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.3);
  --glow: 0 0 20px rgba(0, 229, 212, 0.15);

  --sidebar-w: 248px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 229, 212, 0.06), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0, 229, 212, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-primary), var(--bg-deep));
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

[hidden] { display: none !important; }

/* ---------------- Floating orbs ---------------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 229, 212, 0.25), transparent 70%);
  animation: float 18s var(--ease) infinite alternate;
}
.orb-1 { width: 420px; height: 420px; top: -120px; right: -80px; }
.orb-2 { width: 360px; height: 360px; bottom: -140px; left: -100px; animation-delay: -6s; }
.orb-3 { width: 280px; height: 280px; top: 40%; left: 55%; opacity: 0.25; animation-delay: -12s; }
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.1); }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------------- Glass primitive ---------------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}

/* ============================================================
   LOGIN
   ============================================================ */
.login-screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: var(--r-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: rise 0.6s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.login-brand { text-align: center; margin-bottom: 6px; }
.login-title { display: flex; flex-direction: column; gap: 2px; font-size: 1.7rem; line-height: 1.05; }
.t-white { color: var(--text); }
.t-cyan { color: var(--accent); text-shadow: var(--glow); }
.login-sub { color: var(--text-muted); font-size: 0.85rem; margin: 10px 0 0; }
.login-foot {
  text-align: center;
  color: var(--text-muted);
  font-family: "Montserrat", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  margin: 6px 0 0;
}

/* ---------------- Form fields ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
}
input, select, textarea {
  background: rgba(6, 15, 18, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-input);
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow);
}
select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300e5d4' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-error {
  color: var(--accent-orange);
  background: rgba(240, 90, 26, 0.08);
  border: 1px solid rgba(240, 90, 26, 0.3);
  border-radius: var(--r-input);
  padding: 9px 12px;
  font-size: 0.85rem;
  margin: 0;
}
.field-hint { font-size: 0.74rem; color: var(--text-muted); margin: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 212, 0.05);
  color: var(--text);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--glass-border-hover); transform: translateY(-1px); }
.btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .lucide, .btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, rgba(0, 229, 212, 0.22), rgba(0, 229, 212, 0.08));
  border-color: rgba(0, 229, 212, 0.4);
  color: var(--text);
}
.btn-primary:hover { box-shadow: var(--glow); border-color: var(--accent); }
.btn-danger { color: var(--accent-orange); border-color: rgba(240, 90, 26, 0.3); background: rgba(240, 90, 26, 0.06); }
.btn-danger:hover { border-color: rgba(240, 90, 26, 0.6); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn-label { opacity: 0.5; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 229, 212, 0.04);
  border-radius: 10px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.icon-btn:hover { color: var(--accent); border-color: var(--glass-border-hover); }
.icon-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--glow); }
.icon-btn .lucide, .icon-btn svg { width: 17px; height: 17px; }
.icon-btn.tiny { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn.tiny .lucide, .icon-btn.tiny svg { width: 14px; height: 14px; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell { position: relative; z-index: 1; display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-right: 1px solid var(--glass-border);
  border-radius: 0;
  z-index: 40;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), rgba(0, 229, 212, 0.3));
  box-shadow: var(--glow);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Montserrat"; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.06em; }
.brand-text span { font-size: 0.72rem; color: var(--text-muted); }
.sidebar-close { display: none; margin-left: auto; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.nav-item .lucide, .nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: var(--text); background: rgba(0, 229, 212, 0.05); }
.nav-item.active {
  color: var(--accent);
  background: rgba(0, 229, 212, 0.08);
  border-color: var(--glass-border-hover);
}
.sidebar-foot {
  text-align: center; color: var(--text-muted);
  font-family: "Montserrat"; font-size: 0.58rem; letter-spacing: 0.26em;
  padding-top: 14px;
}

.sidebar-backdrop {
  position: fixed; inset: 0; z-index: 35;
  background: rgba(6, 15, 18, 0.6);
  backdrop-filter: blur(3px);
}

.main-col {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px;
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.sidebar-open { display: none; }
.topbar-right { margin-left: auto; }
.user-chip { display: flex; align-items: center; gap: 12px; }
.user-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; line-height: 1; }
.user-name { font-size: 0.86rem; font-weight: 600; }
.role-pill {
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(0, 229, 212, 0.1); color: var(--accent);
  border: 1px solid var(--glass-border);
  font-weight: 700;
}
.role-pill.role-viewer { background: rgba(90, 138, 132, 0.15); color: var(--text-secondary); }
.role-pill.role-data_entry { background: rgba(160, 196, 192, 0.12); color: var(--text-secondary); }

.view { padding: 26px 22px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }
.view:focus { outline: none; }

/* ---------------- Section headers ---------------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
}
.section-head h1 { font-size: 1.5rem; }
.section-head .sub { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.explainer {
  font-size: 0.82rem; color: var(--text-secondary);
  background: rgba(0, 229, 212, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 22px;
  display: flex; gap: 10px; align-items: flex-start;
}
.explainer .lucide, .explainer svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px; margin-bottom: 26px;
}
.kpi {
  border-radius: var(--r-card); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi .kpi-label {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); font-weight: 600;
}
.kpi .kpi-value { font-family: "Montserrat"; font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; }
.kpi .kpi-meta { font-size: 0.72rem; color: var(--text-muted); }
.kpi-value.pos { color: var(--accent); }
.kpi-value.neg { color: var(--accent-orange); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-bottom: 26px;
}
.partner-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-card); padding: 22px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.partner-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.partner-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px 120px at 100% 0%, rgba(0, 229, 212, 0.07), transparent 70%);
  pointer-events: none;
}
.partner-card.is-owes::before { background: radial-gradient(220px 120px at 100% 0%, rgba(240, 90, 26, 0.08), transparent 70%); }
.partner-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; }
.partner-name { font-family: "Montserrat"; font-weight: 700; font-size: 1.05rem; }
.partner-pct {
  font-size: 0.68rem; color: var(--text-secondary);
  background: rgba(0, 229, 212, 0.08); border: 1px solid var(--glass-border);
  padding: 3px 9px; border-radius: var(--r-pill); font-weight: 600; white-space: nowrap;
}
.partner-balance { font-family: "Montserrat"; font-weight: 900; font-size: 2rem; margin: 16px 0 4px; position: relative; }
.partner-balance.cyan { color: var(--accent); text-shadow: 0 0 24px rgba(0, 229, 212, 0.25); }
.partner-balance.orange { color: var(--accent-orange); text-shadow: 0 0 24px rgba(240, 90, 26, 0.2); }
.partner-balance.muted { color: var(--text-muted); }
.balance-label {
  font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 600; position: relative;
}
.balance-label.cyan { color: var(--accent); }
.balance-label.orange { color: var(--accent-orange); }
.balance-label.muted { color: var(--text-muted); }
.partner-foot { margin-top: 14px; font-size: 0.74rem; color: var(--text-muted); position: relative; }

.dash-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .dash-lower { grid-template-columns: 1fr; } }
.bank-card { border-radius: var(--r-card); padding: 22px; }
.card-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--glass-border); }
.bank-row:last-child { border-bottom: none; }
.bank-row .name { font-weight: 600; }
.bank-row .bal { font-family: "Montserrat"; font-weight: 800; font-size: 1.1rem; }
.chart-card { border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; }
.chart-wrap { position: relative; flex: 1; min-height: 220px; }

/* ============================================================
   TABLE / TRANSACTIONS
   ============================================================ */
.filters {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 12px;
  margin-bottom: 18px;
}
@media (max-width: 820px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.filters .field { gap: 5px; }

.table-card { border-radius: var(--r-card); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
thead th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 700;
  padding: 13px 16px; border-bottom: 1px solid var(--glass-border);
  white-space: nowrap; position: sticky; top: 0;
  background: rgba(6, 15, 18, 0.7); backdrop-filter: blur(6px);
}
tbody td { padding: 13px 16px; border-bottom: 1px solid rgba(0, 229, 212, 0.05); font-size: 0.88rem; vertical-align: middle; }
tbody tr { transition: background 0.15s var(--ease); }
tbody tr:hover { background: rgba(0, 229, 212, 0.03); }
tbody tr:last-child td { border-bottom: none; }
.col-amount { text-align: right; font-family: "Montserrat"; font-weight: 700; white-space: nowrap; }
.col-amount.pos { color: var(--accent); }
.col-amount.neg { color: var(--accent-orange); }
.col-actions { text-align: right; white-space: nowrap; }
.row-actions { display: inline-flex; gap: 6px; }
.cell-desc { font-weight: 500; }
.cell-note { color: var(--text-muted); font-size: 0.82rem; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.acct-tag {
  font-size: 0.72rem; padding: 3px 9px; border-radius: var(--r-pill);
  background: rgba(0, 229, 212, 0.07); border: 1px solid var(--glass-border);
  color: var(--text-secondary); white-space: nowrap;
}
.acct-tag.bank { background: rgba(160, 196, 192, 0.1); }
.badge-warn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.66rem; padding: 2px 7px; border-radius: var(--r-pill);
  background: rgba(240, 90, 26, 0.1); color: var(--accent-orange);
  border: 1px solid rgba(240, 90, 26, 0.3); margin-left: 8px; white-space: nowrap;
}

.table-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; flex-wrap: wrap;
  border-top: 1px solid var(--glass-border);
}
.table-foot .count { font-size: 0.8rem; color: var(--text-muted); }
.pager { display: flex; align-items: center; gap: 8px; }
.pager .page-info { font-size: 0.8rem; color: var(--text-secondary); min-width: 90px; text-align: center; }

/* ============================================================
   PARTNERS / USERS shared list cards
   ============================================================ */
.pct-summary {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); background: rgba(0, 229, 212, 0.05);
}
.pct-summary.valid { color: var(--accent); }
.pct-summary.invalid { color: var(--accent-orange); border-color: rgba(240, 90, 26, 0.3); background: rgba(240, 90, 26, 0.07); }

.inactive-tag { font-size: 0.66rem; color: var(--text-muted); border: 1px solid var(--glass-border); padding: 2px 8px; border-radius: var(--r-pill); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--accent); box-shadow: 0 0 8px rgba(0,229,212,.5); }
.dot.off { background: var(--text-muted); }

/* ============================================================
   DISTRIBUTION
   ============================================================ */
.dist-pool {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin-bottom: 22px;
}

/* ============================================================
   STATES: loading / empty / skeleton
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, rgba(0,229,212,.04), rgba(0,229,212,.09), rgba(0,229,212,.04));
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: 8px 0; }
.sk-card { height: 150px; border-radius: var(--r-card); }

.state {
  text-align: center; padding: 60px 20px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.state .lucide, .state svg { width: 40px; height: 40px; color: var(--text-muted); opacity: 0.6; }
.state h3 { color: var(--text-secondary); font-size: 1rem; }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--glass-border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.state.error .lucide, .state.error svg { color: var(--accent-orange); }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(6, 15, 18, 0.72);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade 0.2s var(--ease);
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 460px;
  border-radius: var(--r-card); padding: 26px;
  max-height: 90vh; overflow-y: auto;
  animation: rise 0.35s var(--ease);
}
.modal h3 { font-size: 1.2rem; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 18px; }
.modal-form { display: flex; flex-direction: column; gap: 14px; }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 440px) { .modal-grid { grid-template-columns: 1fr; } }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.modal-close { position: absolute; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

/* ============================================================
   TOASTS
   ============================================================ */
.toasts {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 44px);
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: 12px; min-width: 260px; max-width: 380px;
  background: rgba(10, 26, 31, 0.92);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow-card);
  backdrop-filter: var(--glass-blur);
  font-size: 0.86rem;
  animation: toast-in 0.35s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
.toast.out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }
.toast .lucide, .toast svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.toast.success { border-color: rgba(0, 229, 212, 0.3); }
.toast.success .lucide, .toast.success svg { color: var(--accent); }
.toast.error { border-color: rgba(240, 90, 26, 0.35); }
.toast.error .lucide, .toast.error svg { color: var(--accent-orange); }
.toast.info .lucide, .toast.info svg { color: var(--text-secondary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.3s var(--ease); }
  .sidebar.open { transform: none; }
  .sidebar-close { display: inline-grid; }
  .main-col { margin-left: 0; }
  .sidebar-open { display: inline-grid; }
}
@media (max-width: 540px) {
  .view { padding: 18px 14px 50px; }
  .topbar { padding: 11px 14px; }
  .user-name { display: none; }
  .kpi .kpi-value { font-size: 1.3rem; }
  .partner-balance { font-size: 1.75rem; }
}
