/* it.css — Axalar ERP IT & Security Module
   Inherits Logistics/axalar-ui.css design tokens + adds IT-specific styles */

/* ── RESET + TOKENS ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:    #0a0a0f;
  --paper:  #f5f4f0;
  --mid:    #e8e6df;
  --dim:    #9b9890;
  --accent: #d64a1e;
  --accent2:#f0a500;
  --good:   #1a9966;
  --mono:   'JetBrains Mono', monospace;
  --sans:   'DM Sans', sans-serif;
  --display:'Outfit', sans-serif;
  --r:      6px;
  --r-lg:   14px;
  --shadow: 0 2px 16px rgba(10,10,15,.10);
  --shadow-md: 0 4px 32px rgba(10,10,15,.14);

  /* IT-specific tokens */
  --it-blue:    #2563eb;
  --it-blue-bg: #eff6ff;
  --it-purple:  #7c3aed;
  --it-purple-bg: #f5f3ff;
  --status-operational: #1a9966;
  --status-operational-bg: #e0ffe8;
  --status-operational-border: #60d480;
  --status-warning: #d97706;
  --status-warning-bg: #fff8e0;
  --status-warning-border: #f0c800;
  --status-critical: #dc2626;
  --status-critical-bg: #ffe8e8;
  --status-critical-border: #ff9999;
}

html, body { height: 100%; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh; min-height: 100dvh;
  overflow-x: hidden;
}

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mid); border-radius: 99px; }

/* ── NAV ────────────────────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  height: 54px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-brand {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-sep { width: 1px; height: 24px; background: rgba(255,255,255,.12); }

.nav-crumb {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .02em;
}

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.nav-badge {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 99px;
  color: rgba(255,255,255,.7);
}

.btn-ghost-light {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r);
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }

/* ── LAYOUT (wrap) ──────────────────────────────────── */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 28px 40px;
}

.title {
  font-family: var(--display);
  font-size: 44px;
  letter-spacing: .03em;
  line-height: 1;
}
.sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--dim);
  font-family: var(--mono);
}

/* ── DASHBOARD CARD GRID ────────────────────────────── */
.grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.card {
  background: #fff;
  border: 1.5px solid var(--mid);
  border-radius: var(--r-lg);
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .12s, border-color .12s;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-2px); border-color: var(--ink); }

.card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--mid);
  flex-shrink: 0;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-weight: 700; letter-spacing: .02em; }

.card-desc {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.45;
}

.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.card-stat {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  display: flex; align-items: center; gap: 4px;
}
.card-stat .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.card-stat .dot.green { background: var(--status-operational); }
.card-stat .dot.amber { background: var(--status-warning); }
.card-stat .dot.red { background: var(--status-critical); }

