/* ERP Wireframe Design System — based on analytics card style */

:root {
  --bg-page: #f4f5f7;
  --bg-card: #ffffff;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f0f1f3;

  /* Chart series colors */
  --color-purple: #7c3aed;
  --color-purple-light: #a78bfa;
  --color-pink: #ec4899;
  --color-cyan: #06b6d4;
  --color-emerald: #10b981;
  --color-amber: #f59e0b;
  --color-indigo: #6366f1;

  --trend-positive: #10b981;
  --trend-negative-good: #10b981;
  --trend-negative-bad: #ef4444;

  --radius-card: 12px;
  --radius-sm: 6px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App Shell ── */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav__logo {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 32px;
  white-space: nowrap;
}

.top-nav__logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--color-purple), var(--color-indigo));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.top-nav__links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
}

.top-nav__link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.top-nav__link:hover { background: var(--border-light); color: var(--text-primary); }
.top-nav__link--active { background: #ede9fe; color: var(--color-purple); }

.top-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.top-nav__icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.top-nav__icon-btn:hover { background: var(--border-light); }

.top-nav__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background: var(--color-pink);
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.top-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-indigo));
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Page Layout ── */

.page {
  flex: 1;
  padding: 24px 32px 48px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.page-header__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.page-header__actions {
  display: flex;
  gap: 8px;
}

/* ── Buttons ── */

.btn,
a.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover,
a.btn:hover { background: var(--border-light); color: var(--text-primary); }

.btn--primary,
a.btn--primary {
  background: var(--color-purple);
  color: white;
  border-color: var(--color-purple);
}

.btn--primary:hover,
a.btn--primary:hover { background: #6d28d9; color: white; }

/* ── Module subnav ── */

.module-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
}

.module-nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.module-nav__link:hover { background: var(--border-light); color: var(--text-primary); }
.module-nav__link--active { background: #ede9fe; color: var(--color-purple); }

.module-sitemap {
  background: #f9fafb;
  border: 1px dashed var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.module-sitemap__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.module-sitemap__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-sitemap__links a {
  font-size: 12px;
  color: var(--color-purple);
  text-decoration: none;
  padding: 4px 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
}

.module-sitemap__links a:hover { border-color: var(--color-purple); }
.module-sitemap__links a.module-sitemap__link--active {
  background: #ede9fe;
  border-color: var(--color-purple);
  font-weight: 600;
}

/* ── Grid Layout ── */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .page { padding: 16px; }
  .top-nav__links { display: none; }
}

/* ── Analytics Card (core component from reference image) ── */

.analytics-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.analytics-card--wide { grid-column: 1 / -1; }

.analytics-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.analytics-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.analytics-card__actions {
  display: flex;
  gap: 4px;
}

.analytics-card__icon-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analytics-card__icon-btn:hover { background: var(--border-light); color: var(--text-secondary); }

/* ── KPI Row ── */

.kpi-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
}

.kpi-item__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.kpi-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.kpi-item__value-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.kpi-item__value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.kpi-item__trend {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 2px;
}

.kpi-item__trend--up { color: var(--trend-positive); }
.kpi-item__trend--down-good { color: var(--trend-negative-good); }
.kpi-item__trend--down-bad { color: var(--trend-negative-bad); }

/* ── Chart Area ── */

.chart-area {
  position: relative;
  height: 220px;
  margin-bottom: 20px;
}

.chart-area svg {
  width: 100%;
  height: 100%;
}

.chart-grid-line {
  stroke: var(--border-light);
  stroke-width: 1;
}

.chart-axis-label {
  font-size: 11px;
  fill: var(--text-muted);
  font-family: var(--font);
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  stroke: var(--bg-card);
  stroke-width: 2;
}

/* ── Chart Legend ── */

.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 4px;
  border-top: 1px solid var(--border-light);
}

.chart-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.chart-legend__checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chart-legend__checkbox svg {
  width: 10px;
  height: 10px;
}

.chart-legend__label {
  font-size: 13px;
  color: var(--text-secondary);
}

.chart-legend__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Summary Cards (smaller stat cards) ── */

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  padding: 20px;
}

.stat-card__label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-card__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── List Card ── */

.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
}

.list-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.list-card__title {
  font-size: 15px;
  font-weight: 600;
}

.list-card__link {
  font-size: 13px;
  color: var(--color-purple);
  text-decoration: none;
  font-weight: 500;
}

.list-card__link:hover { text-decoration: underline; }

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.list-item:last-child { border-bottom: none; }

.list-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.list-item__content { flex: 1; min-width: 0; }

