/* =======================================================================
   Admin dashboard styles
   Sections (search for "SECTION:"):
   - Base + tokens
   - Layout shell (sidebar + main)
   - Components (tables, badges, charts, modals)
   - Responsive rules
======================================================================= */

/* SECTION: Base + tokens */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-0: #0b0f13;
  --bg-1: #0f141a;
  --bg-2: #141b22;
  --ink: #e6eef2;
  --ink-soft: #b7c4cc;
  --accent: #00b8a1;
  --accent-2: #ff8a3d;
  --panel: rgba(14, 20, 26, 0.78);
  --panel-strong: rgba(18, 26, 34, 0.92);
  --stroke: rgba(207, 226, 235, 0.12);
  --shadow: 0 20px 55px rgba(3, 6, 9, 0.55);
  --shadow-strong: 0 28px 70px rgba(3, 6, 9, 0.65);
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink-soft);
  background-color: var(--bg-0);
  background-image:
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 50%, var(--bg-2) 100%),
    url(./img/background.png);
  background-blend-mode: normal, luminosity;
  background-size: cover, auto;
  background-position: center;
  overflow: hidden;
}

/* Custom scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 184, 161, 0.6) rgba(8, 12, 16, 0.35);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(8, 12, 16, 0.35);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 184, 161, 0.75), rgba(0, 184, 161, 0.35));
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 16, 0.45);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 184, 161, 0.9), rgba(0, 184, 161, 0.5));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(transparent 23px, rgba(217, 230, 236, 0.05) 24px),
    linear-gradient(90deg, transparent 23px, rgba(217, 230, 236, 0.05) 24px);
  background-size: 24px 24px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.neural-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(0, 184, 161, 0.18) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(to bottom, rgba(0, 184, 161, 0.18) 0 1px, transparent 1px 24px);
  background-size: 24px 24px;
  opacity: 0.22;
  filter: drop-shadow(0 0 4px rgba(0, 184, 161, 0.25));
  mix-blend-mode: screen;
  animation: grid-breathe 9s ease-in-out infinite;
}

/* SECTION: Layout shell (sidebar + main) */
.admin-layout {
  position: relative;
  z-index: 2;
  height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.6rem;
  padding: 2.5rem;
  overflow: hidden;
}

body.sidebar-collapsed .admin-layout {
  grid-template-columns: 1fr;
}

.sidebar {
  background: linear-gradient(140deg, rgba(18, 26, 34, 0.2), rgba(10, 14, 18, 0.14));
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 22px;
  padding: 1.6rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(34px) saturate(170%);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease;
  height: 100%;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

body.sidebar-collapsed .sidebar {
  position: fixed;
  top: 2.5rem;
  left: 2.5rem;
  bottom: 2.5rem;
  width: 260px;
  transform: translateX(-120%);
  z-index: 30;
  pointer-events: none;
}

.sidebar-handle {
  position: fixed;
  top: 8px;
  left: 4px;
  z-index: 35;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 11, 15, 0.55);
  color: rgba(224, 235, 238, 0.78);
  border-radius: 999px;
  font-family: "Chakra Petch", sans-serif;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 22px rgba(3, 6, 9, 0.4);
  display: grid;
  place-items: center;
}

.sidebar-handle svg {
  width: 16px;
  height: 16px;
}

body.sidebar-collapsed .sidebar-handle {
  opacity: 1;
  pointer-events: auto;
}


.sidebar-handle:hover {
  border-color: rgba(0, 184, 161, 0.4);
  color: var(--ink);
}

.sidebar-header {
  display: grid;
  gap: 0.3rem;
  align-items: center;
  justify-items: center;
  text-align: center;
  margin-bottom: 22px;
}

.sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 11, 15, 0.4);
  color: rgba(224, 235, 238, 0.78);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.sidebar-close svg {
  width: 16px;
  height: 16px;
}

.sidebar-close:hover {
  border-color: rgba(0, 184, 161, 0.5);
  color: var(--ink);
}

.btn-ghost--compact {
  padding: 0.45rem 0.7rem;
  font-size: 0.62rem;
  width: 100%;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chart-action {
  width: auto;
  text-align: center;
  padding: 0.35rem 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}

.sidebar-logo {
  width: 140px;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.35));
}

.sidebar-title {
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: rgba(224, 235, 238, 0.7);
  text-align: center;
}

.sidebar-nav {
  display: grid;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.2rem;
  align-content: start;
}

.nav-item,
.nav-toggle {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 15, 0.55);
  color: rgba(224, 235, 238, 0.82);
  height: 40px;
  padding: 0 0.9rem;
  border-radius: 12px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  line-height: 1;
  display: flex;
  align-items: center;
  min-height: 40px;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 22px rgba(3, 6, 9, 0.35);
}

.nav-item {
  position: relative;
  overflow: hidden;
}

.nav-toggle {
  position: relative;
}

.nav-item:hover,
.nav-toggle:hover {
  border-color: rgba(0, 184, 161, 0.4);
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(3, 6, 9, 0.45);
}

.nav-item.is-active,
.nav-toggle.is-active {
  background: rgba(0, 184, 161, 0.12);
  border-color: rgba(0, 184, 161, 0.5);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0, 184, 161, 0.12);
}

.nav-item--with-badge {
  justify-content: space-between;
  gap: 0.4rem;
}

/* Dashboard operational breakdown lists */
.ops-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.ops-breakdown li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(7, 11, 15, 0.4);
  color: rgba(224, 235, 238, 0.7);
  font-size: 0.82rem;
}

.ops-breakdown strong {
  color: var(--ink, #e0ebee);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.98rem;
}

.ops-breakdown--action li.is-hot {
  border-color: rgba(242, 159, 5, 0.4);
  background: rgba(242, 159, 5, 0.08);
  color: rgba(255, 220, 170, 0.9);
}

.ops-breakdown--action li.is-hot strong {
  color: #ffb347;
}

.admin-nav-badge {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ff4d6d;
  color: #ffffff;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.55);
}

.admin-nav-badge[hidden] {
  display: none;
}

@keyframes admin-badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}