/* ── CHIPS ──────────────────────────────────────────── */
.chip {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 99px;
  border: 1.5px solid; font-family: var(--mono);
}
.chip-muted { background: transparent; border-color: var(--mid); color: var(--dim); }
.chip-good { background: #e0ffe8; border-color: #60d480; color: #004420; }
.chip-warn { background: #fff8e0; border-color: #f0c800; color: #5a4000; }
.chip-bad  { background: #ffe8e8; border-color: #ff9999; color: #880000; }
.chip-info { background: var(--it-blue-bg); border-color: #93c5fd; color: #1e40af; }
.chip-purple { background: var(--it-purple-bg); border-color: #c4b5fd; color: #5b21b6; }

/* ── STATUS INDICATORS ──────────────────────────────── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.operational { background: var(--status-operational); box-shadow: 0 0 6px rgba(26,153,102,.4); }
.status-dot.warning     { background: var(--status-warning); box-shadow: 0 0 6px rgba(217,119,6,.4); }
.status-dot.critical    { background: var(--status-critical); box-shadow: 0 0 6px rgba(220,38,38,.4); animation: pulse-critical 1.5s infinite; }

@keyframes pulse-critical {
  0%, 100% { box-shadow: 0 0 6px rgba(220,38,38,.4); }
  50% { box-shadow: 0 0 14px rgba(220,38,38,.7); }
}

.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 99px;
}
.status-badge.operational { background: var(--status-operational-bg); border: 1.5px solid var(--status-operational-border); color: #004420; }
.status-badge.warning { background: var(--status-warning-bg); border: 1.5px solid var(--status-warning-border); color: #5a4000; }
.status-badge.critical { background: var(--status-critical-bg); border: 1.5px solid var(--status-critical-border); color: #880000; }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 8px 18px; border-radius: var(--r);
  border: 1.5px solid; cursor: pointer; transition: all .12s;
  letter-spacing: .01em; white-space: nowrap;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #222; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #b83c16; }
.btn-outline { background: transparent; border-color: var(--mid); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: var(--r);
  border: 1.5px solid var(--mid); background: #fff;
  color: var(--ink); cursor: pointer; transition: all .12s;
}
.btn-xs:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-danger { background: #ffe8e8; border-color: #ffb0b0; color: #880000; }
.btn-danger:hover { background: #880000; border-color: #880000; color: #fff; }
.btn-good { background: #e0ffe8; border-color: #60d480; color: #004420; }
.btn-good:hover { background: #004420; border-color: #004420; color: #fff; }

/* ── MODULE PAGE LAYOUT ─────────────────────────────── */
.module-layout {
  display: flex; flex-direction: column;
  height: calc(100vh - 54px);
  overflow: hidden;
}

.module-head {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--mid);
  background: var(--paper);
  flex-shrink: 0;
}

.module-title { font-family: var(--display); font-size: 38px; letter-spacing: .02em; line-height: 1; }
.module-sub { font-size: 12px; color: var(--dim); margin-top: 4px; font-weight: 400; }

.head-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ── TABS ───────────────────────────────────────────── */
.tab-bar {
  display: flex; border-bottom: 1px solid var(--mid);
  background: var(--paper); padding: 0 24px;
  overflow-x: auto; flex-shrink: 0;
}
.tab-btn {
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 10px 16px; background: none; border: none;
  border-bottom: 2.5px solid transparent;
  color: var(--dim); cursor: pointer; transition: all .12s;
  white-space: nowrap;
}
.tab-btn.active { color: var(--ink); border-bottom-color: var(--ink); }
.tab-btn:hover:not(.active) { color: var(--ink); }
.tab-btn .tab-count {
  font-family: var(--mono); font-size: 10px;
  background: var(--mid); padding: 1px 6px; border-radius: 99px;
  margin-left: 4px;
}
.tab-btn.active .tab-count { background: var(--ink); color: #fff; }

/* ── TAB CONTENT ────────────────────────────────────── */
.tab-body { flex: 1; overflow-y: auto; }
.tab-pane { display: none; padding: 20px 28px; }
.tab-pane.active { display: block; }

/* ── TABLE ──────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); padding: 8px 10px; text-align: left;
  border-bottom: 1.5px solid var(--mid); white-space: nowrap;
  position: sticky; top: 0; background: var(--paper); z-index: 1;
}
thead th:last-child { text-align: right; }
tbody tr { transition: background .08s; }
tbody tr:hover { background: var(--mid); }
tbody td { padding: 10px 10px; vertical-align: top; border-bottom: 1px solid var(--mid); }
tbody td:last-child { text-align: right; white-space: nowrap; }

.cell-code { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cell-primary { font-weight: 600; }
.cell-secondary { font-size: 11px; color: var(--dim); margin-top: 2px; }

.table-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.table-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.table-toolbar-label { font-size: 12px; color: var(--dim); font-family: var(--mono); }

/* ── SEARCH ─────────────────────────────────────────── */
.search-wrap { position: relative; }
.search-wrap svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  opacity: .35; pointer-events: none;
}
.input-search {
  width: 100%; padding: 8px 10px 8px 34px;
  background: var(--mid); border: 1.5px solid transparent;
  border-radius: var(--r); font-family: var(--sans); font-size: 13px; color: var(--ink);
  outline: none; transition: border .15s;
}
.input-search:focus { border-color: var(--ink); background: #fff; }
.input-search::placeholder { color: var(--dim); }

.filter-select {
  padding: 7px 10px;
  background: #fff; border: 1.5px solid var(--mid);
  border-radius: var(--r); font-family: var(--sans); font-size: 12px; color: var(--ink);
  outline: none; cursor: pointer; transition: border .15s; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9890' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  padding-right: 28px;
}
.filter-select:focus { border-color: var(--ink); }

/* ── MODALS ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(10,10,15,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--paper);
  border: 1.5px solid var(--mid);
  border-radius: var(--r-lg);
  width: 100%; max-width: 760px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(12px) scale(.98);
  transition: transform .2s;
  box-shadow: var(--shadow-md);
}
.modal-overlay.open .modal-box { transform: none; }

.modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--mid);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--display); font-size: 22px; letter-spacing: .02em; }
.modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--dim); line-height: 1;
}
.modal-close:hover { color: var(--ink); }

.modal-body { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--mid);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── FORM CONTROLS ──────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 5px;
}
.field-row { display: grid; gap: 12px; }
.field-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.form-control {
  width: 100%; padding: 9px 12px;
  background: #fff; border: 1.5px solid var(--mid);
  border-radius: var(--r); font-family: var(--sans); font-size: 13px; color: var(--ink);
  outline: none; transition: border .15s;
}
.form-control:focus { border-color: var(--ink); }
.form-control::placeholder { color: var(--dim); }
textarea.form-control { resize: vertical; min-height: 72px; }
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239b9890' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 30px;
}

.form-hint { font-size: 11px; color: var(--dim); margin-top: 4px; }

.section-divider {
  border: none; border-top: 1px solid var(--mid);
  margin: 18px 0;
}

/* ── TIMELINE (Incident logs) ──────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: '';
  position: absolute; left: 10px; top: 0; bottom: 0;
  width: 2px; background: var(--mid);
}

.timeline-item {
  position: relative;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1.5px solid var(--mid);
  border-radius: var(--r-lg);
  transition: border-color .12s;
}
.timeline-item:hover { border-color: var(--ink); }

.timeline-item::before {
  content: '';
  position: absolute; left: -24px; top: 18px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mid);
  border: 2px solid var(--paper);
}
.timeline-item.severity-critical::before { background: var(--status-critical); }
.timeline-item.severity-high::before { background: var(--accent); }
.timeline-item.severity-medium::before { background: var(--status-warning); }
.timeline-item.severity-low::before { background: var(--status-operational); }

.timeline-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.timeline-title { font-weight: 600; font-size: 14px; }
.timeline-meta {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
}
.timeline-body { font-size: 13px; color: var(--dim); line-height: 1.5; }
.timeline-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.timeline-actions { display: flex; gap: 6px; margin-top: 10px; }

/* ── BACKUP STATUS CARD ──────────────────────────────── */
.backup-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.backup-card {
  background: #fff; border: 1.5px solid var(--mid);
  border-radius: var(--r-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.backup-card-head {
  display: flex; align-items: center; justify-content: space-between;
}
.backup-card-title { font-weight: 600; font-size: 13px; }
.backup-card-meta { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.backup-card-bar {
  height: 4px; border-radius: 2px; background: var(--mid);
  overflow: hidden;
}
.backup-card-bar-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.backup-card-bar-fill.success { background: var(--status-operational); }
.backup-card-bar-fill.failed { background: var(--status-critical); }
.backup-card-bar-fill.running { background: var(--status-warning); animation: progress-pulse 1.5s infinite; }

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

/* ── LOG VIEWER ──────────────────────────────────────── */
.log-viewer {
  font-family: var(--mono); font-size: 12px;
  background: var(--ink); color: #ccc;
  border-radius: var(--r-lg); padding: 16px;
  max-height: 400px; overflow-y: auto;
  line-height: 1.7;
}
.log-line { display: flex; gap: 10px; padding: 2px 0; }
.log-time { color: #666; flex-shrink: 0; }
.log-level { font-weight: 600; flex-shrink: 0; min-width: 50px; text-align: right; }
.log-level.info { color: #60a5fa; }
.log-level.warn { color: #fbbf24; }
.log-level.error { color: #f87171; }
.log-level.critical { color: #ff4444; font-weight: 700; }
.log-source { color: #a78bfa; flex-shrink: 0; }
.log-msg { color: #e5e5e5; }

/* ── EMPTY STATE ────────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; gap: 12px;
  color: var(--dim);
}
.empty-icon { font-size: 52px; opacity: .4; }
.empty-title {
  font-family: var(--display); font-size: 24px;
  color: var(--ink); opacity: .3; letter-spacing: .04em;
}
.empty-sub { font-size: 12px; }

/* ── DOCUMENTATION CONTENT ───────────────────────────── */
.doc-content {
  background: #fff; border: 1.5px solid var(--mid);
  border-radius: var(--r-lg); padding: 24px;
  line-height: 1.7; font-size: 14px;
}
.doc-content h1, .doc-content h2, .doc-content h3 {
  font-family: var(--display); letter-spacing: .02em;
  margin: 20px 0 10px;
}
.doc-content h1 { font-size: 28px; }
.doc-content h2 { font-size: 22px; }
.doc-content h3 { font-size: 18px; }
.doc-content p { margin-bottom: 12px; }
.doc-content code {
  font-family: var(--mono); font-size: 12px;
  background: var(--mid); padding: 2px 6px;
  border-radius: 4px;
}
.doc-content pre {
  font-family: var(--mono); font-size: 12px;
  background: var(--ink); color: #e5e5e5;
  padding: 16px; border-radius: var(--r);
  overflow-x: auto; margin: 12px 0;
}

/* ── PILL ────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  padding: 4px 10px; border: 1.5px solid var(--mid);
  border-radius: 999px; background: #fff; color: var(--dim);
}

/* ── KBD ─────────────────────────────────────────────── */
.kbd {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border: 1.5px solid var(--mid);
  border-radius: 999px; background: #fff; color: var(--dim);
}

/* ── TOAST ──────────────────────────────────────────── */
.toast-zone {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast-item {
  padding: 12px 18px;
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg);
  font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideUp .2s ease;
  display: flex; align-items: center; gap: 8px;
}
.toast-item.success { background: #065f46; }
.toast-item.error { background: #991b1b; }
.toast-item.warning { background: #92400e; }

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ── PERFORMANCE MONITOR ─────────────────────────────── */
.perf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.perf-card {
  background: var(--ink);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  padding: 16px;
}
.perf-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--dim);
  margin-bottom: 4px;
}
.perf-value {
  font-size: 24px;
  font-weight: 700;
  font-family: var(--mono);
  color: #fff;
}
.perf-value .perf-unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--dim);
  margin-left: 2px;
}

.perf-grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.coll-overview-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 18px;
}
.coll-overview-tbl thead th {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); padding: 8px 10px; text-align: left;
  border-bottom: 1.5px solid var(--mid); white-space: nowrap;
}
.coll-overview-tbl thead th:last-child { text-align: right; }
.coll-overview-tbl tbody tr { transition: background .08s; }
.coll-overview-tbl tbody tr:hover { background: var(--mid); }
.coll-overview-tbl tbody td {
  padding: 8px 10px; vertical-align: middle;
  border-bottom: 1px solid var(--mid); font-family: var(--mono); font-size: 12px;
}
.coll-overview-tbl tbody td:nth-child(2) { font-weight: 700; }
.coll-overview-tbl tbody td:last-child { text-align: right; color: var(--dim); }

.coll-name-cell { display: flex; align-items: center; gap: 8px; }
.coll-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--status-operational);
}
.coll-dot.empty { background: var(--dim); }

@media (max-width: 900px) {
  .perf-grid { grid-template-columns: 1fr 1fr; }
  .perf-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .perf-grid { grid-template-columns: 1fr; }
  .perf-grid-4 { grid-template-columns: 1fr; }
}

/* ── FOOTER ──────────────────────────────────────────── */
.footer {
  margin-top: 18px;
  font-size: 11px; color: var(--dim); font-family: var(--mono);
  border-top: 1px solid var(--mid);
  padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}

.mini-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mini-link {
  text-decoration: none; color: var(--ink);
  border: 1.5px solid var(--mid); border-radius: 999px;
  padding: 4px 10px; font-size: 11px; font-family: var(--mono);
  transition: all .12s; background: #fff;
}
.mini-link:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .field-row.cols-3, .field-row.cols-4 { grid-template-columns: 1fr 1fr; }
  .tab-bar { padding: 0 16px; }
  .tab-pane { padding: 16px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .field-row.cols-2, .field-row.cols-3, .field-row.cols-4 { grid-template-columns: 1fr; }
  .module-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .head-actions { margin-left: 0; }
  .table-toolbar { flex-direction: column; align-items: flex-start; }
}
