/* ============================================================
   NETICKS CHARGE — ADMIN PANEL & CUSTOMER PORTAL
   Component styles lifted from the Neticks console dashboard
   (members/index.php) so this app is visually identical:
   #111827 ink, 2px #e5e7eb borders, 16px radius cards,
   uppercase 13px/600 labels with 0.5px tracking.
   ============================================================ */

:root {
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-soft: #f3f4f6;
  --panel: #f9fafb;
  --white: #ffffff;
  --success: #10b981;
  --success-bg: #dcfce7;
  --success-ink: #166534;
  --warning: #fbbf24;
  --warning-bg: #fef3c7;
  --warning-ink: #92400e;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --danger-ink: #991b1b;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --info-ink: #1e40af;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f9fafb;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
}

a { color: inherit; }

/* ============================================
   LAYOUT
   ============================================ */
.dashboard-container {
  padding: 24px;
  max-width: 100%;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.main-column { min-width: 0; overflow: hidden; }

.sidebar-column {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  min-width: 360px;
}

@media (max-width: 1180px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .sidebar-column { position: static; min-width: 0; max-height: none; }
}

/* ============================================
   PAGE / WELCOME HEADER
   ============================================ */
.welcome-header {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.welcome-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.welcome-text h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 8px 0;
}

.welcome-text p {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.welcome-date {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 4px;
}

.welcome-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.page-eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.action-btn {
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: inherit;
  line-height: 1.2;
}

.action-btn.primary { background: var(--ink); color: #fff; }

.action-btn.primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn.secondary {
  background: var(--line-soft);
  color: var(--ink);
  border: 2px solid var(--line);
}

.action-btn.secondary:hover { background: var(--line); border-color: var(--ink); }

.action-btn.danger { background: var(--danger); color: #fff; }
.action-btn.danger:hover { background: #dc2626; }

.action-btn.small { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }

.action-btn:disabled,
.action-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  text-decoration: none;
  padding: 0;
}

.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger); border-color: var(--danger); }
a.icon-btn { color: var(--muted); }
a.icon-btn:hover { color: #fff; }

.action-btns { display: flex; gap: 6px; }

/* ============================================
   USER INFO BAR
   ============================================ */
.user-info-bar {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.user-detail { display: flex; align-items: center; gap: 8px; }

.user-label { font-size: 13px; color: var(--muted); font-weight: 500; }

.user-value {
  background: var(--line-soft);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* ============================================
   STAT CARDS
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--ink);
  transition: height 0.3s;
}

.stat-card:hover {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.stat-card:hover::before { height: 100%; }

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 2px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-value {
  font-size: 40px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1;
}

.stat-value.small { font-size: 28px; }

.stat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--success);
}

.stat-trend.down { color: var(--danger); }

/* ============================================
   PANELS / TABLE SECTION
   ============================================ */
.table-section,
.panel {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}

.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.table-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px 0;
}

.table-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.search-box { position: relative; max-width: 280px; }

.search-input {
  width: 100%;
  padding: 10px 16px 10px 38px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.search-input:focus { border-color: var(--ink); }

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 16px;
}

.refresh-btn {
  padding: 10px 16px;
  background: var(--line-soft);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.refresh-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================
   TABLES
   ============================================ */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 16px;
}

.modern-table thead th {
  background: var(--panel);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  border-bottom: 2px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.modern-table thead th:first-child { border-radius: 12px 0 0 0; }
.modern-table thead th:last-child { border-radius: 0 12px 0 0; }

.modern-table tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 14px;
  vertical-align: middle;
}

.modern-table tbody tr { transition: background 0.2s; }
.modern-table tbody tr:hover { background: var(--panel); }
.modern-table tbody tr:last-child td { border-bottom: none; }

.modern-table td.numeric,
.modern-table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }

.instance-logo-cell {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s;
  font-size: 22px;
  color: var(--ink);
  flex-shrink: 0;
}

a.instance-logo-cell:hover { transform: scale(1.05); border-color: var(--ink); }

.instance-info h6 {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
  margin: 0 0 4px 0;
}

.instance-info h6 a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
.instance-info h6 a:hover { color: var(--ink-soft); text-decoration: underline; }
.instance-info p { font-size: 13px; color: var(--muted); margin: 0; }

.cell-flex { display: flex; align-items: center; gap: 12px; }

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

.badge-success { background: var(--success-bg); color: var(--success-ink); }
.badge-warning { background: var(--warning-bg); color: var(--warning-ink); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-ink); }
.badge-info    { background: var(--info-bg);    color: var(--info-ink); }
.badge-muted   { background: var(--line-soft);  color: var(--muted); }
.badge-ink     { background: var(--ink);        color: #fff; }

/* ============================================
   PROGRESS
   ============================================ */
.progress-bar-wrapper { max-width: 140px; }

.progress-mini {
  height: 6px;
  background: var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-mini-fill { height: 100%; background: var(--ink); border-radius: 6px; }
.progress-text { font-size: 11px; color: var(--muted); }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state { text-align: center; padding: 60px 20px; }

.empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--line-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--faint);
}

