/* 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;
  }
}




/* debut style de projet/templates/migrations/index.html.twig */


/* fin style de projet/templates/migrations/index.html.twig */