/* Bodic Middle Office - Design System (design_system/) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Base */
  --color-white: #FFFFFF;
  --color-black: #0D0D0D;
  /* Gray */
  --gray-25: #FCFCFD;
  --gray-50: #F9FAFB;
  --gray-100: #F2F4F7;
  --gray-200: #E4E7EC;
  --gray-300: #D0D5D0;
  --gray-400: #98A3B3;
  --gray-500: #667085;
  --gray-600: #475467;
  --gray-700: #344054;
  --gray-800: #182230;
  --gray-900: #101828;
  --gray-950: #0C1110;
  /* Brand Primary */
  --brand-25: #F5F7FA;
  --brand-50: #E8EDF2;
  --brand-100: #D0D3D9;
  --brand-200: #B5BEE4;
  --brand-300: #88B9B7;
  --brand-400: #4E8EA2;
  --brand-500: #3D5676;
  --brand-600: #304464;
  --brand-700: #1E2D4F;
  --brand-800: #152037;
  --brand-900: #0E1525;
  --brand-950: #070812;
  /* Brand Accent */
  --accent-500: #CA3538;
  --accent-600: #AE2E30;
  /* Error */
  --error-50: #FEF3F2;
  --error-500: #F0443B;
  --error-600: #D92020;
  /* Warning */
  --warning-50: #FFF9EB;
  --warning-500: #FF7900;
  /* Success */
  --success-50: #F0FDF3;
  --success-500: #37B26A;
  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --letter-spacing: -0.01em;
  /* Spacing / layout */
  --space-margin-desktop: 32px;
  --space-container-padding: 12px;
  --grid-gutter: 32px;
  --grid-cols: 12;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing);
  color: var(--gray-800);
  background: var(--gray-50);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

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

/* Topbar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  background: var(--brand-700);
  color: var(--color-white);
  font-family: var(--font-heading);
}
.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-white);
  cursor: pointer;
  margin: -12px 0 -12px -12px;
}
.topbar-menu-btn:hover { background: rgba(255,255,255,0.1); }
.topbar-brand { font-weight: 600; font-size: 1.125rem; }
.topbar-right { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.topbar-user { font-size: 14px; color: var(--gray-200); }
.topbar-logout { margin: 0; }

/* Global search (ref. 165918) */
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  max-width: 380px;
}
.global-search-input {
  padding: 8px 14px 8px 36px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 14px;
  width: 220px;
  max-width: 100%;
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 10px center;
}
.global-search-input::placeholder { color: var(--gray-400); }
.global-search-input:focus {
  outline: none;
  border-color: var(--brand-500);
}
.global-search-btn {
  padding: 8px 16px;
  white-space: nowrap;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Sidebar (ref. 165851) */
.main-wrap { display: flex; flex: 1; }
.sidebar {
  width: 260px;
  background: var(--color-white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid var(--gray-200);
  gap: 12px;
}
.sidebar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}
.sidebar-logo img {
  max-height: 36px;
  max-width: 140px;
  object-fit: contain;
}
.sidebar-logo-fallback { display: none; }
.sidebar-lang-select {
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-700);
  background: var(--color-white) 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='%23667085' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-group { display: flex; flex-direction: column; gap: 2px; }
.sidebar-sep {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 12px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius);
  font-size: 14px;
  margin: 0 8px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-link:hover { background: var(--gray-100); color: var(--brand-700); }
.sidebar-link.is-active { background: var(--gray-100); color: var(--brand-700); font-weight: 500; }
.sidebar-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-25);
}
.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-account-avatar .sidebar-icon { width: 18px; height: 18px; }
.sidebar-account-info { display: flex; flex-direction: column; min-width: 0; }
.sidebar-account-label { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-account-name { font-size: 14px; font-weight: 500; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-logout { margin: 0; }
.sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius);
}
.sidebar-logout-btn:hover { color: var(--brand-700); background: var(--gray-200); }
.sidebar-logout-btn .sidebar-icon { width: 20px; height: 20px; }

/* Content - grid */
.content {
  flex: 1;
  padding: 24px;
  max-width: 1216px;
  margin: 0 auto;
  width: 100%;
}