.empty-title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.empty-text { font-size: 14px; color: var(--muted); margin-bottom: 20px; }

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-feed,
.alerts-panel,
.system-overview {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.activity-header,
.overview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 10px;
}

.activity-title,
.overview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: all 0.2s;
}

.activity-item:hover { background: var(--panel); }

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.activity-icon.success { background: var(--success-bg); color: var(--success-ink); }
.activity-icon.warning { background: var(--warning-bg); color: var(--warning-ink); }
.activity-icon.info    { background: var(--info-bg);    color: var(--info-ink); }
.activity-icon.error   { background: var(--danger-bg);  color: var(--danger-ink); }

.activity-content { flex: 1; min-width: 0; }

.activity-text {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
  word-break: break-word;
}

.activity-time { font-size: 12px; color: var(--faint); }

/* ============================================
   ALERTS
   ============================================ */
.alert-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border: 2px solid transparent;
}

.alert-item.warning { background: #fffbeb; border-color: var(--warning-bg); }
.alert-item.success { background: #f0fdf4; border-color: var(--success-bg); }
.alert-item.info    { background: #eff6ff; border-color: var(--info-bg); }
.alert-item.error   { background: #fef2f2; border-color: var(--danger-bg); }

.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: #fff;
}

.alert-item.warning .alert-icon { background: var(--warning); }
.alert-item.success .alert-icon { background: var(--success); }
.alert-item.info .alert-icon    { background: var(--info); }
.alert-item.error .alert-icon   { background: var(--danger); }

.alert-text { font-size: 13px; color: var(--ink); font-weight: 500; }

/* Flash messages */
.flash-stack { margin-bottom: 20px; }

/* ============================================
   SYSTEM OVERVIEW / QUICK STATS
   ============================================ */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.status-indicator.offline { background: #fef2f2; border-color: #fecaca; }

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

.status-indicator.offline .status-dot { background: var(--danger); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.status-text { font-size: 14px; font-weight: 600; color: var(--success-ink); }
.status-indicator.offline .status-text { color: var(--danger-ink); }

.quick-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 12px;
}

.quick-stat:last-child { border-bottom: none; }
.quick-stat-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.quick-stat-value { font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }

.storage-breakdown { margin-top: 20px; padding-top: 20px; border-top: 2px solid var(--line-soft); }
.storage-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.storage-item { margin-bottom: 12px; }
.storage-item-header { display: flex; justify-content: space-between; margin-bottom: 6px; }
.storage-item-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.storage-item-value { font-size: 12px; font-weight: 700; color: var(--ink); }

/* ============================================
   FORMS
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.form-grid.single { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.span-2 { grid-column: 1 / -1; }

.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--ink); }

.form-input:disabled,
.form-input[readonly] { background: var(--panel); color: var(--muted); }

.form-textarea { min-height: 92px; resize: vertical; }

.form-hint { font-size: 12px; color: var(--faint); line-height: 1.5; }

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 2px solid var(--line-soft);
  flex-wrap: wrap;
  align-items: center;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #111827;
  cursor: pointer;
}

.inline-form { display: inline; }

/* ============================================
   TABS
   ============================================ */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab {
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ============================================
   DEFINITION / CONFIG BLOCKS
   ============================================ */
.config-list { display: grid; gap: 0; }

.config-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.config-row:last-child { border-bottom: none; }

.config-key {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.config-value {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.copy-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 820px) {
  .config-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ============================================
   QR PLACARD
   ============================================ */
.qr-card {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.qr-frame {
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: #fff;
  line-height: 0;
}

.qr-frame img { width: 200px; height: 200px; display: block; }

/* ============================================
   NOTE / DOC BLOCKS
   ============================================ */
.note {
  border-left: 3px solid var(--ink);
  background: var(--panel);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.doc-body { font-size: 15px; line-height: 1.7; color: var(--ink-soft); max-width: 940px; }
.doc-body h2 {
  font-size: 19px;
  margin: 34px 0 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  color: var(--ink);
}
.doc-body h3 { font-size: 15px; margin: 22px 0 6px; color: var(--ink); }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 8px 0; }
.doc-body li { margin-bottom: 6px; }
.doc-body code {
  background: var(--line-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: var(--ink);
}
.doc-body pre {
  background: #0f1115;
  color: #e6e6e6;
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
}
.doc-body pre.diagram {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}
.doc-body table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.doc-body th, .doc-body td {
  border: 1px solid var(--line);
  padding: 9px 11px;
  font-size: 13.5px;
  text-align: left;
  vertical-align: top;
}
.doc-body th { background: var(--panel); font-weight: 600; }

.faq-item {
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  background: #fff;
}

.faq-q {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.faq-answer { font-size: 14px; color: var(--ink-soft); line-height: 1.7; }

.yes-pill {
  background: var(--success-bg);
  color: var(--success-ink);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================
   PAGINATION / FILTERS
   ============================================ */
.filter-bar {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-bar .form-field { min-width: 160px; gap: 4px; }

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.pagination a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================
   UTILITIES
   ============================================ */
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { font-weight: 700; color: var(--ink); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex { display: flex; }
.flex-gap { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
