/* ─── Page Dupliquer ─────────────────────────────────────────────────── */

.dup-body {
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  overflow: hidden;
}

/* Panneau gauche : formulaire */
.dup-form-col {
  width: 420px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 24px 20px;
  gap: 20px;
}

/* Panneau droit : aperçu */
.dup-preview-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.dup-preview-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dup-preview-count {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 400;
}

.dup-preview-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dup-preview-empty {
  color: var(--text-3);
  font-size: 13px;
  text-align: center;
  margin-top: 40px;
}

.dup-preview-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dup-preview-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a237e;
}

.dup-preview-item-title {
  font-size: 12px;
  color: var(--text-1);
}

.dup-preview-item-dates {
  font-size: 11px;
  color: var(--text-3);
}

.dup-preview-ct-warn {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #795548;
  margin-bottom: 4px;
}

/* ─── Sections formulaire ─── */
.dup-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dup-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.dup-row {
  display: flex;
  gap: 10px;
}

.dup-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.dup-field label {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 600;
}

.dup-field input[type="date"] {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-1);
  background: var(--surface);
  width: 100%;
  box-sizing: border-box;
}

.dup-field input[type="date"]:focus {
  outline: none;
  border-color: #1a237e;
}

/* ─── Sélection services ─── */
.dup-service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dup-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-2);
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}

.dup-chip:hover { border-color: #9fa8da; }
.dup-chip.active {
  border-color: #1a237e;
  background: #e8eaf6;
  color: #1a237e;
  font-weight: 700;
}

/* ─── Sélection employés ─── */
.dup-emp-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dup-emp-selall {
  font-size: 11px;
  color: #1a237e;
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
}

.dup-emp-count-label {
  font-size: 11px;
  color: var(--text-3);
}

.dup-emp-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  background: var(--bg);
}

.dup-emp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .12s;
}

.dup-emp-item:hover { background: #f3f4fd; }
.dup-emp-item.checked { background: #e8eaf6; }

.dup-emp-item input[type="checkbox"] { cursor: pointer; accent-color: #1a237e; }

.dup-emp-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.dup-emp-name {
  font-size: 13px;
  color: var(--text-1);
  flex: 1;
}

.dup-emp-svc {
  font-size: 11px;
  color: var(--text-3);
}

/* ─── Footer formulaire ─── */
.dup-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.dup-btn-preview {
  padding: 9px 0;
  border-radius: 8px;
  border: 1.5px solid #1a237e;
  background: none;
  color: #1a237e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.dup-btn-preview:hover { background: #e8eaf6; }

.dup-btn-exec {
  padding: 10px 0;
  border-radius: 8px;
  border: none;
  background: #1a237e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  width: 100%;
}
.dup-btn-exec:hover:not(:disabled) { background: #283593; }
.dup-btn-exec:disabled { opacity: .45; cursor: not-allowed; }

.dup-info {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
