/* Composants UI supplémentaires pour l'ERP */

/* Page Header */
.page-header {
  margin-bottom: 24px;
}
.page-header__content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.page-header__subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 0 0;
}
.page-header__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Stat Card - KPI Cards */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}
.stat-card:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}
.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.stat-card__trend {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stat-card__trend--up { color: var(--success); }
.stat-card__trend--down { color: var(--danger); }
.stat-card__trend--neutral { color: var(--muted); }

.stat-card--success { border-left: 4px solid var(--success); }
.stat-card--warning { border-left: 4px solid var(--warning); }
.stat-card--danger { border-left: 4px solid var(--danger); }
.stat-card--primary { border-left: 4px solid var(--primary); }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-state__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state__message {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 20px 0;
}
.empty-state__action {
  margin-top: 16px;
}

/* Table Wrapper */
.table-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.table-wrapper--responsive {
  overflow-x: auto;
}
.table__head {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  position: sticky;
  top: 0;
  z-index: 1;
}
.table__th {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.table__body tr {
  transition: background 0.15s ease;
}
.table__body tr:hover {
  background: #fafbfc;
}
.table__body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.table__body tr:last-child td {
  border-bottom: none;
}

/* Form Field */
.form-field {
  margin-bottom: 16px;
}
.form-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-field__required {
  color: var(--danger);
  margin-left: 2px;
}
.form-field__input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #8fa2bf;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.15s ease;
  background: #fff;
}
.form-field__input:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form-field__input:disabled {
  background: #f8fafc;
  cursor: not-allowed;
  opacity: 0.6;
}
.form-field__help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.form-field__error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
}

/* Alert */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid;
  margin-bottom: 16px;
}
.alert__icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
}
.alert__message {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}
.alert--info {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
  color: #1e40af;
}
.alert--info .alert__icon {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}
.alert--success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
  color: #065f46;
}
.alert--success .alert__icon {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}
.alert--warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  color: #92400e;
}
.alert--warning .alert__icon {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}
.alert--error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}
.alert--error .alert__icon {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* Action Bar */
.action-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px;
  background: #fafbfc;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs__item {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tabs__item:hover {
  color: var(--text);
  background: #fafbfc;
}
.tabs__item--active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.loading__spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.loading__message {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}
.divider--vertical {
  width: 1px;
  height: auto;
  margin: 0 16px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 10px; }
.rounded-lg { border-radius: 14px; }
.shadow { box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08); }
.shadow-lg { box-shadow: 0 4px 12px rgba(16, 24, 40, 0.12); }