.list-item__title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.list-item__badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge--warning { background: #fef3c7; color: #d97706; }
.badge--danger { background: #fee2e2; color: #dc2626; }
.badge--success { background: #d1fae5; color: #059669; }
.badge--info { background: #e0e7ff; color: #4f46e5; }
.badge--neutral { background: #f3f4f6; color: #6b7280; }

/* ── Status Bar ── */

.status-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.status-pill__count {
  font-weight: 700;
  color: var(--text-primary);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ── Wireframe label ── */

.wireframe-label {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--text-primary);
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0.7;
  z-index: 200;
  pointer-events: none;
}

/* ── Breadcrumb ── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--color-purple); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--text-muted); }

/* ── Tabs ── */

.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab:hover { color: var(--text-primary); }
.tab--active { color: var(--color-purple); border-bottom-color: var(--color-purple); }

/* ── Entity Header ── */

.entity-header {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.entity-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.entity-header__title {
  font-size: 20px;
  font-weight: 600;
}

.entity-header__code {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.entity-header__meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px 24px;
}

.entity-header__field-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.entity-header__field-value {
  font-size: 13px;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Filter Bar ── */

.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.filter-bar__search {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-card);
}

.filter-bar__select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ── Data Table ── */

.table-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tr:hover td { background: #fafafa; }
.data-table tr:last-child td { border-bottom: none; }

.data-table a {
  color: var(--color-purple);
  text-decoration: none;
  font-weight: 500;
}

.data-table a:hover { text-decoration: underline; }

.data-table__num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Forms ── */

.form-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid--1 { grid-template-columns: 1fr; }

.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
}

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

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

/* ── Version Selector ── */

.version-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
}

.version-bar__current { font-weight: 600; }

/* ── Process Map ── */

.process-map {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px;
  overflow-x: auto;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.process-step__node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--bg-card);
}

.process-step__node--active { border-color: var(--color-purple); background: #ede9fe; color: var(--color-purple); }
.process-step__node--done { border-color: var(--color-emerald); background: #d1fae5; color: #059669; }
.process-step__node--blocked { border-color: var(--color-pink); background: #fce7f3; color: #db2777; }

.process-step__label { font-size: 11px; color: var(--text-secondary); text-align: center; max-width: 90px; }

.process-arrow { color: var(--text-muted); font-size: 18px; flex-shrink: 0; }

.process-split {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

/* ── Approval Steps ── */

.approval-steps { display: flex; flex-direction: column; gap: 0; }

.approval-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.approval-step:last-child { border-bottom: none; }

.approval-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.approval-step__num--done { background: #d1fae5; color: #059669; }
.approval-step__num--active { background: #ede9fe; color: var(--color-purple); }

/* ── Timeline / Audit ── */

.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline__item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.timeline__item:last-child { border-bottom: none; }

.timeline__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-purple);
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline__time { font-size: 12px; color: var(--text-muted); }

/* ── Modal ── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 24px;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 16px;
  font-weight: 600;
}

.modal__body { padding: 24px; }

.modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Totals Panel ── */

.totals-panel {
  background: #f9fafb;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
}

.totals-panel__label { font-size: 12px; color: var(--text-muted); }
.totals-panel__value { font-size: 18px; font-weight: 700; margin-top: 4px; }

/* ── Sitemap ── */

.sitemap { max-width: 960px; }

.sitemap__section { margin-bottom: 32px; }

.sitemap__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-purple);
}

.sitemap__links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 6px;
}

.sitemap__links a {
  font-size: 13px;
  color: var(--color-purple);
  text-decoration: none;
  padding: 6px 0;
}

.sitemap__links a:hover { text-decoration: underline; }

/* ── Auth Layout ── */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-page);
  padding: 24px;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}

.auth-card__logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-card__title {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.auth-card__subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Mobile Wireframe ── */

.mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  border: 8px solid #1a1a2e;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-page);
}

.mobile-frame__status {
  background: var(--bg-card);
  padding: 8px 20px;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.mobile-frame__content { padding: 16px; min-height: 600px; }

/* ── Empty State ── */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state__icon { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }

/* ── Two-column layout ── */

.layout-2col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

@media (max-width: 1024px) {
  .layout-2col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Pagination ── */

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
}

.pagination__pages { display: flex; gap: 4px; }

.pagination__page {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 13px;
}

.pagination__page--active { background: var(--color-purple); color: white; border-color: var(--color-purple); }

/* ── Info panel ── */

.info-panel {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 20px;
}

.info-panel__title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}

.info-row:last-child { border-bottom: none; }
.info-row__label { color: var(--text-secondary); }
.info-row__value { font-weight: 500; }
