/* ==========================================================================
   CurrículoClick - Admin Dashboard Pro (SaaS / FinTech Modern Theme)
   Inspirado no Design System de Alta Conversão, 100% Responsivo e Recolhível
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.15);
  
  --success: #10b981;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  
  --danger: #ef4444;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  --sidebar-w: 260px;
  --sidebar-collapsed-w: 78px;
  --topbar-h: 70px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.03);
}

[hidden], .app-shell[hidden], .auth-screen[hidden], .modal[hidden] {
  display: none !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
a { text-decoration: none; color: inherit; }

/* ==========================================================================
   TELA DE LOGIN ADMINISTRATIVO
   ========================================================================== */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.08), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08), transparent 40%),
              #f8fafc;
}

.auth-panel {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
  text-align: center;
}

.pro-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-glow);
  padding: 2px 7px;
  border-radius: 6px;
}

.auth-brand img {
  height: 48px;
  margin-bottom: 1.5rem;
}

.auth-intro h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.auth-intro p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px var(--primary-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-ghost {
  background: #f1f5f9;
  color: #475569;
}

.btn-ghost:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-block { width: 100%; }

.auth-error {
  color: var(--danger);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2rem;
  text-align: center;
}

.auth-foot {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ==========================================================================
   ESTRUTURA PRINCIPAL (APP SHELL)
   ========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ==========================================================================
   SIDEBAR LATERAL RECOLHÍVEL
   ========================================================================== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-card);
  border-right: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.1rem;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0 0.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.brand-text {
  display: flex;
  align-items: center;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
}

.brand-curr {
  color: #0f172a;
}

.brand-click {
  color: #2563eb;
}

.sidebar-toggle-btn {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #bfdbfe;
}

.sidebar-close {
  display: none;
}

/* Navegação da Sidebar */
.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin: 1.2rem 0.5rem 0.4rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-item i {
  font-size: 1.1rem;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.2s;
}

.nav-item:hover {
  background: #f8fafc;
  color: var(--primary);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.nav-item.active i {
  color: var(--primary);
}

/* Sidebar Footer */
.sidebar-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.user-profile-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.4rem;
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.user-profile-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.user-profile-details strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-details small {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.logout-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  transition: all 0.2s;
  cursor: pointer;
}

.logout-link:hover {
  background: var(--danger-light);
}

/* Estado Recolhido da Sidebar no Desktop */
body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-w);
  padding: 1.25rem 0.5rem;
  align-items: center;
}

body.sidebar-collapsed .sidebar-top {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  margin-bottom: 1.5rem;
}

body.sidebar-collapsed .brand {
  justify-content: center;
}

body.sidebar-collapsed .brand-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .nav-item span,
body.sidebar-collapsed .user-profile-details,
body.sidebar-collapsed .logout-link span {
  display: none !important;
}

body.sidebar-collapsed .sidebar-toggle-btn {
  display: flex !important;
  width: 36px;
  height: 36px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  margin: 0 auto;
  border-radius: 10px;
}

body.sidebar-collapsed .workspace {
  margin-left: var(--sidebar-collapsed-w);
}

body.sidebar-collapsed .main-nav {
  width: 100%;
  align-items: center;
}

body.sidebar-collapsed .nav-item {
  width: 46px;
  height: 46px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  border-radius: 12px;
}

body.sidebar-collapsed .nav-item i {
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
}

body.sidebar-collapsed .sidebar-bottom {
  width: 100%;
  align-items: center;
  padding-top: 1rem;
}

body.sidebar-collapsed .user-profile-card {
  justify-content: center;
  padding: 0;
}

body.sidebar-collapsed .logout-link {
  width: 46px;
  height: 46px;
  padding: 0;
  justify-content: center;
}

/* ==========================================================================
   WORKSPACE / ÁREA DE TRABALHO
   ========================================================================== */
.workspace {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 0;
}

/* Topbar Superior */
.topbar {
  height: var(--topbar-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.search-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  width: 280px;
  transition: all 0.2s;
}

.search-pill:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-pill i {
  color: var(--text-light);
  font-size: 0.85rem;
}

.search-pill input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: var(--text-main);
}

.search-badge-cmd {
  font-size: 0.65rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--text-muted);
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: #f8fafc;
  color: var(--primary);
  border-color: #cbd5e1;
}

.icon-btn.danger:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-border);
}

/* ==========================================================================
   CONTEÚDO PRINCIPAL
   ========================================================================== */
.page-content {
  padding: 2rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* Header da Página com Título e Ações */
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-heading h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.page-heading p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

/* ==========================================================================
   CARDS DE MÉTRICAS COM GRADIENTES MESH (Idêntico ao Mockup de Referência)
   ========================================================================== */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.metric-card-mesh {
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card-mesh:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Gradientes Suaves e Elegantes */
.metric-card-mesh.blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #eff6ff 100%);
}

.metric-card-mesh.green {
  background: linear-gradient(135deg, #dcfce7 0%, #ecfdf5 50%, #f0fdf4 100%);
}

.metric-card-mesh.amber {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 50%, #fefce8 100%);
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.metric-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.metric-card-mesh.blue .metric-icon-box { color: #0284c7; }
.metric-card-mesh.green .metric-icon-box { color: #059669; }
.metric-card-mesh.amber .metric-icon-box { color: #d97706; }

.metric-value {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

/* ==========================================================================
   TABELA DE CLIENTES E TRANSAÇÕES (Modern SaaS Card)
   ========================================================================== */
.panel-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.panel-header-toolbar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.panel-title-area h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.panel-title-area p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.panel-select {
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

table.saas-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 850px;
}

table.saas-table th {
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-color);
}

table.saas-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
  vertical-align: middle;
}

table.saas-table tr:hover td {
  background: #fbfcfe;
}

/* Célula de Candidato */
.candidate-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar, .avatar-fallback {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.avatar-fallback {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.candidate-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.candidate-info span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Badges de Status Modernos */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge.pago {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid var(--success-border);
}

.badge.manual {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.badge.pendente {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid var(--warning-border);
}

.badge.bloqueado {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid var(--danger-border);
}

/* Ações Rápidas da Linha */
.action-buttons-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-content: flex-end;
}

/* ==========================================================================
   DRAWER LATERAL DE EDIÇÃO (Mobile-First Slide-Over)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.modal-panel {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal:not([hidden]) .modal-panel {
  transform: translateX(0);
}

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

/* Seções de Edição */
.editor-section {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem;
}

.editor-section-head {
  margin-bottom: 1rem;
}

.editor-section-head h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.editor-section-head small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field-full {
  grid-column: span 2;
}

.modal-actions {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  z-index: 10;
}

/* ==========================================================================
   TOASTS E NOTIFICAÇÕES
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: #0f172a;
  color: #ffffff;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (Menor que 900px)
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.15);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-close {
    display: flex;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .sidebar-backdrop.open {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    margin-left: 0 !important;
  }

  .topbar {
    padding: 0 1rem;
  }

  .page-content {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }

  .search-pill {
    width: 180px;
  }

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

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

  .field-full {
    grid-column: auto;
  }

  .modal-panel {
    max-width: 100%;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}