#rh-app main {
  max-width: none;
  padding: 20px 32px;
}

.login-card {
  max-width: 420px;
  margin: 60px auto;
}
.login-card h2 { margin-top: 0; }

.table-scroll { overflow-x: auto; }

table.rh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 8px;
}
table.rh-table th, table.rh-table td {
  border: 1px solid var(--border);
  padding: 8px;
  text-align: left;
  white-space: nowrap;
}
table.rh-table th { background: #f0f4f6; color: var(--navy); }
table.rh-table tr.row-selected { background: #fffbe6; }
table.rh-table tr.row-clickable { cursor: pointer; }

.detail-value {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8f9fa;
  font-weight: 600;
  color: var(--navy);
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: #f8f9fa;
  border-radius: 8px;
}
.doc-actions .field { margin-bottom: 0; }

.rh-subsection {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.rh-subsection h3 { margin-top: 0; }

.add-form {
  margin-top: 12px;
  padding: 12px;
  background: #fbfbfc;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rh-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.rh-section-header h2 { margin: 0; }

.view-toggle { display: flex; gap: 6px; }
.view-toggle .btn.active {
  background: var(--navy);
  color: #fff;
}

.employe-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.employe-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: box-shadow 0.15s ease;
}
.employe-card:hover { box-shadow: 0 2px 10px rgba(0, 67, 88, 0.12); }

.employe-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--grey);
  display: block;
}
.employe-photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
}

.employe-card-body { padding: 10px; }
.employe-card-body .nom { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.employe-card-body .poste { font-size: 0.8rem; color: var(--muted); }

.employe-photo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.employe-photo-large {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--grey);
}
