/* ============================================================
   FinanceOS — Global Styles
   Theme: Clean White + Emerald Green — Professional Finance
   styles.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── CSS Variables — Light White + Green Theme ── */
:root {
  --bg:  #f0f4f8;
  --s1:  #ffffff;
  --s2:  #f8fafc;
  --s3:  #eef2f7;
  --bd:  #e2e8f0;
  --bd2: #cbd5e1;

  --ac:  #059669;
  --ac2: #10b981;
  --ac3: #d1fae5;

  --gr:  #059669;
  --rd:  #dc2626;
  --yw:  #d97706;
  --pu:  #7c3aed;
  --bl:  #2563eb;

  --tx:  #0f172a;
  --tx2: #334155;
  --tx3: #64748b;
  --tx4: #94a3b8;

  --mw:  250px;
  --th:  58px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.05);
}

/* ── DARK THEME — applied when <html data-theme="dark"> ── */
[data-theme="dark"] {
  --bg:  #0a0e1a;
  --s1:  #111827;
  --s2:  #1a2234;
  --s3:  #1e2a40;
  --bd:  #1f2d45;
  --bd2: #2a3a55;

  --ac:  #10b981;
  --ac2: #34d399;
  --ac3: rgba(16,185,129,.12);

  --gr:  #10b981;
  --rd:  #ef4444;
  --yw:  #f59e0b;
  --pu:  #8b5cf6;
  --bl:  #3b82f6;

  --tx:  #e2e8f0;
  --tx2: #94a3b8;
  --tx3: #64748b;
  --tx4: #475569;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.5), 0 4px 8px rgba(0,0,0,.3);
}

