/* ====================================
   TABLE ENHANCEMENTS
   ==================================== */

.pa-table th,
.pa-table td {
  font-variant-numeric: tabular-nums;
}

.align-left {
  text-align: left !important;
}

.align-center {
  text-align: center !important;
}

.align-right {
  text-align: right !important;
}

/* ====================================
   INLINE EDITING (Table row editing)
   ==================================== */

.pa-inline-input {
  display: none;
  width: 100%;
  font-size: 0.8rem;
}

.pa-inline-display {
  display: inline-block;
}

tr.is-editing .pa-inline-display {
  display: none;
}

tr.is-editing .pa-inline-input {
  display: block;
}

.pa-inline-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pa-inline-cancel {
  display: none;
}

tr.is-editing .pa-inline-cancel {
  display: inline-flex;
}

/* ====================================
   CHECKLIST (Task/feature checklists)
   ==================================== */

.pa-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ====================================
   THEME TOGGLE (Sidebar theme switcher)
   ==================================== */

.sidebar-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--pa-border);
  color: var(--pa-muted);
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 200ms ease;
}

.sidebar-theme-toggle:hover {
  background: rgba(0, 117, 178, 0.08);
  color: var(--pa-primary);
}
