/*!*********************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************/
/*
 * EN: Global stylesheet for the Mac Listing React frontend.
 * EN: Defines shared layout, typography, table, modal, and utility classes reused across screens.
 * EN: The feature components rely on these class contracts for consistent rendering.
 *
 * FR: Feuille de style globale du frontend React Mac Listing.
 * FR: Définit les classes partagées de layout, typographie, tableaux, modales et utilitaires.
 * FR: Les composants de la feature s'appuient sur ces contrats CSS pour un rendu cohérent.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f6f8fb; color: #111827; }

.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; }
.login-card { background: white; border-radius: 24px; padding: 48px; width: 100%; max-width: 440px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); animation: slideUp 0.5s ease; }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.login-card h1 { font-size: 32px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; }
.login-card .subtitle { color: #6b7280; margin-bottom: 32px; font-size: 14px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: #374151; font-weight: 500; font-size: 14px; }
.input-group input { width: 100%; padding: 12px 16px; border: 2px solid #e5e7eb; border-radius: 12px; font-size: 16px; transition: all 0.3s; font-family: 'Inter', sans-serif; }
.input-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }

.btn { padding: 11px 20px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; }
.btn-primary { background: #2563eb; color: white; width: 100%; }
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(37,99,235,0.7); }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; transform: translateY(-1px); }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }
.btn-info { background: #3b82f6; color: white; }
.btn-info:hover { background: #2563eb; }
.btn-outline { background: #ffffff; border: 1px solid #d1d5db; color: #374151; }
.btn-outline:hover { border-color: #2563eb; color: #1e40af; }
.btn:disabled { cursor: not-allowed; opacity: 0.56; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 9px; }

.main-container { min-height: 100vh; }
.app-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); background: #f6f8fb; }
.app-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  background: linear-gradient(180deg, #0f172a 0%, #0b1224 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 120;
}
.sidebar-head { display: grid; grid-gap: 10px; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid rgba(148, 163, 184, 0.18); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; }
.sidebar-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
.sidebar-close-btn {
  display: none;
  border: 1px solid #334155;
  background: transparent;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-close-btn:hover { border-color: #60a5fa; color: #60a5fa; }
.logo h1 { font-size: 18px; font-weight: 800; color: #f8fafc; line-height: 1.1; }
.logo p { font-size: 11px; color: #9aa9bf; margin-top: 3px; line-height: 1.3; }
.badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; width: -moz-fit-content; width: fit-content; }
.badge-admin { background: #1d4ed8; color: white; }
.badge-info { background: #0f766e; color: white; }
.sidebar-role-pill {
  width: -moz-fit-content;
  width: fit-content;
  border: 1px solid rgba(125, 211, 252, 0.34);
  background: rgba(37, 99, 235, 0.24);
  color: #dbeafe;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; padding: 8px 2px 6px; flex: 1 1; overflow-y: auto; }
.sidebar-nav-button {
  position: relative;
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
  width: 100%;
  border-radius: 10px;
  padding: 10px 11px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.sidebar-nav-button:hover { background: rgba(30, 41, 59, 0.84); color: #f8fafc; border-color: #334155; }
.sidebar-nav-button:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.sidebar-nav-button.active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.26), rgba(29, 78, 216, 0.18));
  color: #eff6ff;
  border-color: rgba(96, 165, 250, 0.5);
}
.sidebar-nav-button.active::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: #93c5fd;
}
.sidebar-nav-label { display: inline-flex; align-items: center; min-width: 0; gap: 9px; }
.sidebar-nav-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fb2cc;
  flex: 0 0 auto;
}
.sidebar-nav-button.active .sidebar-nav-icon,
.sidebar-nav-button:hover .sidebar-nav-icon { color: #dbeafe; }
.sidebar-count {
  min-width: 24px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.24);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sidebar-nav-button.active .sidebar-count { background: rgba(239, 246, 255, 0.25); color: #ffffff; }
.sidebar-footer {
  margin-top: auto;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}
.sidebar-footer-label {
  font-size: 10px;
  font-weight: 800;
  color: #9aa9bf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 8px 9px;
  min-width: 0;
}
.sidebar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1d4ed8, #1e40af);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.sidebar-user-meta { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.sidebar-user-name {
  font-size: 12px;
  font-weight: 700;
  color: #e5edf8;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-email {
  font-size: 10px;
  color: #9aa9bf;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-logout-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.25);
  color: #cbd5e1;
  border-radius: 9px;
  padding: 9px 12px;
  font-weight: 600;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.sidebar-logout-btn:hover {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.7);
}
.sidebar-logout-btn:focus-visible {
  outline: 2px solid #f87171;
  outline-offset: 2px;
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(2, 6, 23, 0.48);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.sidebar-overlay.active { opacity: 1; pointer-events: auto; }
.app-main-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: rgba(246, 248, 251, 0.92);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-menu-btn {
  display: none;
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.topbar-context { min-width: 0; }
.topbar-context h2 { font-size: 21px; font-weight: 800; color: #111827; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-context p { font-size: 13px; color: #6b7280; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 560px; }
.topbar-role-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.95);
  color: #374151;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
}
.topbar-action-btn { white-space: nowrap; }
.topbar-signout-btn { white-space: nowrap; }

.stats-container { width: 100%; max-width: none; margin: 18px auto 12px; padding: 0 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); grid-gap: 14px; gap: 14px; }
.stat-card {
  background: white;
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px -18px rgba(17, 24, 39, 0.45);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 16px 35px -24px rgba(17, 24, 39, 0.55); }
.stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-icon-primary { background: #dbeafe; color: #2563eb; }
.stat-icon-success { background: #d1fae5; color: #10b981; }
.stat-icon-info { background: #e0e7ff; color: #4f46e5; }
.stat-icon-warning { background: #fef3c7; color: #d97706; }
.stat-copy { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; }
.stat-value { font-size: 30px; font-weight: 700; color: #111827; line-height: 1.2; margin-bottom: 2px; }
.stat-label { color: #111827; font-size: 13px; font-weight: 600; }
.stat-description { color: #6b7280; font-size: 12px; }

.card {
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px -24px rgba(17, 24, 39, 0.65);
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 14px 34px -24px rgba(17, 24, 39, 0.7); }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 12px;
}
.card-header h2 { font-size: 18px; font-weight: 700; color: #111827; }

.tab-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 8px;
}
.tab {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.2s;
}
.tab.active { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.tab:hover { color: #1e40af; background: #f3f4f6; }

.inventory-surface { display: grid; grid-gap: 12px; gap: 12px; }
.listings-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.listings-panel-header h2 { font-size: 18px; font-weight: 700; color: #111827; }
.listings-panel-header p { margin-top: 4px; color: #6b7280; font-size: 13px; }
.listings-panel-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.listings-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, 1fr)) auto;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fbff;
}
.listings-toolbar-compact {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  background: #ffffff;
}
.toolbar-search { display: grid; grid-gap: 6px; gap: 6px; }
.toolbar-filter-field { display: grid; grid-gap: 6px; gap: 6px; min-width: 0; }
.toolbar-search label,
.toolbar-filter-field label { font-size: 12px; font-weight: 600; color: #374151; }
.toolbar-reset-btn { align-self: end; }
.active-filter-banner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
}
.active-filter-title { color: #047857; font-size: 12px; font-weight: 700; margin-right: 4px; }
.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #86efac;
  padding: 4px 9px;
  font-size: 12px;
  color: #166534;
  background: #dcfce7;
}
.active-filter-chip button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 14px;
  line-height: 1;
}

.table-wrapper {
  overflow-x: hidden;
  border-radius: 12px;
  max-height: 62vh;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}
table { width: 100%; border-collapse: collapse; }
#inventoryTable {
  width: 100%;
  table-layout: fixed;
  --inventory-cell-py: 8px;
  --inventory-cell-px: 7px;
  --inventory-th-size: clamp(10px, 0.68vw, 13px);
  --inventory-td-size: clamp(11px, 0.72vw, 14px);
  --inventory-badge-size: clamp(10px, 0.64vw, 12px);
  --inventory-filter-size: clamp(10px, 0.64vw, 12px);
}
th, td { padding: 12px 12px; text-align: left; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
th {
  background: #f8fafc;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  cursor: default;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
th:hover { background: #f3f4f6; }
.th-sorted { background: #eaf1ff !important; color: #1d4ed8; }
.th-sortable { cursor: pointer; }
.th-sortable:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
.sort-arrow { margin-left: 2px; font-size: 11px; }
.inventory-row:hover { background: #f8fafc; }
.table-select-cell { width: 46px; text-align: center; }
.table-select-cell input[type="checkbox"] { width: 15px; height: 15px; accent-color: #2563eb; }
.table-select-placeholder { color: #cbd5e1; font-size: 12px; }
.cell-price { text-align: right; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
#inventoryTable th,
#inventoryTable td {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  vertical-align: top;
  padding: var(--inventory-cell-py) var(--inventory-cell-px);
}
#inventoryTable th {
  font-size: var(--inventory-th-size);
  line-height: 1.15;
}
#inventoryTable td {
  font-size: var(--inventory-td-size);
  line-height: 1.25;
}
#inventoryTable .col-furb { width: 9%; }
#inventoryTable .col-model { width: 9%; }
#inventoryTable .col-year { width: 5%; }
#inventoryTable .col-type { width: 5%; }
#inventoryTable .col-screen { width: 4%; }
#inventoryTable .col-cpu { width: 12%; }
#inventoryTable .col-ram { width: 5%; }
#inventoryTable .col-ssd { width: 5%; }
#inventoryTable .col-keyboard { width: 6%; }
#inventoryTable .col-stickers { width: 5%; }
#inventoryTable .col-grade { width: 5%; }
#inventoryTable .col-price { width: 8%; }
#inventoryTable .col-status { width: 7%; }
#inventoryTable .col-claimedby { width: 12%; }
#inventoryTable .table-select-cell {
  width: 3%;
  min-width: 32px;
  white-space: nowrap;
}
#inventoryTable .cell-price {
  white-space: nowrap;
  text-align: right;
}
#inventoryTable .status-badge {
  white-space: nowrap;
  font-size: var(--inventory-badge-size);
  padding: 3px 7px;
}
#inventoryTable .filter-checkbox-btn {
  min-height: 28px;
  font-size: var(--inventory-filter-size);
  padding: 4px 6px;
}
#inventoryTable .filter-select {
  font-size: var(--inventory-filter-size);
  padding: 5px 6px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid transparent;
}
.status-available { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-taken { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.status-reserved { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-sav { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }

.row-taken { background: #f9fafb; color: #6b7280; }
.row-reserved { background: #fffdf4; }
.row-sav { background: #faf5ff; }

.row-claimed { background-color: #dbeafe !important; border-left: 4px solid #3b82f6; }
.row-pending { background-color: #fed7aa !important; border-left: 4px solid #f59e0b; }
.row-available { background-color: #ffffff !important; }
.row-removed { background-color: #fef3c7 !important; border-left: 4px solid #d97706; opacity: 0.8; }

.filter-input, .filter-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: white;
}
.filter-input:focus, .filter-select:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.selection-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 16px 32px; box-shadow: 0 -5px 20px rgba(0,0,0,0.1); display: none; justify-content: space-between; align-items: center; z-index: 1000; border-top: 3px solid #10b981; }
.selection-bar.active { display: flex; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 24px; padding: 32px; max-width: 500px; width: 90%; animation: slideUp 0.3s ease; }
.modal-header { margin-bottom: 20px; }
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-body { margin-bottom: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; }

.claim-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; transition: all 0.3s; }
.claim-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.claim-item.pending { border-left: 4px solid #f59e0b; background: #fffbeb; }
.claim-item.confirmed { border-left: 4px solid #10b981; background: #f0fdf4; }
.clickable-card:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.toast { position: relative; padding: 14px 20px; border-radius: 12px; color: white; animation: slideIn 0.3s ease; font-weight: 500; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-success { background: #10b981; }
.toast-error { background: #ef4444; }
.toast-info { background: #3b82f6; }

.hidden { display: none; }
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 20px 24px; }

.table-wrapper thead tr:first-child th { background: #f8fafc; z-index: 20; }
.table-wrapper thead tr.filter-row th {
  position: -webkit-sticky;
  position: sticky;
  top: 41px;
  background: #ffffff;
  z-index: 15;
  padding: 8px 12px;
}

.user-table { width: 100%; }
.user-table th, .user-table td { padding: 12px; }
.edit-input { width: 100%; padding: 6px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 13px; }

.filter-checkbox-btn {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #374151;
  transition: all 0.2s;
  white-space: nowrap;
}
.filter-checkbox-btn:hover {
  border-color: #2563eb;
  background: #f9fafb;
}
.filter-checkbox-btn.has-selection {
  border-color: #10b981;
  background: #f0fdf4;
  color: #10b981;
  font-weight: 600;
}
.filter-checkbox-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 8px;
  z-index: 100;
  min-width: 160px;
  max-width: 240px;
  max-height: 280px;
  border: 1px solid #e5e7eb;
}
.filter-checkbox-search {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  background: #f9fafb;
  outline: none;
  box-sizing: border-box;
}
.filter-checkbox-search:focus {
  border-color: #2563eb;
  background: white;
}
.filter-checkbox-scroll {
  max-height: 200px;
  overflow-y: auto;
}
.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-checkbox-label:hover {
  background: #f3f4f6;
}
.filter-checkbox-label.checked {
  background: #f0fdf4;
  color: #10b981;
  font-weight: 500;
}
.filter-checkbox-label input[type="checkbox"] {
  accent-color: #10b981;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* =========================================================
   EN: Responsive Design – fluid table, no card layout
   FR: Design responsive – tableau fluide, pas de cartes
   ========================================================= */