/* Buttons - Design system */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
  background: var(--brand-700);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.btn-primary:hover:not(:disabled) { background: var(--brand-600); }
.btn-primary:disabled { background: var(--gray-300); color: var(--gray-500); }
.btn-secondary {
  background: transparent;
  color: var(--brand-700);
  border: 1px solid var(--brand-700);
}
.btn-secondary:hover:not(:disabled) { background: var(--brand-25); }
.btn-secondary:disabled { border-color: var(--gray-400); color: var(--gray-500); }
.btn-tertiary {
  background: transparent;
  color: var(--brand-700);
}
.btn-tertiary:hover:not(:disabled) { color: var(--brand-600); text-decoration: underline; }
.btn-tertiary:disabled { color: var(--gray-500); }
.btn-danger {
  background: var(--error-600, #b91c1c);
  color: #fff;
  border: none;
}
.btn-danger:hover:not(:disabled) { background: var(--error-700, #991b1b); }
.btn-outline-danger {
  background: transparent;
  color: var(--error-600, #b91c1c);
  border: 1px solid var(--error-600, #b91c1c);
}
.btn-outline-danger:hover { background: var(--error-50, #fef2f2); }
.link-danger { color: var(--error-600, #b91c1c); }
.link-danger:hover { text-decoration: underline; }

/* Badges / Statuts */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
}
.badge-success { background: var(--success-50); color: #067647; }
.badge-error { background: var(--error-50); color: var(--error-600); }
.badge-warning { background: var(--warning-50); color: var(--warning-500); }
.badge-neutral { background: var(--gray-100); color: var(--gray-700); }

/* Tags / Labels */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  background: var(--gray-100);
  color: var(--gray-700);
}

/* Page header with Add button (design system CTA) */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-header h1 { margin: 0; }
.page-header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Page title with picto (ref. 165918) */
.page-header-with-icon .page-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-700);
}
.page-title-icon .icon { width: 22px; height: 22px; }
.page-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.page-filters .form-group { margin-bottom: 0; }
.page-filters .form-group input,
.page-filters .form-group select { max-width: 200px; }
.page-filters-actions { display: flex; align-items: flex-end; gap: 8px; }
.page-filters-actions .btn { margin-top: 0; }
.search-empty, .search-info { color: var(--gray-600); }

/* Dashboard KPIs (ref. 144737) */
.dashboard-desc {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 400;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.kpi-card:hover {
  border-color: var(--brand-200);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.kpi-icon svg { width: 22px; height: 22px; }
.kpi-icon-funds { background: var(--brand-50); color: var(--brand-700); }
.kpi-icon-active { background: var(--success-50); color: var(--success-500); }
.kpi-icon-users { background: var(--gray-100); color: var(--gray-700); }
.kpi-icon-deals { background: var(--warning-50); color: var(--warning-500); }
.kpi-icon-calls { background: var(--brand-50); color: var(--brand-600); }
.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--gray-900);
  line-height: 1.2;
}
.kpi-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--brand-700);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: background 0.15s;
}
.btn-add:hover { background: var(--brand-600); }
.btn-add .icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* Table - design system (ref. 144657) */
.table-wrap {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: visible;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.table thead th {
  background: var(--gray-50);
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--gray-700);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--gray-25); }
.table a { color: var(--brand-700); text-decoration: none; }
.table a:hover { text-decoration: underline; }
.table .badge, .table .tag { vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .date { color: var(--gray-600); }
.table .status-download { color: var(--success-500); }
.table .status-todo { color: var(--error-600); }
.table .actions-cell { white-space: nowrap; }
.table .actions-cell a, .table .actions-cell button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0 2px;
  color: var(--gray-500);
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
}
.table .actions-cell a:hover, .table .actions-cell button:hover { color: var(--brand-700); background: var(--gray-100); }

/* Row actions - Kebab menu (ref. 161837) */
.row-actions { position: relative; display: inline-block; }
.kebab-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius);
}
.kebab-trigger:hover { color: var(--brand-700); background: var(--gray-100); }
.kebab-trigger svg { width: 18px; height: 18px; }
.row-actions .dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  right: auto;
  bottom: 100%;
  margin-bottom: 4px;
  margin-top: 0;
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 100;
  padding: 4px 0;
}
.row-actions.is-open .dropdown-menu { display: block; }
.row-actions .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.row-actions .dropdown-menu a:hover { background: var(--gray-50); color: var(--brand-700); }
.row-actions .dropdown-menu a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--gray-500); }

