/* ============================================
   GESTION PROJET - INSTALLATION CLIENT
   ============================================ */

.page_gestion_projet {
  padding: 0 16px 32px;
}

/* ---- HEADER ---- */
.gp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 2px solid var(--main-bg-color, #263C5C);
  margin-bottom: 20px;
}

.gp-header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--main-bg-color, #263C5C);
  margin: 0;
}

.gp-header-nav {
  display: flex;
  gap: 6px;
}

.gp-nav-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  color: #555;
  transition: all 0.2s;
}

.gp-nav-btn.active {
  background: var(--main-bg-color, #263C5C);
  color: #fff;
  border-color: var(--main-bg-color, #263C5C);
}

.gp-nav-btn:hover:not(.active) {
  background: #f5f5f5;
}

/* ---- KPI ---- */
.gp-kpi-row {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.gp-kpi-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
}

.gp-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.gp-kpi-pending { background: #1565c0; }
.gp-kpi-projects { background: #2e7d32; }
.gp-kpi-postes { background: #6a1b9a; }
.gp-kpi-acompte { background: #e53935; }

.gp-kpi-content {
  display: flex;
  flex-direction: column;
}

.gp-kpi-value {
  font-size: 18pt;
  font-weight: 700;
  color: #333;
  line-height: 1.1;
}

.gp-kpi-label {
  font-size: 8.5pt;
  color: #888;
}

/* ---- CARDS ---- */
.gp-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  padding: 18px;
  margin-bottom: 16px;
}

.gp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gp-card-header h2 {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.gp-card-header h2 .fa {
  margin-right: 6px;
  color: var(--main-bg-color, #263C5C);
}

.gp-accordion-header {
  cursor: pointer;
  user-select: none;
}

.gp-accordion-header:hover {
  opacity: 0.8;
}

.gp-accordion-chevron {
  margin-left: 10px;
  font-size: 12px;
  color: #999;
}

/* ---- BADGES ---- */
.gp-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.gp-badge-sm { font-size: 10px; padding: 2px 8px; }
.gp-badge-xs { font-size: 9px; padding: 1px 6px; }
.gp-badge-green { background: #e8f5e9; color: #2e7d32; }
.gp-badge-blue { background: #e3f2fd; color: #1565c0; }
.gp-badge-orange { background: #fff3e0; color: #e65100; }
.gp-badge-red { background: #ffebee; color: #c62828; }
.gp-badge-purple { background: #f3e5f5; color: #6a1b9a; }
.gp-badge-blank { background: #f5f5f5; color: #999; }

/* ---- TABLE ---- */
.gp-table-container {
  overflow-x: auto;
}

.gp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gp-table th {
  text-align: center;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 2px solid #eee;
}

.gp-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  text-align: center;
}

.gp-table tr:last-child td { border-bottom: none; }
.gp-table tr:hover td { background: #f8f9fb; }

.gp-row-clickable { cursor: pointer; }

/* ---- SEARCH BAR ---- */
.gp-search-bar {
  position: relative;
  margin-bottom: 14px;
}

.gp-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 13px;
}

.gp-input-search {
  padding-left: 34px !important;
}

.gp-link-dolibarr {
  color: #1565c0;
  text-decoration: none;
}
.gp-link-dolibarr:hover {
  text-decoration: underline;
}

.gp-link-header {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.4);
}
.gp-link-header:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ---- BUTTONS ---- */
.gp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gp-btn-sm { padding: 5px 10px; font-size: 12px; }
.gp-btn-lg { padding: 10px 24px; font-size: 14px; }

.gp-btn-primary { background: var(--main-bg-color, #263C5C); color: #fff; }
.gp-btn-primary:hover { opacity: 0.9; }

.gp-btn-success { background: #2e7d32; color: #fff; }
.gp-btn-success:hover { opacity: 0.9; }

.gp-btn-danger { background: #c62828; color: #fff; }
.gp-btn-danger:hover { opacity: 0.9; }

.gp-btn-outline { background: #fff; border: 1px solid #ddd; color: #555; }
.gp-btn-outline:hover { background: #f5f5f5; }

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

/* ---- PROGRESS ---- */
.gp-progress-bar {
  height: 8px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.gp-progress-bar-lg { height: 12px; }

.gp-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.gp-progress-blue { background: #1565c0; }
.gp-progress-green { background: #2e7d32; }

.gp-progress-container { margin-top: 16px; }

.gp-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
}

/* ---- EMPTY ---- */
.gp-empty {
  text-align: center;
  padding: 40px 20px;
  color: #aaa;
}

.gp-empty .fa { font-size: 32px; margin-bottom: 10px; }
.gp-empty p { margin: 0; font-size: 14px; }
.gp-empty-small { padding: 12px; text-align: center; color: #aaa; font-size: 13px; }

/* ---- PROJET HEADER ---- */
.gp-projet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--main-bg-color, #263C5C);
  color: #fff;
  border-radius: 10px;
  padding: 18px 24px;
  margin-bottom: 16px;
}

.gp-projet-header-compact { padding: 12px 20px; }

.gp-projet-title {
  font-size: 18px;
  font-weight: 700;
}

.gp-projet-detail {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 2px;
}

.gp-projet-stats {
  display: flex;
  gap: 24px;
}

.gp-stat {
  text-align: center;
}

.gp-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.gp-stat-label {
  font-size: 11px;
  opacity: 0.8;
}

/* ---- TABS ---- */
.gp-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #eee;
  overflow-x: auto;
}

.gp-tabs-main {
  margin-bottom: 16px;
  overflow: hidden;
}

.gp-tab {
  padding: 10px 18px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
}

.gp-tab.active {
  color: var(--main-bg-color, #263C5C);
  border-bottom-color: var(--main-bg-color, #263C5C);
}

.gp-tab:hover:not(.active) {
  color: #555;
}

.gp-tab-add {
  color: #1565c0;
  font-weight: 700;
}

.gp-tabs-postes {
  margin-bottom: 16px;
}

/* ---- PIPELINE / TIMELINE ---- */
.gp-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
  flex-wrap: wrap;
}

.gp-pipeline-step {
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  min-width: 100px;
}

.gp-step-icon { font-size: 20px; margin-bottom: 4px; }
.gp-step-label { font-size: 12px; font-weight: 700; color: #333; }
.gp-step-status { font-size: 11px; color: #888; margin-top: 2px; }

.gp-step-green { background: #e8f5e9; }
.gp-step-green .gp-step-icon { color: #2e7d32; }
.gp-step-green .gp-step-status { color: #2e7d32; }

.gp-step-blue { background: #e3f2fd; }
.gp-step-blue .gp-step-icon { color: #1565c0; }
.gp-step-blue .gp-step-status { color: #1565c0; }

.gp-step-red { background: #ffebee; }
.gp-step-red .gp-step-icon { color: #c62828; }
.gp-step-red .gp-step-status { color: #c62828; font-weight: 600; }

.gp-step-blank { background: #f5f5f5; }

.gp-pipeline-arrow {
  padding: 0 6px;
  color: #ccc;
  font-size: 16px;
}

/* ---- GRID ---- */
.gp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.gp-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* ---- RECAP LINKS ---- */
.gp-recap-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gp-recap-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background 0.15s;
}

.gp-recap-link:hover { background: #f5f7fa; }
.gp-link-empty { opacity: 0.5; cursor: default; }
.gp-link-empty:hover { background: none; }
.gp-link-icon { font-size: 16px; color: var(--main-bg-color, #263C5C); width: 20px; text-align: center; }
.gp-link-ref { font-weight: 600; font-size: 13px; }
.gp-link-sub { font-size: 11px; color: #999; }
.gp-link-amount { margin-left: auto; font-weight: 600; font-size: 13px; }

/* ---- INFO SECTION ---- */
.gp-info-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

.gp-info-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gp-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
}

.gp-info-label { color: #888; }

/* ---- KANBAN ---- */
.gp-kanban {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  min-height: 200px;
}

.gp-kanban-col {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 10px;
  min-height: 150px;
}

.gp-kanban-col-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gp-col-start { background: #f5f5f5; color: #666; }
.gp-col-progress { background: #e3f2fd; color: #1565c0; }
.gp-col-done { background: #e8f5e9; color: #2e7d32; }

.gp-kanban-card {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  cursor: grab;
  transition: box-shadow 0.15s;
}

.gp-kanban-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gp-kanban-card:active { cursor: grabbing; }

/* Groupes Kanban par équipement */
.gp-kanban-group {
  margin-bottom: 12px;
}

.gp-kanban-group-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #e8edf2;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--main-bg-color, #263C5C);
  border-left: 3px solid var(--main-bg-color, #263C5C);
  cursor: pointer;
  user-select: none;
}

.gp-kanban-group-header:hover {
  opacity: 0.85;
}

/* ---- MENU CONTEXTUEL ---- */
.gp-ctx-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
}

.gp-ctx-menu {
  position: fixed;
  z-index: 1000;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px 0;
  min-width: 200px;
  animation: gpFadeIn 0.1s ease;
}

.gp-ctx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
}

.gp-ctx-item:hover {
  background: #f5f7fa;
}

.gp-ctx-item .fa {
  width: 16px;
  text-align: center;
  color: #666;
}

.gp-ctx-danger { color: #c62828; }
.gp-ctx-danger .fa { color: #c62828; }

.gp-ctx-separator {
  height: 1px;
  background: #eee;
  margin: 4px 0;
}

.gp-kanban-chevron {
  font-size: 9px;
  width: 12px;
  text-align: center;
  flex-shrink: 0;
}

.gp-kanban-group-done {
  background: #e8f5e9;
  border-left-color: #2e7d32;
  color: #2e7d32;
  opacity: 0.8;
}

.gp-badge-equip {
  background: var(--main-bg-color, #263C5C);
  color: #fff;
}

/* ---- PHASE BADGES ---- */
.gp-badge-phase-prep {
  background: #e8eaf6;
  color: #283593;
}

.gp-badge-phase-install {
  background: #fce4ec;
  color: #ad1457;
}

.gp-badge-phase-action {
  background: #fff3e0;
  color: #e65100;
}

.gp-badge-phase-post {
  background: #e0f2f1;
  color: #00695c;
}

/* ---- PHASE INDICATORS (vue par poste) ---- */
.gp-phase-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-radius: 8px;
}

.gp-phase-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.gp-phase-arrow {
  color: #ccc;
  font-size: 14px;
}

.gp-phase-pending {
  background: #f5f5f5;
  color: #999;
}

.gp-phase-progress {
  background: #e3f2fd;
  color: #1565c0;
}

.gp-phase-done {
  background: #e8f5e9;
  color: #2e7d32;
}

.gp-phase-none {
  display: none;
}

.gp-phase-warn {
  color: #e65100;
  margin-left: 4px;
}

.gp-kanban-done { opacity: 0.65; }
.gp-kanban-done .gp-kanban-title { text-decoration: line-through; }

.gp-kanban-title {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.gp-kanban-meta {
  font-size: 11px;
  color: #999;
}

.gp-kanban-tags {
  margin-top: 6px;
}

.gp-kanban-assignee {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

.gp-kanban-tech {
  display: inline-flex;
}

.gp-kanban-tech .profileUserPhoto {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.gp-kanban-tech .profileUserPhoto img {
  width: 24px;
  height: 24px;
}

.gp-kanban-tech .fa-user {
  font-size: 12px;
  color: #999;
}



.gp-task-count {
  font-size: 12px;
  color: #999;
}

/* ---- POSTE VIEW ---- */
.gp-card-poste {
  border-top-left-radius: 0;
}

.gp-poste-content {
  padding: 0;
}

.gp-poste-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.gp-poste-info-item label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2px;
}

.gp-poste-info-item span {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

/* ---- TIME ---- */
.gp-time-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #e3f2fd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.gp-time-value {
  font-size: 22px;
  font-weight: 700;
  color: #1565c0;
}

.gp-time-label {
  font-size: 11px;
  color: #5c8fc4;
}

.gp-time-actions {
  display: flex;
  gap: 8px;
}

/* ---- DESCRIPTION ---- */
.gp-description-block {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.gp-description-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 8px;
}

.gp-description-content {
  font-size: 13px;
  font-family: monospace;
  line-height: 1.8;
}

.gp-desc-tag {
  color: #1565c0;
  font-weight: 600;
}

/* ---- SUBTASKS ---- */
.gp-subtask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gp-subtask-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.gp-subtask-list {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.gp-subtask-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

.gp-subtask-item:last-child { border-bottom: none; }

.gp-subtask-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.gp-st-done { background: #2e7d32; color: #fff; }
.gp-st-progress { background: #1565c0; color: #fff; }
.gp-st-pending { background: #eee; color: #bbb; border: 2px solid #ddd; }

.gp-subtask-name {
  flex: 1;
  color: #333;
}

.gp-subtask-done {
  text-decoration: line-through;
  color: #aaa;
}

.gp-btn-delete {
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-left: auto;
  opacity: 0;
  transition: all 0.15s;
}

.gp-subtask-item:hover .gp-btn-delete {
  opacity: 1;
}

.gp-btn-delete:hover {
  color: #c62828;
  background: #ffebee;
}

/* ---- COMMENTS ---- */
.gp-comment {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.gp-comment:last-of-type { border-bottom: none; }

.gp-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--main-bg-color, #263C5C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gp-avatar-me { background: #1565c0; }

.gp-comment-body { flex: 1; }

.gp-comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gp-comment-author {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.gp-comment-date {
  font-size: 11px;
  color: #999;
}

.gp-comment-text {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.gp-comment-input {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #eee;
  margin-top: 12px;
}

.gp-comment-form {
  flex: 1;
}

.gp-comment-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
  box-sizing: border-box;
}

.gp-comment-form-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.gp-comment-form-footer label {
  font-size: 12px;
  color: #888;
}

.gp-input-time {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
}

/* ---- MODAL ---- */
.gp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: gpFadeIn 0.2s ease;
}

@keyframes gpFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gp-modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 550px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}

.gp-modal-lg { max-width: 700px; }
.gp-modal-xl { max-width: 900px; }

.gp-modal h3 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0 0 16px;
}

.gp-modal-steps {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
}

.gp-modal-step {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #bbb;
  background: #f5f5f5;
  border-bottom: 3px solid transparent;
}

.gp-modal-step.active {
  color: var(--main-bg-color, #263C5C);
  background: #e8edf2;
  border-bottom-color: var(--main-bg-color, #263C5C);
}

.gp-modal-step.done {
  color: #2e7d32;
  background: #e8f5e9;
  border-bottom-color: #2e7d32;
}

.gp-modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.gp-modal-header-row h3 {
  margin: 0;
}

.gp-textarea-mapping {
  width: 100%;
  min-height: 450px;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.6;
  tab-size: 2;
  white-space: pre;
  overflow-x: auto;
  box-sizing: border-box;
}

.gp-nav-btn-mapping {
  margin-left: auto;
  border-style: dashed;
}

.gp-nav-btn-help {
  border-style: dashed;
  color: #1565c0;
}

/* ---- TUTO ---- */
.gp-tuto-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid #eee;
  padding-bottom: 0;
}

.gp-tuto-nav-btn {
  background: none;
  border: none;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.gp-tuto-nav-btn.active {
  color: var(--main-bg-color, #263C5C);
  border-bottom-color: var(--main-bg-color, #263C5C);
}

.gp-tuto-content {
  min-height: 300px;
  max-height: 55vh;
  overflow-y: auto;
  padding: 4px 0;
}

.gp-tuto-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
}

.gp-tuto-content h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--main-bg-color, #263C5C);
  margin: 16px 0 6px;
}

.gp-tuto-content p {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 8px;
}

.gp-tuto-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 16px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.gp-tuto-flow-step {
  text-align: center;
  padding: 12px 14px;
  background: #f8f9fb;
  border-radius: 8px;
  min-width: 120px;
}

.gp-tuto-flow-step .fa {
  display: block;
  font-size: 20px;
  color: var(--main-bg-color, #263C5C);
  margin-bottom: 6px;
}

.gp-tuto-flow-step strong {
  font-size: 12px;
  display: block;
}

.gp-tuto-flow-step p {
  font-size: 11px;
  margin: 4px 0 0;
  color: #888;
}

.gp-tuto-flow-arrow {
  color: #ccc;
  margin: 0 8px;
  font-size: 14px;
}

.gp-tuto-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.gp-tuto-list li {
  padding: 6px 0;
  font-size: 13px;
  color: #555;
}

.gp-tuto-list li strong {
  color: #333;
}

.gp-tuto-list li .fa {
  margin-right: 6px;
  color: var(--main-bg-color, #263C5C);
}

.gp-tuto-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}

.gp-tuto-type {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 6px;
  font-size: 12px;
  color: #555;
}

.gp-tuto-type .fa {
  color: var(--main-bg-color, #263C5C);
}

.gp-tuto-steps {
  padding-left: 20px;
  margin: 8px 0;
}

.gp-tuto-steps li {
  margin-bottom: 12px;
  font-size: 13px;
  color: #555;
}

.gp-tuto-steps li strong {
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.gp-tuto-steps li p {
  margin: 4px 0;
}

.gp-tuto-steps li ul {
  margin: 4px 0 0 16px;
  font-size: 12px;
}

.gp-tuto-tip {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 12px 0;
  font-size: 13px;
  color: #555;
}

.gp-tuto-tip .fa-lightbulb {
  color: #ffc107;
  margin-right: 6px;
}

.gp-tuto-code {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  margin: 8px 0;
  white-space: pre;
}

.gp-tuto-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin: 8px 0;
}

.gp-tuto-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.gp-tuto-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.gp-tuto-table code {
  background: #f5f5f5;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

.gp-tuto-cycle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
  font-size: 13px;
}

.gp-tuto-cycle-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.gp-tuto-page {
  font-size: 12px;
  color: #999;
}

.gp-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}

/* ---- CHECKBOX LIST (modals) ---- */
.gp-checkbox-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.gp-checkbox-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.gp-checkbox-list li:hover { background: #f8f9fb; }

.gp-checkbox-list li.selected {
  background: #e3f2fd;
  border-color: #1565c0;
}

.gp-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #1565c0;
  flex-shrink: 0;
}

.gp-checkbox-list li.selected .gp-check-icon {
  background: #1565c0;
  border-color: #1565c0;
  color: #fff;
}

.gp-cmd-details { flex: 1; font-size: 13px; color: #333; }
.gp-cmd-ref { font-weight: 600; }

.gp-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
  margin: 16px 0 8px;
}

/* ---- POSTE INPUTS (modal step 2) ---- */
.gp-poste-inputs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.gp-poste-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gp-poste-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--main-bg-color, #263C5C);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.gp-poste-input-row .gp-input {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 36px;
  box-sizing: border-box;
}

.gp-poste-source {
  font-size: 11px;
  color: #999;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- INPUTS ---- */
.gp-input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  flex: 1;
}

.gp-input:focus { outline: none; border-color: var(--main-bg-color, #263C5C); }
.gp-input-full { width: 100%; box-sizing: border-box; }

.gp-textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  min-height: 80px;
  resize: vertical;
  box-sizing: border-box;
}

.gp-form-group {
  margin-bottom: 12px;
}

/* ---- VALIDATION PREVIEW ---- */
.gp-validation-content {
  max-height: 55vh;
  overflow-y: auto;
  padding: 4px 0;
}

.gp-validation-group {
  margin-bottom: 14px;
}

.gp-validation-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #e8edf2;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  border-left: 3px solid var(--main-bg-color, #263C5C);
}

.gp-validation-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gp-validation-tasks li {
  padding: 5px 12px 5px 28px;
  font-size: 12px;
  color: #555;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gp-validation-tasks li:last-child {
  border-bottom: none;
}

/* ---- EVENTS ---- */
a.gp-event-row {
  text-decoration: none;
  color: inherit;
}

.gp-event-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  transition: background 0.15s;
}

.gp-event-row:hover { background: #f8f9fb; }

.gp-event-past {
  opacity: 0.45;
}

.gp-event-row:last-child { border-bottom: none; }

.gp-event-date-col {
  flex: 0 0 auto;
  min-width: 80px;
  text-align: center;
}

.gp-event-date {
  font-weight: 700;
  font-size: 12px;
  color: #333;
}

.gp-event-time {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.gp-event-info-col {
  flex: 1;
  min-width: 0;
}

.gp-event-users-col {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.gp-event-user-avatar {
  display: inline-flex;
  margin-left: -6px;
}

.gp-event-user-avatar:first-child {
  margin-left: 0;
}

.gp-event-user-avatar .profileUserPhoto {
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.gp-event-users-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gp-event-user-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.gp-event-user-check:has(input:checked) {
  background: #e3f2fd;
  border-color: #1565c0;
}

.gp-event-user-check input[type="checkbox"] {
  display: none;
}

.gp-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gp-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  margin-bottom: 4px;
}

/* ---- ALERTS ---- */
.gp-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.gp-alert-info { background: #e3f2fd; color: #1565c0; }
.gp-alert-warning { background: #fff3e0; color: #e65100; }
.gp-alert-error { background: #ffebee; color: #c62828; }

/* ---- RESUME CARD ---- */
.gp-resume-card {
  background: #f8f9fb;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
}

.gp-resume-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.gp-resume-content {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
}

/* ============================================
   RESPONSIVE TABLETTE (≤992px)
   ============================================ */
@media (max-width: 992px) {
  .gp-kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gp-kpi-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 14px;
  }

  .gp-kpi-value { font-size: 14pt; }
  .gp-kpi-label { font-size: 7.5pt; }
  .gp-kpi-card { padding: 8px 10px; gap: 8px; }

  .gp-grid-2,
  .gp-grid-3 {
    grid-template-columns: 1fr;
  }

  .gp-kanban {
    grid-template-columns: 1fr 1fr;
  }

  .gp-poste-info {
    grid-template-columns: 1fr 1fr;
  }

  .gp-pipeline {
    gap: 4px;
  }

  .gp-pipeline-step {
    min-width: 70px;
    padding: 8px 10px;
  }

  .gp-step-label { font-size: 10px; }
  .gp-step-status { font-size: 9px; }

  .gp-projet-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .gp-projet-stats { justify-content: center; }

  .gp-nav-label { display: none; }

  .gp-hide-mobile { display: none; }
}

/* ---- MOBILE CARDS (projets) ---- */
.gp-show-mobile { display: none; }

.gp-projet-card-mobile {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.gp-projet-card-mobile:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gp-projet-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.gp-projet-card-client {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

.gp-projet-card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  margin-bottom: 6px;
}

.gp-projet-card-bottom .fa {
  margin-right: 4px;
}

/* ============================================
   RESPONSIVE MOBILE (≤768px)
   ============================================ */
@media (max-width: 768px) {
  .page_gestion_projet { padding: 0 8px 24px; }

  .gp-hide-mobile { display: none !important; }
  .gp-show-mobile { display: block !important; }

  .gp-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .gp-header h1 { font-size: 15px; }

  .gp-kpi-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .gp-kpi-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 10px;
  }

  .gp-kpi-value { font-size: 10pt; }
  .gp-kpi-label { font-size: 6.5pt; }
  .gp-kpi-card { padding: 4px 6px; gap: 4px; border-radius: 6px; }

  .gp-kanban {
    grid-template-columns: 1fr;
  }

  .gp-pipeline {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .gp-pipeline-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
    min-width: unset;
  }

  .gp-pipeline-step:first-child { border-radius: 8px 8px 0 0; }
  .gp-pipeline-step:last-child { border-radius: 0 0 8px 8px; }

  .gp-step-icon { font-size: 16px; margin-bottom: 0; }
  .gp-step-label { font-size: 12px; }
  .gp-step-status { font-size: 11px; margin-top: 0; margin-left: auto; }

  .gp-pipeline-arrow { display: none; }

  .gp-poste-info {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gp-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gp-tab { padding: 8px 12px; font-size: 12px; min-height: 44px; }

  .gp-table th, .gp-table td { padding: 8px; font-size: 12px; }

  .gp-modal {
    max-width: 100%;
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
    padding: 16px;
  }

  .gp-poste-source { display: none; }

  .gp-subtask-item { padding: 8px 10px; min-height: 44px; }

  .gp-comment-input { flex-direction: column; }
  .gp-comment-form-footer { flex-wrap: wrap; }
}