/* Dark theme overrides for specific elements */
[data-theme="dark"] tbody tr:hover td  { background: rgba(16,185,129,.06); }
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus     { background: var(--s3); box-shadow: 0 0 0 3px rgba(16,185,129,.15); }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea           { background: var(--s2); color: var(--tx); }
[data-theme="dark"] select option      { background: var(--s2); color: var(--tx); }
[data-theme="dark"] .toast.ok { background: var(--s1); border-color: rgba(16,185,129,.4); }
[data-theme="dark"] .toast.er { background: var(--s1); border-color: rgba(239,68,68,.4); }
[data-theme="dark"] .toast.if { background: var(--s1); border-color: rgba(59,130,246,.4); }
[data-theme="dark"] .swal-finance .swal2-popup { background: #111827 !important; border-color: #1f2d45 !important; }
[data-theme="dark"] .swal-info-row { background: var(--s2); border-color: var(--bd); }
[data-theme="dark"] .swal-stock-badge { background: rgba(239,68,68,.12); }
[data-theme="dark"] #sb { box-shadow: 2px 0 12px rgba(0,0,0,.4); }
[data-theme="dark"] .sp { background: rgba(16,185,129,.15);  color: #6ee7b7; }
[data-theme="dark"] .sn { background: rgba(245,158,11,.15);  color: #fcd34d; }
[data-theme="dark"] .so { background: rgba(239,68,68,.15);   color: #fca5a5; }
[data-theme="dark"] .sd { background: rgba(100,116,139,.15); color: #94a3b8; }
[data-theme="dark"] .sa { background: rgba(59,130,246,.15);  color: #93c5fd; }

/* Theme toggle animation */
html { transition: background-color .3s ease, color .3s ease; }
body { transition: background-color .3s ease; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--tx);
  display: flex;
  height: 100vh;
  overflow: hidden;
}

::-webkit-scrollbar        { width: 5px; height: 5px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--bd2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   SIDEBAR
   ============================================================ */
#sb {
  width: var(--mw);
  background: var(--s1);
  border-right: 1.5px solid var(--bd);
  box-shadow: 2px 0 12px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  transition: width 0.25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
#sb.col { width: 64px; }

.logo {
  height: var(--th);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1.5px solid var(--bd);
  flex-shrink: 0;
}
.logo-ic {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--ac), #047857);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(5,150,105,.3);
}
.logo-tx {
  font-size: 17px; font-weight: 800;
  color: var(--tx);
  letter-spacing: -.3px;
  white-space: nowrap;
}

.nscr {
  flex: 1; overflow-y: auto; padding: 10px 8px;
  scrollbar-width: thin;
}

.nlbl {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; color: var(--tx4);
  text-transform: uppercase;
  padding: 14px 10px 5px;
  white-space: nowrap; overflow: hidden;
  transition: opacity 0.2s;
}
#sb.col .nlbl { opacity: 0; }

.ni {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; cursor: pointer;
  border-radius: 9px; margin: 1px 0;
  transition: all 0.15s;
  white-space: nowrap; overflow: hidden;
  border: 1px solid transparent;
  color: var(--tx2);
}
.ni:hover { background: var(--s3); color: var(--tx); border-color: var(--bd); }
.ni.act   { background: var(--ac3); border-color: rgba(5,150,105,.25); color: #065f46; }
.ni.act .nic { color: var(--ac); }

.nic { font-size: 17px; flex-shrink: 0; width: 22px; text-align: center; color: var(--tx3); }
.ni:hover .nic { color: var(--ac); }
.nil { font-size: 13.5px; font-weight: 600; }
#sb.col .nil { display: none; }

.nbg {
  margin-left: auto; flex-shrink: 0;
  background: var(--ac); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 10px;
  min-width: 20px; text-align: center;
}
.nbg.r { background: var(--rd); }
.nbg.y { background: var(--yw); }
#sb.col .nbg { display: none; }

.sfooter {
  border-top: 1.5px solid var(--bd);
  padding: 10px 8px; flex-shrink: 0;
  background: var(--s2);
}
.ucrd {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; cursor: pointer;
  transition: background 0.15s;
}
.ucrd:hover { background: var(--s3); }
.uav {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--ac), #047857);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; color: #fff;
  box-shadow: 0 2px 6px rgba(5,150,105,.25);
  overflow: hidden;
}
.unm  { font-size: 13px; font-weight: 700; color: var(--tx); }
.url  { font-size: 11px; color: var(--tx3); }
.uinf { min-width: 0; overflow: hidden; }
#sb.col .uinf { display: none; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
#main {
  margin-left: var(--mw);
  flex: 1; display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  transition: margin-left 0.25s cubic-bezier(.4,0,.2,1);
}
#sb.col ~ #main { margin-left: 64px; }

/* ============================================================
   TOPBAR
   ============================================================ */
#tb {
  height: var(--th);
  background: var(--s1);
  border-bottom: 1.5px solid var(--bd);
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px; flex-shrink: 0;
}
#tgl {
  background: none; border: 1.5px solid var(--bd); color: var(--tx3);
  font-size: 17px; cursor: pointer; padding: 5px 8px;
  border-radius: 7px; transition: all 0.15s; line-height: 1;
}
#tgl:hover { background: var(--s3); color: var(--tx); border-color: var(--bd2); }

.bc     { font-size: 13px; color: var(--tx3); display: flex; align-items: center; gap: 6px; }
.bc span { color: var(--tx3); }
.bc .cur { color: var(--tx); font-weight: 700; }
.tbr { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ibtn {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--s2); border: 1.5px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; color: var(--tx3); transition: all 0.15s;
}
.ibtn:hover { border-color: var(--ac); color: var(--ac); background: var(--ac3); }

/* ============================================================
   CONTENT
   ============================================================ */
#cnt {
  flex: 1; overflow-y: auto; padding: 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--bd2) transparent;
  background: var(--bg);
}
.pg     { display: none; }
.pg.act { display: block; animation: fadeIn .22s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pgh { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.pgt { font-size: 23px; font-weight: 800; color: var(--tx); letter-spacing: -.4px; }
.pgs { font-size: 13px; color: var(--tx3); margin-top: 4px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  border: none; transition: all 0.15s; font-family: inherit;
}
.bp  { background: var(--ac); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.3); }
.bp:hover { background: #047857; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(5,150,105,.4); }
.bp:active { transform: none; }
.bg  { background: var(--s1); color: var(--tx2); border: 1.5px solid var(--bd); }
.bg:hover { border-color: var(--ac); color: var(--ac); background: var(--ac3); }
.bgr { background: var(--gr); color: #fff; box-shadow: 0 2px 8px rgba(5,150,105,.3); }
.bgr:hover { background: #047857; }
.brd { background: var(--rd); color: #fff; }
.brd:hover { background: #b91c1c; }

/* ============================================================
   STAT CARDS
   ============================================================ */
.sg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px; margin-bottom: 26px;
}
.sc {
  background: var(--s1); border: 1.5px solid var(--bd);
  border-radius: 14px; padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
  position: relative; overflow: hidden;
}
.sc::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ac), var(--ac2));
  opacity: 0; transition: opacity 0.2s;
}
.sc:hover { border-color: var(--ac2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.sc:hover::after { opacity: 1; }
.sl  { font-size: 11px; color: var(--tx3); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sv  { font-size: 26px; font-weight: 800; margin: 8px 0 4px; font-family: 'JetBrains Mono', monospace; color: var(--tx); }
.sch { font-size: 12px; color: var(--tx4); }

/* Card */
.card {
  background: var(--s1); border: 1.5px solid var(--bd);
  border-radius: 14px; overflow: hidden;
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.cdh {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 22px; border-bottom: 1.5px solid var(--bd);
  background: var(--s2);
}
.cdt { font-size: 14px; font-weight: 700; color: var(--tx); }
.cda { display: flex; gap: 8px; }

/* ============================================================
   TABLE
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
thead th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--tx3);
  padding: 11px 18px; text-align: left;
  border-bottom: 1.5px solid var(--bd); background: var(--s2);
}
tbody td {
  padding: 12px 18px; font-size: 13px;
  border-bottom: 1px solid var(--bd); color: var(--tx2);
}
tbody td strong { color: var(--tx); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f0fdf4; }

.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.pos  { color: var(--gr); font-weight: 700; }
.neg  { color: var(--rd); }

/* ============================================================
   STATUS BADGES
   ============================================================ */
.sb {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.sb::before { content: "●"; font-size: 7px; }
.sp { background: #d1fae5; color: #065f46; }
.sn { background: #fef3c7; color: #92400e; }
.so { background: #fee2e2; color: #991b1b; }
.sd { background: #f1f5f9; color: #475569; }
.si { background: #dbeafe; color: #1e40af; }
[data-theme="dark"] .si { background: rgba(59,130,246,.15); color: #93c5fd; }
.sa { background: #dbeafe; color: #1e40af; }

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.acts { display: flex; gap: 6px; }
.ab {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--s2); border: 1.5px solid var(--bd);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--tx3); transition: all 0.15s;
}
.ab:hover { border-color: var(--ac); color: var(--ac); background: var(--ac3); }

/* ============================================================
   MODAL
   ============================================================ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 500; align-items: center; justify-content: center;
}
.overlay.open { display: flex; }
.modal {
  background: var(--s1); border: 1.5px solid var(--bd);
  border-radius: 18px; width: 92%; max-width: 720px;
  max-height: 90vh; display: flex; flex-direction: column;
  overflow: hidden; box-shadow: var(--shadow-lg);
  animation: modalIn .2s cubic-bezier(.34,1.56,.64,1);
}
.modal.wide { max-width: 960px; }
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.mhd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 26px; border-bottom: 1.5px solid var(--bd);
  background: var(--s2); flex-shrink: 0;
}
.mhd h2 { font-size: 16px; font-weight: 800; color: var(--tx); }
.mbdy   { overflow-y: auto; padding: 26px; flex: 1; }
.mft    {
  padding: 16px 26px; border-top: 1.5px solid var(--bd);
  background: var(--s2); display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0;
}

/* ============================================================
   FORM
   ============================================================ */
.fg { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fi { display: flex; flex-direction: column; gap: 6px; }
.fi.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 700; color: var(--tx2); }
input, select, textarea {
  background: var(--s2); border: 1.5px solid var(--bd);
  border-radius: 9px; padding: 9px 13px;
  font-size: 13px; color: var(--tx); font-family: inherit;
  outline: none; transition: all 0.15s; width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--tx4); }
input:focus, select:focus, textarea:focus {
  border-color: var(--ac); background: #fff;
  box-shadow: 0 0 0 3px rgba(5,150,105,.1);
}
select option { background: #fff; color: var(--tx); }

/* ============================================================
   LINE ITEMS
   ============================================================ */
.lit { width: 100%; border-collapse: collapse; margin-top: 12px; }
.lit th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--tx3);
  padding: 9px 10px; text-align: left;
  background: var(--s2); border-bottom: 1.5px solid var(--bd);
}
.lit td { padding: 6px 8px; border-bottom: 1px solid var(--bd); }
.lit input, .lit select { padding: 6px 9px; font-size: 12px; border-radius: 7px; background: #fff; }
.lit tfoot td {
  padding: 9px 10px; font-size: 12px; color: var(--tx2);
  border-top: 2px solid var(--bd); background: var(--s2);
}

/* ============================================================
   TOAST
   ============================================================ */
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: 11px;
  font-size: 13px; font-weight: 700;
  animation: tin 0.3s cubic-bezier(.34,1.56,.64,1);
  max-width: 340px; box-shadow: 0 8px 28px rgba(0,0,0,.12);
  display: flex; align-items: center; gap: 8px;
}
.toast.ok { background: #fff; color: #065f46; border: 1.5px solid #6ee7b7; border-left: 4px solid var(--gr); }
.toast.er { background: #fff; color: #991b1b; border: 1.5px solid #fca5a5; border-left: 4px solid var(--rd); }
.toast.if { background: #fff; color: #1e40af; border: 1.5px solid #93c5fd; border-left: 4px solid var(--bl); }
@keyframes tin {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   SWEETALERT2
   ============================================================ */
.swal-finance .swal2-popup {
  background: #fff; border: 1.5px solid var(--bd); border-radius: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif; box-shadow: var(--shadow-lg);
}
.swal-finance .swal2-title { color: var(--tx); font-size: 18px; font-weight: 800; }
.swal-finance .swal2-html-container { color: var(--tx2); font-size: 14px; line-height: 1.6; }
.swal-finance .swal2-icon.swal2-error    { color: var(--rd) !important; border-color: var(--rd) !important; }
.swal-finance .swal2-icon.swal2-warning  { color: var(--yw) !important; border-color: var(--yw) !important; }
.swal-finance .swal2-icon.swal2-success  { color: var(--gr) !important; border-color: var(--gr) !important; }
.swal-finance .swal2-icon.swal2-question { color: var(--ac) !important; border-color: var(--ac) !important; }
.swal-finance .swal2-confirm {
  background: var(--ac) !important; border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important; font-size: 13px !important;
  padding: 10px 22px !important; box-shadow: 0 2px 8px rgba(5,150,105,.3) !important;
}
.swal-finance .swal2-confirm:hover { background: #047857 !important; }
.swal-finance .swal2-cancel {
  background: var(--s2) !important; border: 1.5px solid var(--bd) !important;
  color: var(--tx2) !important; border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important; font-size: 13px !important; padding: 10px 22px !important; box-shadow: none !important;
}
.swal-finance .swal2-cancel:hover { border-color: var(--bd2) !important; color: var(--tx) !important; }
.swal-finance .swal2-deny {
  background: var(--rd) !important; border-radius: 9px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important; font-size: 13px !important; padding: 10px 22px !important;
}
.swal-finance .swal2-actions { gap: 8px; }
.swal-finance .swal2-backdrop-show { background: rgba(15,23,42,.4) !important; }

.swal-stock-badge {
  display: inline-block; background: #fee2e2; color: #991b1b;
  border: 1.5px solid #fca5a5; border-radius: 9px; padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; margin: 8px 0 4px;
}
.swal-info-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--s2); border: 1.5px solid var(--bd);
  border-radius: 9px; padding: 10px 14px; margin-top: 10px; font-size: 13px;
}
.swal-info-row span:first-child { color: var(--tx3); }
.swal-info-row span:last-child  { color: var(--tx); font-weight: 700; font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #sb { width: 64px; }
  #sb .nil, #sb .nlbl, #sb .uinf, #sb .nbg { display: none; }
  #main { margin-left: 64px; }
  .sg   { grid-template-columns: 1fr 1fr; }
  #cnt  { padding: 16px; }
}
@media (max-width: 480px) {
  .sg { grid-template-columns: 1fr; }
  .fg { grid-template-columns: 1fr; }
  .fi.full { grid-column: 1; }
}

/* ============================================================
   SIDEBAR ACCORDION SECTIONS
   ============================================================ */

/* Section wrapper */
.sb-section {
  margin: 2px 0;
}

/* Section header — the clickable title row */
.sb-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
  border: 1px solid transparent;
  color: var(--tx2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
}
.sb-hd:hover {
  background: var(--s3);
  color: var(--tx);
  border-color: var(--bd);
}
.sb-section.open > .sb-hd {
  background: var(--ac3);
  color: var(--ac);
  border-color: rgba(5,150,105,.2);
}
[data-theme="dark"] .sb-section.open > .sb-hd {
  color: var(--ac2);
}

.sb-hd-ic  { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.sb-hd-lbl { flex: 1; }
.sb-hd-arr {
  font-size: 14px;
  margin-left: auto;
  flex-shrink: 0;
  color: var(--tx4);
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
  display: inline-block;
}
.sb-section.open > .sb-hd > .sb-hd-arr { transform: rotate(90deg); color: var(--ac); }

/* Collapsed state — hidden with smooth animation */
#sb.col .sb-hd-lbl { display: none; }
#sb.col .sb-hd-arr { display: none; }

/* Body — items container */
.sb-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(.4,0,.2,1);
  /* border-left accent */
  border-left: 2px solid transparent;
  margin-left: 10px;
  padding-left: 4px;
}
.sb-section.open > .sb-body {
  max-height: 600px;    /* large enough for any section */
  border-left-color: rgba(5,150,105,.25);
}
[data-theme="dark"] .sb-section.open > .sb-body {
  border-left-color: rgba(16,185,129,.2);
}

/* Indent nav items inside accordion */
.sb-body .ni {
  padding-left: 12px;
  font-size: 13px;
}

/* Collapsed sidebar — show section header as icon-only */
#sb.col .sb-section { margin: 1px 0; }
#sb.col .sb-hd       { padding: 9px; justify-content: center; }
#sb.col .sb-hd-ic    { width: auto; }
#sb.col .sb-body     { display: none !important; }

/* Dashboard ni top margin */
#ni-dashboard { margin-bottom: 4px; }

/* ── Info dot & panel ─────────────────────────────────────── */
.info-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--ac); color: #fff;
  font-size: 11px; font-weight: 700; font-style: normal;
  cursor: pointer; vertical-align: middle; margin-left: 6px;
  opacity: .75; transition: opacity .15s, transform .15s;
  user-select: none; line-height: 1;
}
.info-dot:hover { opacity: 1; transform: scale(1.15); }

.ip-feature {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 13px; border-radius: 10px;
  background: var(--s2); border: 1px solid var(--bd);
  transition: background .15s;
}
.ip-feature:hover { background: var(--s3); }
.ip-feature-icon {
  font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 1px;
}
.ip-feature-body {}
.ip-feature-title {
  font-size: 13px; font-weight: 700; color: var(--tx); margin-bottom: 2px;
}
.ip-feature-desc {
  font-size: 12px; color: var(--tx3); line-height: 1.5;
}
.ip-flow-step {
  background: var(--s2); border: 1px solid var(--bd);
  border-radius: 7px; padding: 5px 11px;
  font-size: 12px; font-weight: 600; color: var(--tx2);
  white-space: nowrap;
}
.ip-flow-arrow {
  color: var(--tx3); font-size: 14px; font-weight: 300;
}

/* ── Help & Support page ─────────────────────────────────── */
.help-tab-btn {
  padding: 12px 18px;
  border: none;
  background: transparent;
  color: var(--tx3);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.help-tab-btn:hover { color: var(--tx1); }
.help-tab-btn.active { color: var(--ac); border-bottom-color: var(--ac); font-weight: 600; }