/* Edit page */
.page-edit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.page-edit-header h1 { margin: 0; }
.edit-card {
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 640px;
}
.edit-card h2 { margin: 0 0 16px; font-size: 1.125rem; }
.form-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.form-actions .btn-primary { min-width: 140px; }
.form-actions .btn-secondary { min-width: 100px; }
.form-actions .btn-danger { min-width: 140px; }

/* Pagination */
.pagination-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pagination-info { color: var(--gray-600); font-size: 14px; }
.pagination-btn { flex-shrink: 0; }

/* Messages */
.message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.message-warning { background: var(--warning-50, #fffbeb); color: var(--warning-700, #b45309); border: 1px solid var(--warning-200); }
.message-neutral { background: var(--gray-50); color: var(--gray-600); border: 1px solid var(--gray-200); }

/* Tabs (design system: active = brand + underline, inactive = grey) */
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.tab-item {
  padding: 12px 20px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-item:hover { color: var(--gray-800); }
.tab-item.is-active {
  color: var(--brand-700);
  border-bottom-color: var(--brand-700);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.tab-panel-title { font-size: 1rem; margin: 0 0 16px; font-weight: 600; }

/* Modal / Popup */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.is-open { display: flex; }
.modal {
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: var(--radius);
}
.modal-close:hover { color: var(--gray-700); background: var(--gray-100); }
.modal-body { padding: 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-25);
}

/* Forms - Inputs / Selects */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-700);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  width: 100%;
  max-width: 400px;
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 0.15s;
}
.modal .form-group input,
.modal .form-group select,
.modal .form-group textarea { max-width: none; }
.form-group textarea { min-height: 80px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 2px rgba(61, 86, 118, 0.2);
}

/* Detail list */
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
  font-size: 14px;
}
.detail-list dt { font-weight: 600; color: var(--gray-700); }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.flash-success { background: var(--success-50); color: #067647; }
.flash-error { background: var(--error-50); color: var(--error-600); }

/* Auth page */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
}
.auth-box {
  background: var(--color-white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 400px;
}
.auth-box h1 { font-family: var(--font-heading); margin-top: 0; }
.auth-subtitle { color: var(--gray-500); margin-bottom: 24px; }
.auth-box .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }

/* Responsive (ref. 144759 - mobile overlays, stacking) */
@media (max-width: 768px) {
  .topbar-menu-btn { display: flex; }
  .content { padding: 16px; max-width: none; }
  .topbar { padding: 12px 16px; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 499;
  }
  .sidebar-overlay.is-open { display: block; }
  .page-header, .page-edit-header { flex-direction: column; align-items: flex-start; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
  .table { min-width: 600px; }
  .modal { max-height: 85vh; }
  .modal-body { padding: 16px; }
  .edit-card { margin-left: 0; margin-right: 0; padding: 16px; }
  .form-group input, .form-group select, .form-group textarea { max-width: none; }
}
@media (max-width: 480px) {
  .content { padding: 12px; }
  .table-wrap { margin: 0 -12px; padding: 0 12px; }
}
@media (max-width: 375px) {
  .main-wrap { flex-direction: column; }
  .sidebar { width: 280px; }
}

/* Table cards on very small screens (optional card layout) */
@media (max-width: 600px) {
  .table-cards { display: block; }
  .table-cards thead { display: none; }
  .table-cards tbody tr {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-bottom: 12px;
    padding: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .table-cards tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border: none;
  }
  .table-cards tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gray-600);
    margin-right: 12px;
  }
  .table-cards .actions-cell { justify-content: flex-end; border-top: 1px solid var(--gray-100); padding-top: 12px; margin-top: 4px; }
}