.admin-nav-badge:not([hidden]) {
  animation: admin-badge-pulse 1.6s ease-in-out infinite;
}

.nav-item::before,
.btn-primary::before,
.btn-ghost::before,
.action-btn::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  border: 1px solid rgba(0, 184, 161, 0.35);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.nav-item::after,
.btn-primary::after,
.btn-ghost::after,
.action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 161, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.nav-item:hover::before,
.btn-primary:hover::before,
.btn-ghost:hover::before,
.action-btn:hover::before {
  opacity: 1;
}

.nav-item:hover::after,
.btn-primary:hover::after,
.btn-ghost:hover::after,
.action-btn:hover::after {
  transform: translateX(120%);
}

.nav-group {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.nav-toggle {
  position: relative;
}

.nav-toggle::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(224, 235, 238, 0.6);
  border-bottom: 2px solid rgba(224, 235, 238, 0.6);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.3s ease;
}

.nav-group.is-open .nav-toggle::after {
  transform: translateY(-50%) rotate(45deg);
}

.nav-children {
  max-height: 0;
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding-left: 0.35rem;
  transition: max-height 0.35s ease;
}

.nav-group.is-open .nav-children {
  max-height: 220px;
}

.nav-children .nav-item {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  height: 34px;
  min-height: 34px;
  padding: 0 0.75rem;
}

.nav-children .nav-item:not(.is-active) {
  background: rgba(9, 13, 18, 0.65);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
}

.nav-signout {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(12, 18, 24, 0.75);
}

.main {
  background: linear-gradient(160deg, rgba(18, 26, 34, 0.22), rgba(10, 14, 18, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(32px) saturate(165%);
  display: grid;
  gap: 1.8rem;
  position: relative;
  grid-template-rows: auto 1fr;
  min-height: 0;
  overflow: hidden;
}

.main::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.24), transparent 60%);
  pointer-events: none;
}

.main::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(0, 184, 161, 0.14);
  pointer-events: none;
}

.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}


.eyebrow {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.55);
}

.main-title {
  margin: 0.4rem 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.search-field input {
  background: rgba(7, 11, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  font-size: 0.85rem;
  min-width: 220px;
}

.search-field input:focus {
  outline: none;
  border-color: rgba(0, 184, 161, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 184, 161, 0.15);
}

.filter-select {
  background: rgba(7, 11, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  color: var(--ink);
  font-size: 0.8rem;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: rgba(0, 184, 161, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 184, 161, 0.15);
}
.section-eyebrow {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.5);
}

.section-title {
  margin: 0.4rem 0 0;
  font-size: 1.4rem;
  color: var(--ink);
}

.bot-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  color: #d2f4f0;
  margin-bottom: 1rem;
  min-height: 36px;
}

.bot-inline--modal {
  margin: 0.2rem 0 0.6rem;
}

.bot-label {
  color: var(--accent-2);
  font-weight: 600;
}

.bot-text {
  color: #d2f4f0;
}

.btn-primary,
.btn-ghost {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.7rem 1.2rem;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  border: 1px solid rgba(0, 184, 161, 0.5);
  background: rgba(0, 184, 161, 0.15);
  color: var(--ink);
  box-shadow: 0 12px 26px rgba(0, 184, 161, 0.18), inset 0 0 0 1px rgba(0, 184, 161, 0.18);
}

.btn-primary:hover {
  border-color: rgba(0, 184, 161, 0.8);
  box-shadow: 0 16px 30px rgba(0, 184, 161, 0.25);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(224, 235, 238, 0.75);
  box-shadow: 0 10px 22px rgba(3, 6, 9, 0.35);
}

.btn-ghost:hover {
  border-color: rgba(0, 184, 161, 0.4);
  color: var(--ink);
  box-shadow: 0 14px 26px rgba(3, 6, 9, 0.45);
}

.btn-primary:disabled,
.btn-ghost:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi-card {
  background: rgba(8, 12, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 14px 28px rgba(3, 6, 9, 0.45), inset 0 0 24px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 0.35rem;
}

.kpi-label {
  margin: 0;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.55);
}

.kpi-value {
  font-size: 1.8rem;
  color: var(--ink);
  font-weight: 600;
}

.kpi-foot {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(224, 235, 238, 0.6);
}

.kpi-card--important {
  gap: 0.6rem;
  --kpi-metric-width: clamp(96px, 14vw, 140px);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.kpi-action {
  font-size: 0.55rem;
  padding: 0.25rem 0.55rem;
  letter-spacing: 0.16em;
  width: auto;
}

.kpi-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.kpi-metric {
  display: grid;
  gap: 0.25rem;
  justify-items: center;
  text-align: center;
  width: var(--kpi-metric-width);
  justify-self: center;
}

.kpi-card--important .kpi-value {
  font-size: 1.5rem;
  text-align: center;
  justify-self: center;
}

.kpi-list {
  list-style: none;
  margin: 0;
  padding: 0.45rem 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.35rem 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kpi-list li {
  display: contents;
}

.kpi-list span {
  font-size: 0.75rem;
  color: rgba(224, 235, 238, 0.55);
}

.kpi-list-date {
  justify-self: start;
}

.kpi-list-count {
  justify-self: start;
  text-align: left;
  color: rgba(224, 235, 238, 0.85);
  font-weight: 600;
}

.kpi-list--timeline {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  padding-left: 0.7rem;
}

.kpi-list--timeline::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.6rem;
  bottom: 0.2rem;
  width: 1px;
  background: rgba(0, 184, 161, 0.18);
}

.kpi-list--timeline li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
  position: relative;
  padding-left: 0.7rem;
}

.kpi-list--timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  transform: translate(-35%, -50%);
  background: rgba(0, 184, 161, 0.7);
  box-shadow: 0 0 0 3px rgba(0, 184, 161, 0.12);
}

.kpi-list--timeline .kpi-list-count {
  justify-self: center;
  text-align: left;
  width: var(--kpi-metric-width);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 161, 0.2);
  background: rgba(0, 184, 161, 0.08);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.status-pill {
  padding: 0.5rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 161, 0.3);
  background: rgba(0, 184, 161, 0.08);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.7);
}

