/* ── Dashboard layout ─────────────────────────────────────── */
.dash-layout{display:flex;align-items:flex-start}

/* ── Sidebar — desktop & tablet (≥768px) ─────────────────── */
.dash-sidebar{
  width:210px;flex-shrink:0;
  position:sticky;top:56px;
  height:calc(100vh - 56px);overflow-y:auto;overflow-x:hidden;
  background:#fff;border-right:1px solid #e9ecef;
  padding:1rem 0;
}
.dash-sidenav{display:flex;flex-direction:column;gap:3px;padding:0 10px}
.dash-sidelink{
  display:flex;align-items:center;gap:11px;
  padding:9px 11px;border-radius:10px;
  text-decoration:none;color:#444;
  font-size:.84rem;font-weight:500;
  transition:background .15s;white-space:nowrap;
}
.dash-sidelink:hover{background:#f4f6f8;color:#222}
.dash-sidelink.active{background:#e8f0fe;color:#1a73e8}
.dash-sideicon{
  width:34px;height:34px;border-radius:9px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:.95rem;
}
.dash-sidebar-divider{height:1px;background:#f0f2f5;margin:8px 10px}
.dash-content{flex:1;min-width:0;padding:1.5rem}

/* Loading spinner */
.dash-page-loading{display:flex;justify-content:center;align-items:center;min-height:240px}

/* ── Mobile (< 768px) — off-canvas sidebar ───────────────── */
@media(max-width:767.98px){
  .dash-layout{flex-direction:column}
  .dash-sidebar{display:none}
  .dash-content{padding:.85rem}
}

/* Off-canvas nav */
#dashOffcanvas{width:260px}
.dash-oc-nav{padding:8px 10px;display:flex;flex-direction:column;gap:3px}
.dash-oc-link{
  display:flex;align-items:center;gap:11px;
  padding:10px 12px;border-radius:10px;
  text-decoration:none;color:#444;
  font-size:.88rem;font-weight:500;
  transition:background .15s;
}
.dash-oc-link:hover,.dash-oc-link.active{background:#e8f0fe;color:#1a73e8}
.dash-oc-icon{
  width:34px;height:34px;border-radius:9px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;font-size:.95rem;
}
.dash-oc-divider{height:1px;background:#f0f2f5;margin:6px 10px}

/* Sticky mobile top bar */
.dash-mobile-topbar{
  display:flex;align-items:center;gap:10px;
  padding:8px 12px;background:#fff;
  border-bottom:1px solid #e9ecef;
  position:sticky;top:56px;z-index:99;
}

/* payment period cards (pages/payment.php) */
.period-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
  background: var(--white);
}
.period-card.selected,
.period-card:hover {
  border-color: var(--primary-lt);
  background: #f0f7ff;
  box-shadow: 0 0 0 3px rgba(27,108,168,.12);
}
/* birthday ring (index.php) */
@keyframes bdayStripe {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.bday-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#f9a825 0deg, #e91e63 90deg, #4caf50 180deg, #2196f3 270deg, #f9a825 360deg);
  padding: 4px;
}

/* print: only the page content (ID card, receipt), not the member sidebar */
@media print {
  .dash-sidebar, .dash-mobile-topbar, #dashOffcanvas, .wa-float { display: none !important; }
  .dash-content { padding: 0 !important; }
}

/* ── Forum (from pages/forum*.php inline styles) ── */
.forum-cat-row, .topic-row { transition: background .15s; }
.forum-cat-row:hover, .topic-row:hover { background: #f8f9ff; }
.topic-row.pinned { background: #fffde7; }
.topic-row.pinned:hover { background: #fff9c4; }
.forum-link { color: var(--bs-primary); word-break: break-all; }
.forum-post { border-bottom: 1px solid #e9ecef; }
.forum-post:last-child { border-bottom: none; }
.forum-post-user { width: 130px; min-width: 130px; }
@media (max-width: 575px) {
  .forum-post-user { width: 72px; min-width: 72px; }
  .forum-post-user .user-meta { display: none; }
}
.post-body { line-height: 1.7; }
.quote-block { border-left: 3px solid #0d6efd; background: #f0f4ff; padding: .6rem 1rem; border-radius: 0 6px 6px 0; margin-bottom: 1rem; font-size: .9rem; }
.post-deleted { color: #aaa; font-style: italic; }
