:root {
  --bo-sidebar-w: 240px;
  --bo-bg: #f4f6f9;
  --bo-side: #1f2430;
  --bo-side-hover: #2b3242;
  --bo-accent: #f59e0b;
}
body { background: var(--bo-bg); font-size: 14px; }
.bo-shell { display: flex; min-height: 100vh; }
.bo-sidebar {
  width: var(--bo-sidebar-w); background: var(--bo-side); color: #cbd5e1;
  position: fixed; inset: 0 auto 0 0; overflow-y: auto; z-index: 1030;
  display: flex; flex-direction: column;
}
.bo-brand { color: #fff; font-weight: 700; font-size: 1.1rem; padding: 18px 20px; border-bottom: 1px solid #2b3242; }
.bo-brand small { display: block; font-weight: 400; font-size: .75rem; color: #94a3b8; }
.bo-brand i { color: var(--bo-accent); }
.bo-nav { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #cbd5e1; text-decoration: none; }
.bo-nav:hover { background: var(--bo-side-hover); color: #fff; }
.bo-nav.active { background: var(--bo-side-hover); color: #fff; border-left: 3px solid var(--bo-accent); padding-left: 17px; }
.bo-nav i { width: 18px; text-align: center; }
.bo-group .caret { margin-left: auto; font-size: .7rem; transition: transform .2s; }
.bo-group.open .caret { transform: rotate(180deg); }
.bo-sub { display: none; background: rgba(0,0,0,.18); }
.bo-group.open .bo-sub { display: block; }
.bo-subnav { padding: 8px 20px 8px 48px; font-size: .9rem; }
.bo-subnav.active { padding-left: 45px; }
.bo-nav-foot { margin-top: auto; padding: 14px 20px; font-size: .75rem; color: #64748b; border-top: 1px solid #2b3242; }
.bo-main { margin-left: var(--bo-sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bo-topbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 10px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 1020; }
.bo-title { font-weight: 600; font-size: 1.05rem; }
.bo-avatar { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--bo-accent); color: #fff; align-items: center; justify-content: center; font-weight: 600; font-size: .8rem; }
.bo-content { padding: 16px 24px 40px; }
#crumbs .breadcrumb { font-size: .8rem; margin-bottom: 6px; }
#crumbs .breadcrumb-item + .breadcrumb-item::before { content: '›'; }
#crumbs a { text-decoration: none; }
.card { border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.card-header { background: #fff; font-weight: 600; }
.kpi .kpi-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.kpi .kpi-label { font-size: .78rem; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.kpi .kpi-value { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.kpi .kpi-sub { font-size: .78rem; color: #6b7280; }
.nav-tabs { border-bottom: 1px solid #e5e7eb; }
.nav-tabs .nav-link { color: #374151; }
.nav-tabs .nav-link.active { font-weight: 600; border-bottom-color: #fff; }
.tab-content > .tab-pane { padding-top: 16px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
table.dataTable td, table.dataTable th { white-space: nowrap; }
.dataTables_wrapper .dataTables_filter input { margin-left: 0; }
.select2-container--bootstrap-5 .select2-selection { min-height: 38px; }
.podium { display: flex; gap: 16px; align-items: flex-end; justify-content: center; }
.podium .card { text-align: center; width: 200px; }
.podium .p1 { transform: translateY(-14px); border-color: #f59e0b; }
.podium .p2 { border-color: #9ca3af; }
.podium .p3 { border-color: #b45309; }
.podium .rank { font-size: 1.8rem; font-weight: 800; }
.thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #e5e7eb; display: inline-block; }
.receipt { max-width: 100%; border: 1px solid #e5e7eb; border-radius: 6px; }
.form-label { font-weight: 500; }
.modal-xl .nav-tabs { margin-bottom: 0; }
.progress { height: 8px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.border-dashed { border-style: dashed !important; }
.text-loss { color: #dc2626; font-weight: 600; }
.text-gain { color: #16a34a; font-weight: 600; }
@media (max-width: 991.98px) {
  .bo-sidebar { transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .bo-sidebar { transform: none; }
  .bo-main { margin-left: 0; }
  .bo-content { padding: 16px; }
  .podium { flex-direction: column; align-items: stretch; }
  .podium .card { width: auto; }
  .podium .p1 { transform: none; }
}
