.page-header {
  margin-top: 4rem;
}

.page-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header__actions {
  display: flex;
  gap: 0.75rem;
}

/* Header compact avec boutons */
.page-header-compact {
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  background: #ffffff;
}

.page-header-compact__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

/* Boutons avec animation hover */
.nav-button-compact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.nav-button-compact:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  background: #e5e7eb;
}

.nav-button-compact--primary {
  background: #3b82f6;
  color: white;
}

.nav-button-compact--primary:hover {
  background: #2563eb;
}

.nav-button-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.nav-button-text {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
  margin: 0;
}

.nav-button-compact:hover .nav-button-text {
  max-width: 200px;
  opacity: 1;
  margin-left: 0.5rem;
}

.nav-button-compact:hover .nav-button-icon {
  transform: scale(1.1);
}

.page-title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-subtitle {
  margin: 0.5rem 0 0;
  opacity: 0.9;
  font-size: 1.1rem;
}

.page-section {
  padding: 2rem;
}

.search-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-container--full {
  flex: 1;
}

.is-hidden {
  display: none !important;
}

.search-info {
  margin-bottom: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(14, 165, 233, 0.1);
}

.search-info__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.search-info__icon {
  width: 1.25rem;
  height: 1.25rem;
  color: #0ea5e9;
}

.search-info__title {
  font-weight: 600;
  color: #0c4a6e;
  font-size: 0.95rem;
}

.search-info__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-info__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-info__item-icon {
  width: 1rem;
  height: 1rem;
  color: #059669;
}

.search-info__item-icon--accent {
  color: #7c3aed;
}

.search-info__item-text {
  color: #065f46;
  font-size: 0.9rem;
}

.search-info__item-value {
  color: #5b21b6;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-section--light {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.glasses-client {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.glasses-client__title {
  margin: 0;
  color: var(--gray-900);
  font-size: 1.5rem;
  font-weight: 700;
}

.glasses-client__meta {
  margin: 0.5rem 0 0 0;
  color: var(--gray-600);
}

.glasses-client__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.loading-text {
  margin-top: 1rem;
  font-size: 1rem;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.empty-description {
  margin: 0;
  color: var(--gray-500);
}

.form-hint {
  color: var(--gray-600);
  margin-top: 0.25rem;
  display: block;
  font-size: 0.85rem;
}

.table-sortable {
  cursor: pointer;
  user-select: none;
}

.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.code-badge {
  display: inline-flex;
  align-items: center;
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.postit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.postit-toggle {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  background: #ffd700;
  color: #333333;
  border: 2px solid #f0e68c;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.postit-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.25);
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.postit-textarea {
  background: #fffacd;
  border: 2px solid #ffd700;
  display: none;
}

.postit-textarea.is-visible {
  display: block;
}

.postit-preview {
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
  padding: 0.5rem;
  background: #fffacd;
  border: 1px dashed #ffd700;
  border-radius: 4px;
  max-height: 60px;
  overflow: hidden;
}

.postit-preview.is-visible {
  display: block;
}

.equipment-section {
  display: none;
  padding: 2rem;
  border-top: 1px solid var(--gray-200);
}

.equipment-section.is-visible {
  display: block;
}

.equipment-section__title {
  margin: 0 0 1.5rem;
  color: var(--gray-800);
  font-size: 1.1rem;
  font-weight: 600;
}

.equipment-section__actions {
  display: flex;
  gap: 1rem;
}

.equipment-section__action-btn {
  flex: 1;
}

.postit-modal {
  max-width: 500px;
  background: #fffacd;
  border: 3px solid #ffd700;
  box-shadow: 0 10px 40px rgba(255, 215, 0, 0.3);
}

.postit-modal__header {
  background: #ffd700;
  border-bottom: 3px solid #f0e68c;
}

.postit-modal__title {
  color: #333333;
  margin: 0;
}

.postit-modal__textarea {
  width: 100%;
  height: 200px;
  padding: 1rem;
  border: 2px dashed #f0e68c;
  border-radius: 8px;
  font-family: 'Comic Sans MS', 'Trebuchet MS', cursive;
  font-size: 14px;
  resize: none;
  background: #fffef0;
}

.postit-modal__hint {
  color: #666666;
  margin-top: 0.5rem;
  display: block;
}

.postit-modal__footer {
  background: #f0e68c;
  border-top: 3px solid #ffd700;
}

.modal-body--compact {
  padding: 1.5rem;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #d1d9e6;
  color: #0f172a;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagination-number {
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: #e5e7eb;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-number:hover:not(:disabled) {
  background: #d1d9e6;
  color: #0f172a;
}

.pagination-number--active {
  background: #3b82f6;
  color: #ffffff;
  border-bottom: 2px solid #2563eb;
}

.pagination-number--active:hover {
  background: #2563eb;
}

.pagination-number:disabled {
  cursor: default;
}

.pagination-ellipsis {
  padding: 0 0.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.date-selector {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.date-selector__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.date-selector__trigger:hover:not(.date-selector__trigger--disabled) {
  background: #e0f2fe;
  border-color: rgba(37, 99, 235, 0.5);
  color: #0c4a6e;
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.25);
}

.date-selector__trigger--disabled {
  cursor: default;
  opacity: 0.65;
}

.date-selector__caret {
  font-size: 1.1rem;
  line-height: 1;
}

.date-selector__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0.25rem;
  z-index: 60;
  display: none;
}

.date-selector__menu.open {
  display: block;
}

.date-selector__option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--gray-700);
  text-align: left;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.date-selector__option:hover {
  background: #e0f2fe;
  color: #0f172a;
}

.date-selector__option--active,
.date-selector__option--active:hover {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  font-weight: 600;
}

/* Hover lignes et overlay équipements */
.table-row-hover {
  transition: background 0.2s ease, color 0.2s ease;
}

.table-row-hover:hover {
  background: #e0f2fe !important;
}

.suggestion-item {
  transition: background 0.2s ease, color 0.2s ease;
}

.suggestion-item:hover {
  background: #e0f2fe;
}

.equipment-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1200;
}

.equipment-overlay.active {
  display: block;
}

.equipment-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.equipment-overlay__panel {
  position: absolute;
  top: clamp(6px, 2%, 32px);
  bottom: clamp(6px, 2%, 32px);
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 94%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.equipment-overlay__frame {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4);
  background: #ffffff;
}

.equipment-overlay__close {
  align-self: flex-end;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
}

.equipment-overlay__close:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.3);
}

body.equipment-overlay-open {
  overflow: hidden;
}

body.equipment-overlay-open #clientModal {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