#welcome-pill {
  text-transform: none;
  letter-spacing: 0.08em;
}

.content {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: hidden;
}

/* Keep header static; allow only the dashboard content to scroll when needed */
.content-section[data-section="dashboard"].is-active {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.2rem;
}

.dashboard-grid {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* SECTION: Tables + data blocks */
.table-card {
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 0.8rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 0.7fr 0.7fr 1fr;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
}

.table-row > span {
  font-size: 0.85rem;
}

.table-head {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-body {
  display: grid;
  gap: 0.35rem;
  max-height: clamp(240px, 42vh, 520px);
  overflow-y: auto;
  padding-right: 0.2rem;
}

.table-head,
.table-footer {
  flex: 0 0 auto;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem 0.2rem;
  gap: 0.8rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-size {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.6);
}

.page-size select {
  background: rgba(7, 11, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.45rem 0.6rem;
  color: var(--ink);
  font-size: 0.75rem;
}

.page-size select:focus {
  outline: none;
  border-color: rgba(0, 184, 161, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 184, 161, 0.12);
}

.page-indicator {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.6);
}

.table-row.table-empty {
  color: rgba(224, 235, 238, 0.6);
  justify-content: center;
  text-align: center;
  grid-template-columns: 1fr;
}

.audit-table .table-row {
  grid-template-columns: 1.2fr 1.2fr 1fr;
  text-align: center;
}

.audit-table .table-row.table-empty,
.app-users-table .table-row.table-empty {
  grid-template-columns: 1fr;
}

.app-users-table .table-row {
  grid-template-columns: 1.2fr 1.6fr 1fr 0.7fr 0.9fr 1fr;
}

.app-users-table .user-name {
  display: inline-block;
}

.addresses-table .table-row:not(.table-empty) {
  grid-template-columns: 1.15fr 0.65fr 1.55fr 0.85fr 1fr;
}

.restricted-items-table .table-row:not(.table-empty) {
  grid-template-columns: 1fr 1.15fr 1.35fr 0.85fr 1fr;
}

.article-table .table-row:not(.table-empty) {
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.9fr 1fr;
}

.article-stats-table .table-row {
  grid-template-columns: 1.6fr 0.9fr 0.7fr;
}

.article-stats-table .table-row.table-empty {
  grid-template-columns: 1fr;
}

.article-stats-table .table-row > span:nth-child(3) {
  text-align: center;
}

.article-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.description-cell {
  color: rgba(224, 235, 238, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted-cell {
  color: rgba(224, 235, 238, 0.45);
}

.keyword-cell,
.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.keyword-builder {
  display: grid;
  gap: 0.55rem;
}

.keyword-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}

.keyword-add {
  height: 100%;
  min-height: 42px;
}

.keyword-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 161, 0.25);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.86);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.keyword-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.keyword-pill button {
  border: none;
  background: transparent;
  color: rgba(224, 235, 238, 0.65);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  padding: 0;
}

.keyword-pill button:hover {
  color: var(--ink);
}

.keyword-pill--static {
  max-width: 160px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 184, 161, 0.2);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.9);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-family: "Chakra Petch", sans-serif;
}

.audit-cell {
  font-size: 0.8rem;
  color: rgba(224, 235, 238, 0.75);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
}

.badge--active {
  background: rgba(0, 184, 161, 0.18);
  color: var(--ink);
}

.badge--disabled {
  background: rgba(255, 138, 61, 0.18);
  color: rgba(255, 255, 255, 0.8);
}

.badge--published {
  background: rgba(0, 184, 161, 0.2);
  color: var(--ink);
}

.badge--draft {
  background: rgba(255, 138, 61, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

/* Admin Users: make status badges match the header pill style */
.content-section[data-section="admin-users"] .badge {
  padding: 0.25rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 161, 0.3);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  box-shadow: none;
}

.content-section[data-section="admin-users"] .badge--disabled {
  border-color: rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.content-section[data-section="app-users"] .badge {
  padding: 0.25rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 161, 0.3);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  box-shadow: none;
}

.content-section[data-section="app-users"] .badge--disabled {
  border-color: rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.content-section[data-section="articles"] .badge {
  padding: 0.25rem 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 184, 161, 0.3);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.7);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  box-shadow: none;
}

.content-section[data-section="articles"] .badge--draft {
  border-color: rgba(255, 138, 61, 0.35);
  background: rgba(255, 138, 61, 0.14);
  color: rgba(255, 255, 255, 0.8);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.action-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 14, 18, 0.7);
  color: rgba(224, 235, 238, 0.7);
  border-radius: 10px;
  padding: 0.35rem 0.6rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(3, 6, 9, 0.4);
}

.action-btn:hover {
  border-color: rgba(0, 184, 161, 0.4);
  color: var(--ink);
  box-shadow: 0 12px 20px rgba(3, 6, 9, 0.5);
}