/* Error Pages */
.error-page {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--bg);
  overflow: hidden;
}
.error-page__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.12), transparent 34%),
    radial-gradient(circle at 88% 90%, rgba(239, 68, 68, 0.10), transparent 34%);
  pointer-events: none;
}
.error-page__container {
  width: min(860px, 100%);
  position: relative;
  z-index: 1;
}
.error-page__card {
  overflow: hidden;
}
.error-page__header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  display: grid;
  gap: 10px;
}
.error-page__badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.error-page__badge--info {
  color: #1e40af;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
.error-page__badge--warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}
.error-page__badge--danger {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}
.error-page__badge--success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.error-page__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid var(--border);
  margin-top: 4px;
}
.error-page__svg {
  width: 24px;
  height: 24px;
  display: block;
}
.error-page__icon--info {
  color: #1e40af;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
}
.error-page__icon--warning {
  color: #92400e;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.4);
}
.error-page__icon--danger {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
}
.error-page__icon--success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}
.error-page__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.error-page__message {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.error-page__body {
  display: grid;
  gap: 14px;
}
.error-page__dev {
  border-style: dashed;
}
.error-page__dev-message {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  color: var(--text);
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.error-page__meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive utilities */
@media (max-width: 900px) {
  .page-header__content {
    flex-direction: column;
    align-items: stretch;
  }
  .page-header__actions {
    width: 100%;
  }
  .stat-card__value {
    font-size: 24px;
  }
  .action-bar {
    flex-direction: column;
  }
  .action-bar .btn {
    width: 100%;
  }

  .error-page {
    padding: 20px 12px;
  }
  .error-page__title {
    font-size: 24px;
  }
  .error-page__icon {
    width: 48px;
    height: 48px;
  }
  .error-page__svg {
    width: 20px;
    height: 20px;
  }
}




/* ============================================================
   Sidebar footer menus (base.html.twig)
   ============================================================ */
.sidebar__footer-menu-item {
  margin-top: 10px;
}
.sidebar__link--sync {
  color: #3b82f6;
}
.sidebar__link--deploy {
  color: #f59e0b;
}
.sidebar__badge {
  margin-left: 6px;
}

/* ============================================================
   bar/clotures.html.twig — sync badges + btn-sync
   ============================================================ */
.sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.sync-badge--pending { background: #fef3c7; color: #92400e; }
.sync-badge--synced  { background: #d1fae5; color: #065f46; }
.sync-badge--failed  { background: #fee2e2; color: #991b1b; }
.sync-badge--none    { background: #f3f4f6; color: #6b7280; }
.btn-sync {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-sync:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}
.btn-sync:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   admin/prix.html.twig
   ============================================================ */
.prix-info {
  background: #ecfdf5;
  border-left: 4px solid #10b981;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #065f46;
}
.prix-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.prix-filters input,
.prix-filters select {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
}
.prix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.prix-table th {
  background: #f8fafc;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  border-right: 1px solid #f1f5f9;
}
.prix-table th:last-child {
  border-right: none;
}
.prix-table td {
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}
.prix-table td:last-child {
  border-right: none;
}
.prix-table tbody tr:last-child td {
  border-bottom: none;
}
.prix-table tr:hover { background: #f9fafb; }
.prix-input {
  width: 120px;
  padding: 8px 10px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  transition: border-color 0.2s;
}
.prix-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}
.prix-input.modified {
  border-color: #f59e0b;
  background: #fffbeb;
}
.btn-modifier-inline {
  background: #10b981;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-modifier-inline:hover { background: #059669; }
.service-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 4px;
}
.service-badge--bar     { background: #dbeafe; color: #1d4ed8; }
.service-badge--cuisine { background: #d1fae5; color: #047857; }
.sync-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #92400e;
}

/* ============================================================
   dev_tools/index.html.twig
   ============================================================ */
.dev-container { max-width: 800px; }
.dev-header {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: 24px 28px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.dev-header h1 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dev-header p { margin: 0; opacity: 0.9; font-size: 0.9rem; }
.dev-warning {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dev-warning__icon { font-size: 1.5rem; flex-shrink: 0; }
.dev-warning__content h3 { margin: 0 0 4px 0; font-size: 0.95rem; color: #92400e; }
.dev-warning__content p  { margin: 0; font-size: 0.85rem; color: #a16207; }
.dev-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.dev-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dev-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: #fee2e2;
}
.dev-card__title  { margin: 0; font-size: 1rem; font-weight: 600; }
.dev-card__subtitle { margin: 2px 0 0; font-size: 0.8rem; color: #6b7280; }
.dev-card__body   { padding: 20px; }
.dev-form-group   { margin-bottom: 16px; }
.dev-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.dev-form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: monospace;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dev-form-group input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.dev-form-group small { display: block; margin-top: 6px; font-size: 0.75rem; color: #9ca3af; }
.dev-btn-danger {
  background: #dc2626;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
}
.dev-btn-danger:hover    { background: #b91c1c; transform: translateY(-1px); }
.dev-btn-danger:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }
.dev-protected-list {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}
.dev-protected-list h4 {
  margin: 0 0 8px 0;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dev-protected-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dev-protected-list li {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: monospace;
}

/* ============================================================
   migrations/index.html.twig
   ============================================================ */
.mig-header {
  background: linear-gradient(135deg, var(--primary, #2563eb) 0%, #1e40af 100%);
  color: white;
  padding: 24px 28px;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.mig-header h1 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mig-header p { margin: 0; opacity: 0.9; font-size: 0.95rem; }
.mig-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.mig-actions .btn {
  padding: 10px 20px;
  font-weight: 600;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.mig-actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.mig-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .mig-stats { grid-template-columns: 1fr; }
}
.mig-stat {
  background: white;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 16px;
}
.mig-stat--pending { border-left-color: #f59e0b; }
.mig-stat--synced  { border-left-color: #10b981; }
.mig-stat--failed  { border-left-color: #ef4444; }
.mig-stat__icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.mig-stat--pending .mig-stat__icon { background: #fef3c7; }
.mig-stat--synced  .mig-stat__icon { background: #d1fae5; }
.mig-stat--failed  .mig-stat__icon { background: #fee2e2; }
.mig-stat__content h3 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.mig-stat__content p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mig-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 20px;
  overflow: hidden;
}
.mig-section__header {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mig-section__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mig-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.mig-section--pending .mig-section__badge { background: #fef3c7; color: #92400e; }
.mig-section--synced  .mig-section__badge { background: #d1fae5; color: #065f46; }
.mig-section--failed  .mig-section__badge { background: #fee2e2; color: #991b1b; }
.mig-section__body { padding: 0; }
.mig-empty {
  padding: 32px 20px;
  text-align: center;
  color: #9ca3af;
}
.mig-empty__icon { font-size: 2.5rem; margin-bottom: 8px; opacity: 0.5; }
.mig-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
.mig-item:last-child { border-bottom: none; }
.mig-item:hover { background: #f9fafb; }
.mig-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mig-item__main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.mig-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mig-item--bar     .mig-item__icon { background: #dbeafe; color: #1d4ed8; }
.mig-item--magasin .mig-item__icon { background: #fef3c7; color: #b45309; }
.mig-item--cuisine .mig-item__icon { background: #d1fae5; color: #047857; }
.mig-item--default .mig-item__icon { background: #e5e7eb; color: #4b5563; }
.mig-item__info h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}
.mig-item__info p { margin: 2px 0 0; font-size: 0.8rem; color: #6b7280; }
.mig-item__meta {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: #6b7280;
}
.mig-item__meta span { display: flex; align-items: center; gap: 4px; }
.mig-item__actions { display: flex; gap: 8px; }
.mig-item__actions .btn { padding: 6px 14px; font-size: 0.8rem; border-radius: 6px; }
.mig-item__uuid {
  margin-top: 8px;
  font-size: 0.7rem;
  color: #9ca3af;
  font-family: monospace;
  word-break: break-all;
}
.mig-item__error {
  margin-top: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #991b1b;
  border-left: 3px solid #ef4444;
}
.mig-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.mig-status--pending { background: #fef3c7; color: #92400e; }
.mig-status--synced  { background: #d1fae5; color: #065f46; }
.mig-status--failed  { background: #fee2e2; color: #991b1b; }
.loader {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
.btn-pull-loading { opacity: 0.7; cursor: not-allowed; }

/* ============================================================
   parametres/pull_users.html.twig
   ============================================================ */
.pull-users-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 24px auto;
  overflow: hidden;
}
.pull-users-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 20px 24px;
}
.pull-users-header h1 {
  margin: 0;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pull-users-header p { margin: 8px 0 0; opacity: 0.9; font-size: 0.9rem; }
.pull-users-body { padding: 24px; }
.pull-users-list {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.pull-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}
.pull-user-item:last-child { border-bottom: none; }
.pull-user-item:hover { background: #f9fafb; }
.pull-user-item input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.pull-user-info  { flex: 1; }
.pull-user-name  { font-weight: 600; color: #111827; }
.pull-user-email { font-size: 0.85rem; color: #6b7280; }
.pull-user-roles { display: flex; gap: 6px; flex-wrap: wrap; }
.pull-user-role {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 12px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 500;
}
.pull-users-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: space-between;
  align-items: center;
}
.pull-users-info  { font-size: 0.85rem; color: #6b7280; }
.pull-users-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  color: #991b1b;
  margin-bottom: 16px;
}
.pull-users-empty { text-align: center; padding: 40px 20px; color: #9ca3af; }
.pull-users-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.select-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.select-actions button {
  font-size: 0.8rem;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.select-actions button:hover { background: #f3f4f6; }

/* ============================================================
   bar/manquant.html.twig
   ============================================================ */
.manquant-form {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
}
.manquant-form h2 {
  margin: 0 0 16px 0;
  color: #92400e;
  display: flex;
  align-items: center;
  gap: 10px;
}
.manquant-info {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  color: #78350f;
}
.manquant-existants {
  margin-top: 24px;
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.manquant-existants h3 { margin: 0 0 12px 0; font-size: 1rem; color: #374151; }
.manquant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fef3c7;
  border-radius: 6px;
  margin-bottom: 8px;
}
.manquant-item:last-child { margin-bottom: 0; }
.manquant-item__info { flex: 1; }
.manquant-item__comment { font-weight: 600; color: #92400e; }
.manquant-item__meta { font-size: 0.8rem; color: #78350f; margin-top: 2px; }
.manquant-item__montant { font-weight: 700; font-size: 1.1rem; color: #dc2626; }

/* ============================================================
   admin/migrations_detail.html.twig
   ============================================================ */
.mig-detail-header {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
  padding: 20px 24px;
  border-radius: 10px;
  margin-bottom: 20px;
}
.mig-detail-header h1 { margin: 0 0 8px 0; font-size: 1.5rem; }
.mig-detail-header p  { margin: 0; opacity: 0.9; font-size: 0.9rem; }
.mig-detail-meta {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.mig-detail-meta span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.user-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.user-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}
.user-card__header {
  background: #f8fafc;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1rem;
}
.user-card__email { font-weight: 600; color: #111827; font-size: 0.95rem; }
.user-card__role  { font-size: 0.75rem; color: #6b7280; margin-top: 2px; }
.user-card__body  { padding: 16px 18px; }
.user-stat-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.user-stat-row:last-child { border-bottom: none; }
.user-stat-row__label { color: #6b7280; }
.user-stat-row__value { font-weight: 600; color: #111827; }
.user-stat-row__value--highlight { color: #059669; }
.user-stat-row__value--warning   { color: #d97706; }
.user-stat-row__value--danger    { color: #dc2626; }
.cloture-badge {
  background: #10b981;
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 8px;
}
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.operations-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.operations-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
  border-right: 1px solid #f1f5f9;
}
.operations-table th:last-child {
  border-right: none;
}
.operations-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f1f5f9;
}
.operations-table td:last-child {
  border-right: none;
}
.operations-table tbody tr:last-child td {
  border-bottom: none;
}
.operations-table tr:hover { background: #f9fafb; }
.user-email-badge {
  background: #ede9fe;
  color: #6d28d9;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ========================================================================== */
/* CONTEXTE MULTI-TENANT                                                     */
/* ========================================================================== */

/* Contexte tenant dans la sidebar */
.tenant-context {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 12px 16px 12px;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.tenant-context__hotel,
.tenant-context__service {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 0;
}

.tenant-context__hotel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.tenant-context__hotel i,
.tenant-context__service i {
  font-size: 0.875rem;
  opacity: 0.9;
}

.tenant-context__service {
  font-size: 0.8125rem;
  opacity: 0.95;
}

/* Badge de contexte dans les pages */
.page-tenant-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
}

.page-tenant-badge i {
  font-size: 1rem;
}

.page-tenant-badge__separator {
  color: #7dd3fc;
  margin: 0 4px;
}

/* Badges inline pour hôtel et service */
.badge-hotel {
  background: #dbeafe;
  color: #1e40af;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-service {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .tenant-context {
    margin: 0 8px 12px 8px;
    padding: 10px;
  }
  
  .tenant-context__hotel,
  .tenant-context__service {
    font-size: 0.8125rem;
  }
}