/* ─── MSS PLANNING — Gestion des demandes de congés (admin) ─────────── */

.gdc-page-body {
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 20px 24px 40px;
}

.gdc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 980px;
}
.gdc-sep { color: var(--text-3); }

.gdc-list-section { width: 100%; max-width: 980px; }

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

.gdc-group-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-2);
  margin: 4px 0 10px;
}

.gdc-drawer {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}
.gdc-drawer-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-2);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  cursor: pointer;
  text-align: left;
}
.gdc-drawer-arrow { font-size: 16px; transition: transform .2s; color: var(--text-3); }
.gdc-drawer-header.open .gdc-drawer-arrow { transform: rotate(90deg); }
.gdc-drawer-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gdc-drawer-body .gdc-card { margin-bottom: 0; }

.gdc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gdc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gdc-card-emp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: #1a237e;
}
.gdc-emp-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.gdc-card-type {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.gdc-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 99px;
  padding: 2px 10px;
  white-space: nowrap;
}
.gdc-badge.en-attente   { background: #fff8e1; color: #8d6e00; }
.gdc-badge.modification { background: #fff3e0; color: #ef6c00; }
.gdc-badge.approuvee    { background: #e8f5e9; color: #2e7d32; }
.gdc-badge.refusee      { background: #fce4ec; color: #c62828; }
.gdc-badge.annulee      { background: #eceff1; color: #607d8b; }

.gdc-card-dates { font-size: 13px; color: var(--text-2); }
.gdc-card-comment { font-size: 12px; color: var(--text-2); font-style: italic; }
.gdc-card-note { font-size: 12px; color: #c62828; }
.gdc-card-meta { font-size: 11px; color: var(--text-3); }

.gdc-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.gdc-btn {
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.gdc-btn.ok   { border-color: #2e7d32; color: #2e7d32; }
.gdc-btn.ok:hover   { background: #e8f5e9; }
.gdc-btn.ko   { border-color: #c62828; color: #c62828; }
.gdc-btn.ko:hover   { background: #fce4ec; }
.gdc-btn.warn { border-color: #ef6c00; color: #ef6c00; }
.gdc-btn.warn:hover { background: #fff3e0; }
.gdc-btn:disabled { opacity: .5; cursor: default; }

/* ─── Popup remplacement des tâches (approbation) ─── */
.gdc-impact-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 600; padding: 1rem;
}
.gdc-impact-modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.gdc-impact-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: #1a237e;
}
.gdc-modal-close {
  background: none; border: none; font-size: 22px; line-height: 1;
  color: var(--text-2); cursor: pointer; padding: 0 4px;
}
.gdc-impact-body { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.gdc-impact-intro { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.gdc-impact-jours {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 240px; overflow-y: auto;
}
.gdc-impact-jour {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  background: var(--surface-2); font-size: 12px;
}
.gdc-impact-jour-date { font-weight: 600; color: var(--text-1); white-space: nowrap; flex-shrink: 0; }
.gdc-impact-jour-titres {
  flex: 1; min-width: 0; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gdc-impact-jour-heures { font-weight: 700; color: #1a237e; white-space: nowrap; flex-shrink: 0; }

.gdc-impact-equiv-input {
  width: 60px; box-sizing: border-box; padding: 3px 6px;
  border: 1px solid var(--border); border-radius: 5px;
  font-size: 12px; background: var(--bg); color: var(--text);
  flex-shrink: 0;
}

.gdc-impact-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-1);
  cursor: pointer; user-select: none;
  padding: 2px 0;
}
.gdc-impact-checkbox input { width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }

.gdc-impact-fixe { display: flex; flex-direction: column; gap: 6px; }
.gdc-impact-fixe label { font-size: 13px; font-weight: 600; color: var(--text-1); }
.gdc-impact-fixe input {
  width: 100%; max-width: 200px; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; background: var(--bg); color: var(--text);
}

.gdc-impact-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ─── En-tête et tableau d'impression (masqués à l'écran) ─── */
.gdc-print-header { display: none; }
.gdc-print-table  { display: none; }

/* ─── Impression A4 portrait — présentation compacte en lignes ─── */
@media print {
  @page { size: A4 portrait; margin: 15mm 12mm; }

  body * { visibility: hidden; }
  .gdc-page-body, .gdc-page-body * { visibility: visible; }

  .page-header, .gdc-filters, .gdc-list-section, #toast, #confirm-overlay { display: none !important; }

  .gdc-page-body {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    padding: 0;
    overflow: visible;
  }

  .gdc-print-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 2px solid #1a237e;
    padding-bottom: 8px;
  }
  .gdc-print-header img { height: 32px; }
  .gdc-print-header h1 { font-size: 16px; color: #1a237e; margin: 0; }
  .gdc-print-header div#gdc-print-date { font-size: 10px; color: #666; }

  .gdc-print-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    font-size: 9px;
  }
  .gdc-print-table th {
    text-align: left;
    padding: 3px 5px;
    background: #eee;
    border-bottom: 1.5px solid #1a237e;
    font-size: 8.5px;
    text-transform: uppercase;
    letter-spacing: .02em;
  }
  .gdc-print-table td {
    padding: 3px 5px;
    border-bottom: 0.5px solid #ccc;
    vertical-align: top;
  }
  .gdc-print-table tr { break-inside: avoid; }
}