.action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* SECTION: Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 12, 0.7);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 10;
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: rgba(9, 13, 17, 0.98);
  border: 1px solid rgba(0, 184, 161, 0.2);
  border-radius: 16px;
  width: min(92vw, 520px);
  max-height: 90vh;
  padding: 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card--wide {
  width: min(94vw, 860px);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(9, 13, 17, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.5rem 0.9rem;
}

.modal-close {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(224, 235, 238, 0.75);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

.modal-form {
  display: grid;
  gap: 0.7rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.5rem 1.4rem;
}

.form-row {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.form-label {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(0, 184, 161, 0.8);
  line-height: 1.4;
  padding-bottom: 0.1rem;
  display: inline-block;
}

.form-input {
  background: rgba(7, 11, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.form-input:focus {
  outline: none;
  border-color: rgba(0, 184, 161, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 184, 161, 0.12);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
  font-family: "Space Grotesk", sans-serif;
}

.address-base-panel {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 16, 0.55);
}

.address-base-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: stretch;
}

.address-base-row .form-textarea {
  min-height: 72px;
}

.address-base-row .btn-primary {
  min-width: 140px;
}

.address-preview {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 184, 161, 0.2);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.82);
  font-size: 0.82rem;
  line-height: 1.45;
}

.editor-shell {
  background: rgba(7, 11, 15, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 17, 22, 0.95);
}

.ql-container.ql-snow {
  border: none;
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  min-height: 240px;
  background: rgba(7, 11, 15, 0.55);
}

.ql-editor {
  min-height: 240px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ql-editor.ql-blank::before {
  color: rgba(224, 235, 238, 0.4);
  font-style: normal;
}

.ql-snow .ql-stroke {
  stroke: rgba(224, 235, 238, 0.75);
}

.ql-snow .ql-fill {
  fill: rgba(224, 235, 238, 0.75);
}

.ql-snow .ql-picker {
  color: rgba(224, 235, 238, 0.75);
}

.ql-snow .ql-picker-options {
  background: rgba(10, 14, 18, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  color: var(--ink);
}

.ql-toolbar.ql-snow button:hover,
.ql-toolbar.ql-snow button.ql-active {
  color: var(--ink);
}

.ql-toolbar.ql-snow button:hover .ql-stroke,
.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: var(--accent);
}

.form-hint {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(224, 235, 238, 0.5);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

/* Loader + toast (shared with AdminUI) */
.loader-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(6, 9, 12, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loader-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.loader-core {
  background: rgba(9, 13, 17, 0.95);
  border-radius: 16px;
  border: 1px solid rgba(0, 184, 161, 0.2);
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  color: var(--ink);
}

.loader-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-right-color: rgba(0, 184, 161, 0.4);
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.75);
}

.toast {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(10, 14, 18, 0.96);
  color: #f2f7f9;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  box-shadow: 0 18px 35px rgba(3, 6, 9, 0.5);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9998;
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast-stack {
  position: fixed;
  z-index: 9998;
  top: 16px;
  right: 16px;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  pointer-events: none;
}

.admin-toast-stack .toast {
  position: relative;
  inset: auto;
  width: 100%;
  pointer-events: auto;
}

.toast--error { border-left-color: #ef4444; }
.toast--success {
  border-left-color: #22c55e;
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.12), transparent 62%),
    rgba(10, 14, 18, 0.98);
}
.toast--warning { border-left-color: #f59e0b; }

/* SECTION: Charts + dashboard cards */
.chart-card {
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.2rem 1.1rem 1.4rem;
  box-shadow: 0 18px 32px rgba(3, 6, 9, 0.5), inset 0 0 24px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 1rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}

.chart-pill {
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 184, 161, 0.35);
  color: rgba(224, 235, 238, 0.7);
}

.line-chart {
  width: 100%;
  height: 120px;
}

.line-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 8;
  stroke-linecap: round;
}

.line-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(0, 184, 161, 0.4));
}

.line-dot {
  fill: var(--accent-2);
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(224, 235, 238, 0.5);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  align-items: end;
  min-height: 120px;
}

.bar {
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 184, 161, 0.6), rgba(0, 184, 161, 0.1));
  border-radius: 10px 10px 6px 6px;
  height: var(--value);
  box-shadow: 0 10px 20px rgba(0, 184, 161, 0.15);
}

.donut-chart {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto;
  background: conic-gradient(
    var(--accent) 0 var(--value),
    rgba(255, 138, 61, 0.6) var(--value) 82%,
    rgba(255, 255, 255, 0.1) 82% 100%
  );
  display: grid;
  place-items: center;
  position: relative;
}

.donut-chart::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 80px;
  background: rgba(9, 13, 17, 0.95);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.donut-center {
  position: relative;
  z-index: 1;
  text-align: center;
  font-family: "Chakra Petch", sans-serif;
}

.donut-value {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
}

.donut-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(224, 235, 238, 0.55);
}

.donut-legend {
  display: grid;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(224, 235, 238, 0.7);
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.45rem;
}

.legend-active { background: var(--accent); }
.legend-idle { background: rgba(255, 138, 61, 0.6); }
.legend-flagged { background: rgba(255, 255, 255, 0.2); }

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(224, 235, 238, 0.7);
}

.activity-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  border-radius: 10px;
  border: 1px solid rgba(0, 184, 161, 0.3);
  background: rgba(0, 184, 161, 0.08);
  color: rgba(224, 235, 238, 0.7);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  margin-right: 0.5rem;
}

.activity-list.audit-activity li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.activity-list.audit-activity span {
  width: auto;
  min-width: 120px;
  min-height: 26px;
  height: auto;
  padding: 0.25rem 0.7rem;
  letter-spacing: 0.16em;
  border-radius: 14px;
  line-height: 1.3;
}

.content-section {
  display: none;
  animation: panel-rise 0.6s ease both;
}

.content-section.is-active {
  display: block;
}

.content-section[data-section="addresses"].is-active,
.content-section[data-section="restricted-items"].is-active,
.content-section[data-section="admin-users"].is-active,
.content-section[data-section="app-users"].is-active,
.content-section[data-section="articles"].is-active,
.content-section[data-section="audit-log"].is-active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.content-section[data-section="addresses"].is-active .table-card,
.content-section[data-section="restricted-items"].is-active .table-card,
.content-section[data-section="admin-users"].is-active .table-card,
.content-section[data-section="app-users"].is-active .table-card,
.content-section[data-section="articles"].is-active .table-card,
.content-section[data-section="audit-log"].is-active .table-card {
  flex: 1;
  min-height: 0;
}

.content-section[data-section="addresses"].is-active .table-body,
.content-section[data-section="restricted-items"].is-active .table-body,
.content-section[data-section="admin-users"].is-active .table-body,
.content-section[data-section="app-users"].is-active .table-body,
.content-section[data-section="articles"].is-active .table-body,
.content-section[data-section="audit-log"].is-active .table-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
}