/* EN: Extra large screens (> 1400px) – wider content.
   FR: Très grand écran – zone de contenu élargie. */
@media (min-width: 1400px) {
  .container, .stats-container { max-width: none; }
  .selection-bar { left: 272px; width: calc(100% - 272px); }
  #inventoryTable {
    --inventory-cell-py: 10px;
    --inventory-cell-px: 9px;
    --inventory-th-size: 12.5px;
    --inventory-td-size: 13.5px;
    --inventory-badge-size: 11px;
    --inventory-filter-size: 11px;
  }
}

/* EN: Desktop (1025px – 1400px) – fixed sidebar + comfortable spacing.
   FR: Desktop – sidebar fixe + espacements confortables. */
@media (min-width: 1025px) and (max-width: 1400px) {
  .app-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .container, .stats-container { max-width: none; }
  .selection-bar { left: 250px; width: calc(100% - 250px); }
  #inventoryTable {
    --inventory-cell-py: 9px;
    --inventory-cell-px: 8px;
    --inventory-th-size: 11px;
    --inventory-td-size: 12px;
    --inventory-badge-size: 10px;
    --inventory-filter-size: 10px;
  }
}

/* EN: Tablet landscape and below (<= 1024px) – sidebar becomes drawer.
   FR: Tablette paysage et moins – sidebar en tiroir. */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(82vw, 300px);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 12px 0 30px rgba(2, 6, 23, 0.3);
  }
  .app-sidebar.open { transform: translateX(0); }
  .sidebar-close-btn { display: inline-flex; align-items: center; justify-content: center; width: -moz-fit-content; width: fit-content; }
  .sidebar-nav { max-height: calc(100vh - 250px); }
  .topbar-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-signout-btn { display: none; }
  .selection-bar { left: 0; width: 100%; }
  .container, .stats-container { max-width: 100%; }
  .container { padding: 0 18px 18px; }
  .stats-container { padding: 0 20px; }
  th, td { padding: 10px 8px; font-size: 12px; }
  #inventoryTable {
    --inventory-cell-py: 7px;
    --inventory-cell-px: 5px;
    --inventory-th-size: 10px;
    --inventory-td-size: 11px;
    --inventory-badge-size: 9.5px;
    --inventory-filter-size: 9.5px;
  }
  .filter-checkbox-btn { font-size: 11px; padding: 6px 8px; }
  .filter-checkbox-dropdown { min-width: 140px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-value { font-size: 30px; }
  .card { padding: 16px; }
  .card-header h2 { font-size: 16px; }
  .topbar-context h2 { font-size: 19px; }
  .topbar-context p { max-width: 380px; }
  .listings-toolbar { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .listings-toolbar-compact { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .toolbar-reset-btn { justify-self: start; }
}

/* EN: Tablet portrait / large phone (600px – 767px).
   FR: Tablette portrait / grand téléphone. */
@media (min-width: 600px) and (max-width: 767px) {
  .container { padding: 0 16px 16px; }
  .stats-container { padding: 0 16px; }
  .topbar { padding: 12px 16px; }
  .topbar-context h2 { font-size: 17px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 24px; }
  .card { padding: 16px; }
  .card-header { flex-wrap: wrap; gap: 10px; }
  .card-header h2 { font-size: 15px; }
  th, td { padding: 8px 6px; font-size: 11px; }
  #inventoryTable {
    --inventory-cell-py: 6px;
    --inventory-cell-px: 4px;
    --inventory-th-size: 9.5px;
    --inventory-td-size: 10.5px;
    --inventory-badge-size: 9px;
    --inventory-filter-size: 9px;
  }
  .filter-checkbox-btn { font-size: 10px; padding: 4px 6px; }
  .filter-checkbox-dropdown { min-width: 130px; }
  .btn { padding: 10px 16px; font-size: 13px; }
  .btn-sm { padding: 6px 10px; font-size: 11px; }
  .tab { padding: 8px 12px; font-size: 12px; }
  .table-wrapper { max-height: 50vh; }
  .table-wrapper thead tr.filter-row th { top: 44px; padding: 4px 6px; }
  .listings-panel-header { flex-direction: column; align-items: stretch; }
  .listings-panel-actions { justify-content: flex-start; }
  .listings-toolbar { grid-template-columns: 1fr; }
  .listings-toolbar-compact { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
  .topbar-right { flex-wrap: wrap; justify-content: flex-end; }
}

/* EN: Small phone (< 600px).
   FR: Petit téléphone. */
@media (max-width: 599px) {
  body { font-size: 14px; }
  .container { padding: 0 10px 12px; }
  .stats-container { padding: 0 10px; }
  .app-sidebar { width: min(88vw, 300px); padding: 16px 10px; }
  .logo h1 { font-size: 20px; }
  .topbar { padding: 10px 12px; }
  .topbar-context h2 { font-size: 14px; }
  .topbar-context p { font-size: 11px; }
  .topbar-role-pill { display: none; }
  .topbar-menu-btn { padding: 7px 10px; font-size: 11px; }
  .topbar-right { gap: 6px; }
  .topbar-action-btn { padding: 6px 8px; font-size: 10px; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 12px; }
  .stat-description { font-size: 11px; }
  .card { padding: 12px; border-radius: 14px; }
  .card-header { flex-direction: column; gap: 8px; text-align: center; }
  .card-header h2 { font-size: 14px; }
  .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { padding: 6px 10px; font-size: 11px; white-space: nowrap; }
  th, td { padding: 6px 4px; font-size: 10px; }
  #inventoryTable {
    --inventory-cell-py: 5px;
    --inventory-cell-px: 3px;
    --inventory-th-size: 8.5px;
    --inventory-td-size: 9.5px;
    --inventory-badge-size: 8px;
    --inventory-filter-size: 8px;
  }
  .filter-checkbox-btn { font-size: 9px; padding: 3px 5px; min-width: 28px; }
  .filter-checkbox-dropdown { left: auto; right: 0; transform: none; min-width: 120px; max-width: 180px; }
  .table-wrapper { max-height: 40vh; }
  .table-wrapper thead tr.filter-row th { top: 38px; padding: 3px 4px; }
  .listings-panel-header h2 { font-size: 15px; }
  .listings-panel-header p { font-size: 12px; }
  .listings-panel-actions { width: 100%; justify-content: flex-start; }
  .listings-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .listings-toolbar-compact { grid-template-columns: 1fr 1fr; }
  .active-filter-banner { padding: 8px; }
  .active-filter-chip { font-size: 11px; }
  .login-card { padding: 24px 16px; }
  .login-card h1 { font-size: 24px; }
  .btn { padding: 8px 14px; font-size: 12px; }
  .btn-sm { padding: 5px 8px; font-size: 10px; }
  .modal-content { padding: 20px 12px; }
  .modal-footer { flex-direction: column; }
  .modal-footer .btn { width: 100%; }
  .selection-bar { padding: 10px 12px; flex-direction: column; gap: 8px; text-align: center; }
  .selection-bar > div { flex-direction: column; gap: 6px; }
  .filter-select { font-size: 10px; padding: 4px 6px; }
  .edit-input { font-size: 11px; padding: 4px 6px; }
}

