/* Portal overrides (v2 hotfix, conflict-free)
   - Fix sidebar layout
   - Improve Tabulator dark theme readability
*/

:root{
  --portal-bg: #0b1220;
  --portal-panel: rgba(255,255,255,.03);
  --portal-border: rgba(255,255,255,.12);
  --portal-text: rgba(255,255,255,.92);
  --portal-text-dim: rgba(255,255,255,.70);
  --portal-accent: #3b82f6;
}

/* Sidebar hardening */
.sidebar{
  display:flex;
  flex-direction:column;
  min-width:260px;
  max-width:320px;
}
.sidebar__nav{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.sidebar__nav a,
.sidebar__nav .nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  box-sizing:border-box;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Tabulator dark skin */
.tabulator{
  background: transparent;
  border: 1px solid var(--portal-border);
  border-radius: 14px;
  overflow:hidden;
  color: var(--portal-text);
}

.tabulator .tabulator-header{
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--portal-border);
}

.tabulator .tabulator-header .tabulator-col{
  background: transparent;
  border-right: 1px solid rgba(255,255,255,.06);
  color: var(--portal-text);
}

.tabulator .tabulator-header .tabulator-col .tabulator-col-content{
  padding: 10px 10px;
}

.tabulator .tabulator-header input,
.tabulator .tabulator-header select{
  width: 100%;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  padding: 6px 8px;
  color: var(--portal-text);
  outline: none;
}

.tabulator .tabulator-row{
  background: rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.tabulator .tabulator-row.tabulator-row-even{ background: rgba(0,0,0,.16); }

.tabulator .tabulator-row .tabulator-cell{
  color: var(--portal-text);
  border-right: 1px solid rgba(255,255,255,.05);
  padding: 10px 10px;
}

.tabulator .tabulator-row.tabulator-selectable:hover{
  background: rgba(59,130,246,.15);
}

.tabulator .tabulator-footer{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.10);
  color: var(--portal-text-dim);
}
.tabulator .tabulator-paginator label,
.tabulator .tabulator-page-size{
  color: var(--portal-text-dim);
}