.content-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-card {
  background: rgba(8, 12, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  color: var(--ink-soft);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.content-card h3 {
  margin: 0 0 0.6rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.content-card p {
  margin: 0;
}

@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes panel-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1300px) {
  .admin-layout {
    grid-template-columns: 230px 1fr;
    gap: 1.2rem;
    padding: 2rem;
  }

  .sidebar {
    padding: 1.3rem 1rem;
  }

  body.sidebar-collapsed .sidebar {
    width: 230px;
  }

  .sidebar-logo {
    width: 120px;
  }

  .main-title {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    margin-top: 0.25rem;
  }
}

@media (max-width: 1240px) {
  :root {
    --icon-edit: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%2020h9%22%2F%3E%3Cpath%20d%3D%22M16.5%203.5a2.1%202.1%200%200%201%203%203L7%2019l-4%201%201-4Z%22%2F%3E%3C%2Fsvg%3E");
    --icon-toggle: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202v10%22%2F%3E%3Cpath%20d%3D%22M5.5%204.5a9%209%200%201%200%2013%200%22%2F%3E%3C%2Fsvg%3E");
    --icon-delete: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%223%206%205%206%2021%206%22%2F%3E%3Cpath%20d%3D%22M19%206l-1%2014H6L5%206%22%2F%3E%3Cpath%20d%3D%22M10%2011v6%22%2F%3E%3Cpath%20d%3D%22M14%2011v6%22%2F%3E%3Cpath%20d%3D%22M9%206V4h6v2%22%2F%3E%3C%2Fsvg%3E");
    --icon-prev: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%2215%2018%209%2012%2015%206%22%2F%3E%3C%2Fsvg%3E");
    --icon-next: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%229%2018%2015%2012%209%206%22%2F%3E%3C%2Fsvg%3E");
  }

  .table-actions .action-btn {
    width: 34px;
    min-width: 34px;
    height: 32px;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
  }

  .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
  }

  .table-actions .action-btn[data-action="toggle"] {
    background-image: var(--icon-toggle);
  }

  .table-actions .action-btn[data-action="delete"] {
    background-image: var(--icon-delete);
  }

  #admin-prev,
  #admin-next,
  #address-prev,
  #address-next,
  #restricted-item-prev,
  #restricted-item-next,
  #app-users-prev,
  #app-users-next,
  #article-stats-prev,
  #article-stats-next,
  #article-prev,
  #article-next,
  #audit-prev,
  #audit-next {
    width: 34px;
    min-width: 34px;
    height: 32px;
    padding: 0;
    text-indent: -9999px;
    overflow: hidden;
    white-space: nowrap;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 14px 14px;
  }

  #admin-prev,
  #address-prev,
  #restricted-item-prev,
  #app-users-prev,
  #article-stats-prev,
  #article-prev {
    background-image: var(--icon-prev);
  }

  #admin-next,
  #address-next,
  #restricted-item-next,
  #app-users-next,
  #article-stats-next,
  #article-next {
    background-image: var(--icon-next);
  }

  #audit-prev {
    background-image: var(--icon-prev);
  }

  #audit-next {
    background-image: var(--icon-next);
  }
}

/* SECTION: Responsive rules */
@media (max-width: 980px) {
  .admin-layout {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    height: 100vh;
    flex-direction: column;
    z-index: 40;
    transform: translateX(0);
    pointer-events: auto;
    border-radius: 0 22px 22px 0;
  }

  .main-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 0.4rem 0.8rem;
  }

  body.sidebar-collapsed .sidebar {
    top: 0;
    left: 0;
    bottom: 0;
    transform: translateX(-120%);
    pointer-events: none;
  }

  body.sidebar-collapsed .sidebar-handle {
    top: 6px;
    left: 4px;
  }

  body.sidebar-collapsed .admin-layout {
    padding-left: 2.4rem;
  }

  .main-title {
    font-size: clamp(1.25rem, 4.6vw, 1.6rem);
  }

  #welcome-pill {
    justify-self: end;
    align-self: start;
  }

  .eyebrow {
    display: none;
  }
}

@media (max-width: 401px) {
  .admin-layout {
    padding: 1rem 1rem 1.2rem 2.2rem;
  }

  .main {
    padding: 1.4rem 1.5rem;
  }

  .kpi-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .chart-card,
  .kpi-card,
  .content-card {
    padding: 1rem;
  }

  .chart-legend {
    font-size: 0.55rem;
    letter-spacing: 0.08em;
  }

  .bar-chart {
    gap: 0.25rem;
  }

  .line-chart {
    height: 100px;
  }

  .donut-chart {
    width: 120px;
    height: 120px;
  }

  .donut-chart::after {
    width: 68px;
    height: 68px;
  }

  .kpi-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .content-section[data-section="dashboard"].is-active {
    overflow-x: hidden;
  }

  .content-section[data-section="dashboard"].is-active .chart-card {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 405px) {
  .main-header {
    grid-template-columns: 1fr;
  }

  #welcome-pill {
    justify-self: start;
    margin-top: 0.35rem;
  }

  .chart-pill--segmented {
    display: none;
  }

  .chart-action,
  .kpi-action {
    font-size: 0.55rem;
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.14em;
  }

  .activity-list.audit-activity li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .activity-list.audit-activity span {
    min-width: 0;
  }
}

@media (max-width: 717px) {
  .content-section[data-section="addresses"] .table-row,
  .content-section[data-section="addresses"] .table-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) auto;
    grid-template-areas: "base suite actions";
    column-gap: 0.35rem;
  }

  .content-section[data-section="addresses"] .table-row > span:nth-child(3),
  .content-section[data-section="addresses"] .table-row > span:nth-child(4),
  .content-section[data-section="addresses"] .table-head > span:nth-child(3),
  .content-section[data-section="addresses"] .table-head > span:nth-child(4) {
    display: none !important;
  }

  .content-section[data-section="addresses"] .table-row > span:nth-child(1),
  .content-section[data-section="addresses"] .table-head > span:nth-child(1) {
    grid-area: base;
  }

  .content-section[data-section="addresses"] .table-row > span:nth-child(2),
  .content-section[data-section="addresses"] .table-head > span:nth-child(2) {
    grid-area: suite;
  }

  .content-section[data-section="addresses"] .table-head > span:nth-child(5),
  .content-section[data-section="addresses"] .table-row .table-actions {
    grid-area: actions;
    justify-self: end;
  }

  .content-section[data-section="addresses"] .page-size label {
    display: none;
  }

  .content-section[data-section="restricted-items"] .table-row,
  .content-section[data-section="restricted-items"] .table-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
    grid-template-areas: "name keywords actions";
    column-gap: 0.35rem;
  }

  .content-section[data-section="restricted-items"] .table-row > span:nth-child(3),
  .content-section[data-section="restricted-items"] .table-row > span:nth-child(4),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(3),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(4) {
    display: none !important;
  }

  .content-section[data-section="restricted-items"] .table-row > span:nth-child(1),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(1) {
    grid-area: name;
  }

  .content-section[data-section="restricted-items"] .table-row > span:nth-child(2),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(2) {
    grid-area: keywords;
  }

  .content-section[data-section="restricted-items"] .table-head > span:nth-child(5),
  .content-section[data-section="restricted-items"] .table-row .table-actions {
    grid-area: actions;
    justify-self: end;
  }

  .content-section[data-section="restricted-items"] .page-size label {
    display: none;
  }

  .content-section[data-section="admin-users"] .table-row,
  .content-section[data-section="admin-users"] .table-head {
    grid-template-columns: 0.8rem minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    grid-template-areas: "dot name email actions";
    column-gap: 0.2rem;
  }

  .content-section[data-section="admin-users"] .table-row > span:nth-child(3),
  .content-section[data-section="admin-users"] .table-head > span:nth-child(3),
  .content-section[data-section="admin-users"] .table-head > span:nth-child(4) {
    display: none !important;
  }

  .content-section[data-section="admin-users"] .table-row > span:nth-child(1),
  .content-section[data-section="admin-users"] .table-head > span:nth-child(1) {
    grid-area: name;
  }

  .content-section[data-section="admin-users"] .table-row > span:nth-child(2),
  .content-section[data-section="admin-users"] .table-head > span:nth-child(2) {
    grid-area: email;
  }

  .content-section[data-section="admin-users"] .table-row > span:nth-child(4) {
    grid-area: dot;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .content-section[data-section="admin-users"] .table-head > span:nth-child(5),
  .content-section[data-section="admin-users"] .table-row .table-actions {
    grid-area: actions;
    justify-self: end;
  }

  .content-section[data-section="admin-users"] .badge {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
    border-width: 2px;
    transform: translateX(-4px);
  }

  .content-section[data-section="admin-users"] .table-actions [data-action="toggle"] {
    display: none;
  }

  .content-section[data-section="admin-users"] .page-size label {
    display: none;
  }

  .content-section[data-section="addresses"] .table-row.table-empty,
  .content-section[data-section="restricted-items"] .table-row.table-empty,
  .content-section[data-section="admin-users"] .table-row.table-empty,
  .content-section[data-section="app-users"] .table-row.table-empty,
  .content-section[data-section="articles"] .table-row.table-empty,
  .content-section[data-section="audit-log"] .table-row.table-empty {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 1rem 0.8rem;
    font-size: 0.8rem;
  }

  .content-section[data-section="app-users"] .table-row,
  .content-section[data-section="app-users"] .table-head {
    grid-template-columns: 0.8rem minmax(0, 1.1fr) minmax(0, 1.6fr) auto;
    grid-template-areas: "dot name email actions";
    column-gap: 0.2rem;
  }

  .content-section[data-section="app-users"] .table-row > span:nth-child(3),
  .content-section[data-section="app-users"] .table-row > span:nth-child(5),
  .content-section[data-section="app-users"] .table-head > span:nth-child(3),
  .content-section[data-section="app-users"] .table-head > span:nth-child(4),
  .content-section[data-section="app-users"] .table-head > span:nth-child(5) {
    display: none !important;
  }

  .content-section[data-section="app-users"] .table-row > span:nth-child(1),
  .content-section[data-section="app-users"] .table-head > span:nth-child(1) {
    grid-area: name;
  }

  .content-section[data-section="app-users"] .table-row > span:nth-child(2),
  .content-section[data-section="app-users"] .table-head > span:nth-child(2) {
    grid-area: email;
  }

  .content-section[data-section="app-users"] .table-row > span:nth-child(4) {
    grid-area: dot;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .content-section[data-section="app-users"] .table-head > span:nth-child(6),
  .content-section[data-section="app-users"] .table-row .table-actions {
    grid-area: actions;
    justify-self: end;
  }

  .content-section[data-section="app-users"] .badge {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
    border-width: 2px;
    transform: translateX(-4px);
  }

  .content-section[data-section="app-users"] .page-size label {
    display: none;
  }

  .content-section[data-section="articles"] .table-row,
  .content-section[data-section="articles"] .table-head {
    grid-template-columns: 0.8rem minmax(0, 1.5fr) minmax(0, 1fr) auto;
    grid-template-areas: "dot title created actions";
    column-gap: 0.2rem;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(2),
  .content-section[data-section="articles"] .table-head > span:nth-child(2),
  .content-section[data-section="articles"] .table-head > span:nth-child(3) {
    display: none !important;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(1),
  .content-section[data-section="articles"] .table-head > span:nth-child(1) {
    grid-area: title;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(3) {
    grid-area: dot;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(4),
  .content-section[data-section="articles"] .table-head > span:nth-child(4) {
    grid-area: created;
  }

  .content-section[data-section="articles"] .table-head > span:nth-child(5),
  .content-section[data-section="articles"] .table-row .table-actions {
    grid-area: actions;
    justify-self: end;
  }

  .content-section[data-section="articles"] .badge {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
    border-width: 2px;
    transform: translateX(-4px);
  }

  .content-section[data-section="articles"] .page-size label {
    display: none;
  }

  .content-section[data-section="article-stats"] .page-size label {
    display: none;
  }

  .content-section[data-section="audit-log"] .table-row,
  .content-section[data-section="audit-log"] .table-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .content-section[data-section="audit-log"] .table-row > span:nth-child(3),
  .content-section[data-section="audit-log"] .table-head > span:nth-child(3) {
    display: none;
  }

  .content-section[data-section="audit-log"] .page-size label {
    display: none;
  }
}

@media (max-width: 649px) {
  .address-base-row {
    grid-template-columns: 1fr;
  }

  .address-base-row .btn-primary {
    min-width: 0;
    width: 100%;
  }

  .content-section[data-section="admin-users"] .section-header > div:not(.section-actions) {
    display: none;
  }

  .content-section[data-section="admin-users"] .section-actions {
    width: 100%;
    justify-content: space-between;
  }

  .content-section[data-section="admin-users"] .search-field {
    flex: 1;
  }

  .content-section[data-section="admin-users"] .search-field input {
    min-width: 0;
    width: 100%;
  }

  .content-section[data-section="admin-users"] #admin-add-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2212%22%20y1%3D%225%22%20x2%3D%2212%22%20y2%3D%2219%22%2F%3E%3Cline%20x1%3D%225%22%20y1%3D%2212%22%20x2%3D%2219%22%20y2%3D%2212%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
  }

  .content-section[data-section="admin-users"] #admin-add-btn::before,
  .content-section[data-section="admin-users"] #admin-add-btn::after {
    content: none;
  }

  .content-section[data-section="addresses"] .section-header > div:not(.section-actions),
  .content-section[data-section="restricted-items"] .section-header > div:not(.section-actions),
  .content-section[data-section="app-users"] .section-header > div:not(.section-actions),
  .content-section[data-section="article-stats"] .section-header > div:not(.section-actions),
  .content-section[data-section="articles"] .section-header > div:not(.section-actions),
  .content-section[data-section="audit-log"] .section-header > div:not(.section-actions) {
    display: none;
  }

  .content-section[data-section="addresses"] .section-actions,
  .content-section[data-section="restricted-items"] .section-actions,
  .content-section[data-section="app-users"] .section-actions,
  .content-section[data-section="articles"] .section-actions,
  .content-section[data-section="audit-log"] .section-header {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .content-section[data-section="addresses"] .search-field,
  .content-section[data-section="restricted-items"] .search-field,
  .content-section[data-section="app-users"] .search-field,
  .content-section[data-section="articles"] .search-field {
    flex: 1 1 220px;
  }

  .content-section[data-section="addresses"] .search-field input,
  .content-section[data-section="restricted-items"] .search-field input,
  .content-section[data-section="app-users"] .search-field input,
  .content-section[data-section="articles"] .search-field input {
    min-width: 0;
    width: 100%;
  }

  .content-section[data-section="addresses"] #address-add-btn,
  .content-section[data-section="restricted-items"] #restricted-item-add-btn,
  .content-section[data-section="articles"] #article-add-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 0;
    letter-spacing: 0;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cline%20x1%3D%2212%22%20y1%3D%225%22%20x2%3D%2212%22%20y2%3D%2219%22%2F%3E%3Cline%20x1%3D%225%22%20y1%3D%2212%22%20x2%3D%2219%22%20y2%3D%2212%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
  }

  .content-section[data-section="addresses"] #address-add-btn::before,
  .content-section[data-section="addresses"] #address-add-btn::after,
  .content-section[data-section="restricted-items"] #restricted-item-add-btn::before,
  .content-section[data-section="restricted-items"] #restricted-item-add-btn::after,
  .content-section[data-section="articles"] #article-add-btn::before,
  .content-section[data-section="articles"] #article-add-btn::after {
    content: none;
  }
}

@media (max-width: 535px) {
  .content-section[data-section="admin-users"] .table-row,
  .content-section[data-section="admin-users"] .table-head {
    grid-template-columns: 0.6rem minmax(0, 1fr) minmax(0, 1.3fr) auto;
    column-gap: 0.12rem;
  }

  .content-section[data-section="admin-users"] .table-row > span,
  .content-section[data-section="admin-users"] .table-head > span {
    font-size: 0.78rem;
  }

  .content-section[data-section="addresses"] .table-row,
  .content-section[data-section="addresses"] .table-head,
  .content-section[data-section="restricted-items"] .table-row,
  .content-section[data-section="restricted-items"] .table-head,
  .content-section[data-section="app-users"] .table-row,
  .content-section[data-section="app-users"] .table-head,
  .content-section[data-section="articles"] .table-row,
  .content-section[data-section="articles"] .table-head,
  .content-section[data-section="article-stats"] .table-row,
  .content-section[data-section="article-stats"] .table-head,
  .content-section[data-section="audit-log"] .table-row,
  .content-section[data-section="audit-log"] .table-head {
    column-gap: 0.12rem;
  }

  .content-section[data-section="addresses"] .table-row > span,
  .content-section[data-section="addresses"] .table-head > span,
  .content-section[data-section="restricted-items"] .table-row > span,
  .content-section[data-section="restricted-items"] .table-head > span,
  .content-section[data-section="app-users"] .table-row > span,
  .content-section[data-section="app-users"] .table-head > span,
  .content-section[data-section="articles"] .table-row > span,
  .content-section[data-section="articles"] .table-head > span,
  .content-section[data-section="article-stats"] .table-row > span,
  .content-section[data-section="article-stats"] .table-head > span,
  .content-section[data-section="audit-log"] .table-row > span,
  .content-section[data-section="audit-log"] .table-head > span {
    font-size: 0.78rem;
  }
}

@media (max-width: 511px) {
  .content-section[data-section="addresses"] .table-row,
  .content-section[data-section="addresses"] .table-head {
    grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 0.8fr);
    grid-template-areas: "edit base suite";
    column-gap: 0.35rem;
  }

  .content-section[data-section="addresses"] .table-row > span:nth-child(3),
  .content-section[data-section="addresses"] .table-row > span:nth-child(4),
  .content-section[data-section="addresses"] .table-head > span:nth-child(3),
  .content-section[data-section="addresses"] .table-head > span:nth-child(4),
  .content-section[data-section="addresses"] .table-head > span:nth-child(5) {
    display: none;
  }

  .content-section[data-section="addresses"] .table-row .table-actions {
    grid-area: edit;
    justify-self: start;
    gap: 0.15rem;
    flex-wrap: nowrap;
  }

  .content-section[data-section="addresses"] .table-actions .action-btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }

  .content-section[data-section="addresses"] .table-actions .action-btn::before,
  .content-section[data-section="addresses"] .table-actions .action-btn::after {
    content: none;
  }

  .content-section[data-section="addresses"] .table-actions .action-btn[data-action="edit"],
  .content-section[data-section="addresses"] .table-actions .action-btn[data-action="delete"] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .content-section[data-section="addresses"] .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
  }

  .content-section[data-section="addresses"] .table-actions .action-btn[data-action="delete"] {
    background-image: var(--icon-delete);
  }

  .content-section[data-section="addresses"] #address-count {
    display: none;
  }

  .content-section[data-section="restricted-items"] .table-row,
  .content-section[data-section="restricted-items"] .table-head {
    grid-template-columns: 2.4rem minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas: "edit name keywords";
    column-gap: 0.35rem;
  }

  .content-section[data-section="restricted-items"] .table-row > span:nth-child(3),
  .content-section[data-section="restricted-items"] .table-row > span:nth-child(4),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(3),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(4),
  .content-section[data-section="restricted-items"] .table-head > span:nth-child(5) {
    display: none;
  }

  .content-section[data-section="restricted-items"] .table-row .table-actions {
    grid-area: edit;
    justify-self: start;
    gap: 0.15rem;
    flex-wrap: nowrap;
  }

  .content-section[data-section="restricted-items"] .table-actions .action-btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }

  .content-section[data-section="restricted-items"] .table-actions .action-btn::before,
  .content-section[data-section="restricted-items"] .table-actions .action-btn::after {
    content: none;
  }

  .content-section[data-section="restricted-items"] .table-actions .action-btn[data-action="edit"],
  .content-section[data-section="restricted-items"] .table-actions .action-btn[data-action="delete"] {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .content-section[data-section="restricted-items"] .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
  }

  .content-section[data-section="restricted-items"] .table-actions .action-btn[data-action="delete"] {
    background-image: var(--icon-delete);
  }

  .content-section[data-section="restricted-items"] #restricted-item-count {
    display: none;
  }

  .content-section[data-section="admin-users"] .table-row,
  .content-section[data-section="admin-users"] .table-head {
    grid-template-columns: 1.1rem minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas: "edit name email";
    column-gap: 0.4rem;
  }

  .content-section[data-section="admin-users"] .table-row > span:nth-child(4),
  .content-section[data-section="admin-users"] .badge {
    display: none !important;
  }

  .content-section[data-section="admin-users"] .table-head > span:nth-child(5) {
    display: none;
  }

  .content-section[data-section="admin-users"] .table-row .table-actions {
    grid-area: edit;
    justify-self: start;
  }

  .content-section[data-section="admin-users"] .table-actions .action-btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }

  .content-section[data-section="admin-users"] .table-actions .action-btn::before,
  .content-section[data-section="admin-users"] .table-actions .action-btn::after {
    content: none;
  }

  .content-section[data-section="admin-users"] .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .content-section[data-section="admin-users"] #admin-count {
    display: none;
  }

  .content-section[data-section="app-users"] .table-row,
  .content-section[data-section="app-users"] .table-head {
    grid-template-columns: 1.1rem minmax(0, 1fr) minmax(0, 1.4fr);
    grid-template-areas: "edit name email";
    column-gap: 0.4rem;
  }

  .content-section[data-section="app-users"] .table-row > span:nth-child(3),
  .content-section[data-section="app-users"] .table-row > span:nth-child(4),
  .content-section[data-section="app-users"] .table-row > span:nth-child(5),
  .content-section[data-section="app-users"] .badge {
    display: none !important;
  }

  .content-section[data-section="app-users"] .table-head > span:nth-child(3),
  .content-section[data-section="app-users"] .table-head > span:nth-child(4),
  .content-section[data-section="app-users"] .table-head > span:nth-child(5),
  .content-section[data-section="app-users"] .table-head > span:nth-child(6) {
    display: none;
  }

  .content-section[data-section="app-users"] .table-row .table-actions {
    grid-area: edit;
    justify-self: start;
  }

  .content-section[data-section="app-users"] .table-actions .action-btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }

  .content-section[data-section="app-users"] .table-actions .action-btn::before,
  .content-section[data-section="app-users"] .table-actions .action-btn::after {
    content: none;
  }

  .content-section[data-section="app-users"] .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .content-section[data-section="app-users"] .table-actions .action-btn[data-action="toggle"] {
    display: none;
  }

  .content-section[data-section="app-users"] #app-users-count {
    display: none;
  }

  .content-section[data-section="articles"] .table-row,
  .content-section[data-section="articles"] .table-head {
    grid-template-columns: 1.1rem minmax(0, 1.4fr) minmax(0, 1fr);
    grid-template-areas: "edit title created";
    column-gap: 0.4rem;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(3),
  .content-section[data-section="articles"] .badge {
    display: none !important;
  }

  .content-section[data-section="articles"] .table-row > span:nth-child(2) {
    display: none !important;
  }

  .content-section[data-section="articles"] .table-head > span:nth-child(5) {
    display: none;
  }

  .content-section[data-section="articles"] .table-row .table-actions {
    grid-area: edit;
    justify-self: start;
  }

  .content-section[data-section="articles"] .table-actions .action-btn {
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-color: transparent;
    box-shadow: none;
  }

  .content-section[data-section="articles"] .table-actions .action-btn::before,
  .content-section[data-section="articles"] .table-actions .action-btn::after {
    content: none;
  }

  .content-section[data-section="articles"] .table-actions .action-btn[data-action="edit"] {
    background-image: var(--icon-edit);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
  }

  .content-section[data-section="articles"] .table-actions .action-btn[data-action="delete"] {
    display: none;
  }

  .content-section[data-section="articles"] #article-count {
    display: none;
  }

  .content-section[data-section="audit-log"] #audit-count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
