/* ORICOMIA V8.3 */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 164px 18px 18px;
  font-family: Arial, Helvetica, sans-serif;
  background: #eef2f6;
  color: #1f2937;
}

.barre-outils-principale,
.barre-outils-secondaire {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.barre-outils-principale {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 180;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 8px 10px;
  gap: 12px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d7dee7;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}


.barre-outils-secondaire {
  position: fixed;
  top: 70px;
  left: 18px;
  right: 18px;
  z-index: 175;
  flex-wrap: nowrap;
  overflow: visible;
  padding: 7px 10px;
  gap: 10px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d7dee7;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  align-items: flex-start;
}

.bloc-projet {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.bloc-projet + .bloc-projet {
  padding-left: 12px;
  border-left: 1px solid rgba(203, 213, 225, 0.95);
}

.bloc-projet label {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.label-projet-compact {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  min-width: 56px;
  line-height: 1.05;
  white-space: normal;
}

.label-projet-compact span {
  display: block;
}

.bloc-projet button,
.bloc-projet select,
.bloc-projet input {
  white-space: nowrap;
}

.bloc-projet input,
.bloc-projet select {
  flex: 0 0 auto;
}

.bloc-projet input,
.bloc-projet select {
  height: 32px;
  border: 1px solid #cfd8e3;
  padding: 0 10px;
  min-width: 156px;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  outline: none;
}

.bloc-projet select {
  min-width: 220px;
}

.bloc-projet input::placeholder {
  color: #94a3b8;
}

.barre-outils-principale .bloc-projet > button {
  flex: 0 0 auto;
}

.barre-outils-principale #projectName {
  min-width: 148px;
}

.barre-outils-principale #projectSelect {
  min-width: 208px;
}


.bloc-projet input.input-readonly {
  background: #f8fafc;
  color: #475569;
  border-style: dashed;
}

.project-name-actions-stack {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  align-self: stretch;
  justify-content: center;
  width: 78px;
  flex: 0 0 78px;
}

.bloc-projet .btn-compact-stack {
  height: 13px;
  min-height: 13px;
  padding: 0 5px;
  font-size: 9px;
  line-height: 1;
  border-width: 1px;
  border-radius: 6px;
}

.bloc-projet .btn-compact-stack:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.project-case-title-input.project-case-title-readonly {
  background: #f8fafc;
  color: #334155;
  cursor: default;
}

.bloc-projet button,
.btn-retour {
  height: 30px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 8px;
  border-radius: 8px;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bloc-projet button:hover,
.btn-retour:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn-retour:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.info-retour,
.info-save {
  font-size: 12px;
  color: #64748b;
}

.bloc-docs-info-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 250px;
}

.bloc-docs-aide {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.btn-doc-aide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 29px;
  padding: 0 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-doc-aide:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.bloc-retour-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  flex: 0 0 auto;
  min-width: 150px;
}

.bloc-retour-stack .btn-retour {
  width: 100%;
}

.bloc-retour-stack .info-retour {
  max-width: 170px;
  line-height: 1.15;
}

.bloc-outils-guidage {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  position: relative;
}

.bloc-aide-deplacements {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: help;
  user-select: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.aide-deplacements-label {
  letter-spacing: 0.03em;
}

.aide-deplacements-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d7dee7;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, visibility 0.16s ease;
  z-index: 120;
  text-align: left;
  white-space: normal;
}

.bloc-aide-deplacements:hover .aide-deplacements-tooltip,
.bloc-aide-deplacements:focus-visible .aide-deplacements-tooltip {
  opacity: 1;
  visibility: visible;
}

.zone-ligne {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 8px 12px 8px;
  border-radius: 14px;
  scroll-behavior: smooth;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.ligne-scene {
  position: relative;
  min-width: max-content;
}

.ligne {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  transform-origin: top left;
  will-change: transform;
}

.bloc-case {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  flex: 0 0 auto;
  position: relative;
}

.case {
  width: 600px;
  min-height: 0;
  border: 1px solid #d5dde6;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: stretch;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.05);
}

.case.case-principale {
  background:
    linear-gradient(
      90deg,
      rgba(100, 116, 139, 0.14) 0,
      rgba(100, 116, 139, 0.14) 12px,
      rgba(255, 255, 255, 0.98) 12px,
      rgba(255, 255, 255, 0.98) 100%
    );
  border: 1px solid #a8b4c3;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.case.case-projet .case-slot.is-system-slot .slot-surface {
  background: #f8fafc;
  border-style: dashed;
}

.case.case-projet .case-slot.is-system-slot .meta-input-date,
.case.case-projet .case-slot.is-system-slot .meta-input-heure,
.case.case-projet .repere-date-label.is-system-readonly {
  color: #64748b;
}

.case.case-sous-tache-informative {
  border-color: #c7d2e3;
}

.case.case-etape {
  background: rgba(255, 255, 255, 0.96);
}

.case.case-en-cours {
  background: #edf6ff;
  border-color: #7aa7d9;
  box-shadow: 0 0 0 2px rgba(122, 167, 217, 0.12);
}

.case.case-active {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22), 0 8px 20px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.case.terminee {
  background: #fff2df;
}

.case.epaisse {
  border-width: 3px;
}

.case.case-depliee {
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.12), 0 3px 14px rgba(15, 23, 42, 0.05);
}

.contenu {
  width: 100%;
  padding: 9px 11px 10px;
  display: flex;
  align-items: stretch;
}

.corps-case {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
}

.texte {
  width: min(70ch, calc(100% - 34px));
  min-width: min(70ch, calc(100% - 34px));
  max-width: min(70ch, calc(100% - 34px));
  height: calc(1.18em * 4);
  min-height: calc(1.18em * 4);
  max-height: calc(1.18em * 4);
  border: none;
  outline: none;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: #0f172a;
  font-family: "Courier New", Courier, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.18;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  padding: 0;
  margin: 0;
  align-self: flex-start;
  padding-right: 0;
}

.case.case-principale .texte {
  color: #1e293b;
}

.meta-zone {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-cible-zone {
  gap: 3px;
}

.meta-ligne,
.case-cible-ligne {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  align-items: stretch;
  gap: 6px;
  min-height: 24px;
}

.case-slot {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.case-slot-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 20px;
}

.repere-date-label {
  font-size: 9px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1;
}

.repere-mini-count {
  min-width: 12px;
  min-height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
  color: #7c3aed;
  font-weight: 800;
  transform: translateY(-1px);
  opacity: 0;
}

.repere-mini-count.has-count {
  opacity: 1;
}

.repere-mini-count.has-count::before {
  content: '·';
  margin-right: 1px;
}

.case-middle-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.meta-date-wrap,
.slot-surface {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  border: 1px solid #d5dde6;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 2px 4px;
}

.case-slot.is-report-target .slot-surface {
  border-color: #c084fc;
  box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.15);
}

.meta-input-date,
.meta-input-heure {
  height: 18px;
  border: none;
  background: transparent;
  font-size: 10px;
  line-height: 1;
  padding: 1px 2px;
  color: #0f172a;
  outline: none;
  min-width: 0;
  border-radius: 4px;
}

.meta-input-date {
  flex: 1;
}

.meta-input-heure {
  width: 42px;
  flex: 0 0 42px;
  text-align: center;
}

.meta-input-date::placeholder,
.meta-input-heure::placeholder {
  color: #94a3b8;
}

.btn-cal {
  width: 18px;
  height: 18px;
  border: 1px solid #d5dde6;
  background: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  border-radius: 5px;
}

.btn-cal:hover {
  background: #f8fafc;
}

.repere-manuel,
.repere-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.repere-manuel {
  cursor: pointer;
  user-select: none;
}

.repere-info {
  background: #f8fafc;
}

.repere-manuel.is-active,
.repere-info.is-active {
  border-color: #94a3b8;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.repere-an.is-active {
  background: rgba(148, 163, 184, 0.18);
}

.repere-pa.is-active {
  background: rgba(191, 219, 254, 0.36);
  border-color: #93c5fd;
}

.repere-re.is-active {
  background: rgba(233, 213, 255, 0.5);
  border-color: #d8b4fe;
}

.repere-rp.is-alert-near {
  background: rgba(122, 63, 84, 0.22);
  border-color: rgba(122, 63, 84, 0.56);
  color: #6b3146;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.42), 0 1px 2px rgba(15, 23, 42, 0.10);
  text-shadow: 0 1px 0 rgba(255,255,255,0.60);
}

.case-slot-fp.is-alert-late .slot-surface {
  border-color: rgba(185, 28, 28, 0.92);
  background: rgba(254, 226, 226, 0.96);
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.20);
}

.case-slot-fp.is-alert-late .repere-date-label,
.case-slot-fp.is-alert-late .repere-mini-count,
.case-slot-fp.is-alert-late .meta-input-date,
.case-slot-fp.is-alert-late .meta-input-heure {
  color: #991b1b;
  font-weight: 800;
}

.case.case-annulee {
  background: rgba(226, 232, 240, 0.96);
  border-color: #94a3b8;
}

.case.case-pausee::after {
  content: '⏱';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 136px;
  color: rgba(59, 130, 246, 0.22);
  text-shadow: 0 1px 0 rgba(255,255,255,0.35);
  pointer-events: none;
}

.case.case-project-paused {
  background: rgba(239, 246, 255, 0.96);
  border-color: rgba(96, 165, 250, 0.52);
}


.actions {
  width: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 3px;
  position: relative;
  z-index: 20;
}

.tooltip-wrap {
  position: relative;
  display: block;
  width: 24px;
  height: 18px;
  overflow: visible;
}

.btn {
  width: 18px;
  height: 16px;
  border: 1px solid #d0d7e2;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border-radius: 5px;
}

.btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.btn.inactif {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}

.tooltip {
  position: absolute;
  top: 50%;
  left: calc(100% + 8px);
  transform: translateY(-50%);
  background: rgba(30, 41, 59, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 30;
  max-width: 260px;
}

.actions .tooltip {
  top: 50%;
  left: auto;
  right: calc(100% + 10px);
  transform: translateY(-50%);
  white-space: normal;
  width: 230px;
  max-width: 230px;
  text-align: left;
  z-index: 60;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.tooltip-wrap:hover .tooltip,
.tooltip-wrap:focus-within .tooltip,
.repere-etape:hover .tooltip,
.repere-etape:focus-within .tooltip,
.repere-projet-etapes:hover .tooltip,
.repere-projet-etapes:focus-within .tooltip,
.repere-sous-taches:hover .tooltip,
.repere-sous-taches:focus-within .tooltip {
  opacity: 1;
}

.repere-etape {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid #a8b4c3;
  background: rgba(255,255,255,0.96);
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: default;
}

.repere-projet-etapes {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid #7aa7d9;
  background: rgba(237, 246, 255, 0.98);
  color: #1e3a5f;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 6;
  cursor: pointer;
  user-select: none;
}


.repere-sous-taches {
  position: absolute;
  top: 31px;
  right: 8px;
  width: 17px;
  height: 17px;
  border: 1px solid #a8b4c3;
  background: rgba(255,255,255,0.96);
  color: #334155;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  cursor: pointer;
  user-select: none;
  border-radius: 5px;
}

.repere-num {
  display: block;
  line-height: 1;
}

.repere-etape .tooltip {
  top: -4px;
  left: auto;
  right: calc(100% + 8px);
  transform: none;
}

.repere-projet-etapes .tooltip {
  top: -2px;
  left: auto;
  right: calc(100% + 8px);
  transform: none;
  white-space: normal;
  width: 210px;
  max-width: 210px;
  text-align: left;
}

.repere-sous-taches .tooltip {
  top: -2px;
  left: auto;
  right: calc(100% + 8px);
  transform: none;
  white-space: normal;
  width: 210px;
  max-width: 210px;
  text-align: left;
}

.message-zone {
  min-height: 24px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #b42318;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(254, 242, 242, 0.9);
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.message-zone.vide {
  visibility: hidden;
  padding: 0;
  border: none;
  background: transparent;
}

.aide {
  margin-top: 8px;
  font-size: 13px;
  color: #64748b;
}

.overlay-calendrier {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-confirmation {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10020;
}

.overlay-calendrier.visible,
.overlay-confirmation.visible {
  display: flex;
}

.overlay-fond,
.confirm-fond {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.calendrier-modal {
  position: relative;
  width: 360px;
  min-height: 360px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid #d7dee7;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  padding: 14px;
  z-index: 1;
  border-radius: 14px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

.cal-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  text-transform: capitalize;
}

.cal-nav,
.cal-close,
.cal-aujourdhui,
.confirm-btn {
  border: 1px solid #d0d7e2;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 5px 9px;
  border-radius: 8px;
}

.cal-nav:hover,
.cal-close:hover,
.cal-aujourdhui:hover,
.confirm-btn:hover {
  background: #f8fafc;
}

.cal-semaine,
.cal-jours {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-semaine {
  margin-bottom: 6px;
}

.cal-jour-nom {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 0;
}

.cal-jour {
  height: 38px;
  border: 1px solid #d5dde6;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  border-radius: 7px;
}

.cal-jour:hover {
  background: #f8fafc;
}

.cal-jour.vide {
  visibility: hidden;
  pointer-events: none;
}

.cal-jour.selectionne {
  border: 2px solid #4f6b8a;
  font-weight: 700;
}

.cal-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.cal-note {
  margin-top: 10px;
  font-size: 12px;
  color: #64748b;
}

.confirm-modal {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid #d7dee7;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  padding: 18px;
  z-index: 1;
  border-radius: 14px;
}

.confirm-titre {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #1f2937;
}

.confirm-texte {
  font-size: 15px;
  line-height: 1.4;
  color: #334155;
  margin-bottom: 16px;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-btn.primaire {
  font-weight: 700;
}


.overlay-corbeille {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.overlay-corbeille.visible {
  display: flex;
}

.trash-fond {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.trash-modal {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid #d7dee7;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
  padding: 14px;
  z-index: 1;
  border-radius: 14px;
}

.trash-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.trash-title {
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.trash-close,
.trash-btn {
  border: 1px solid #d0d7e2;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 8px;
}

.trash-close:hover,
.trash-btn:hover:not(:disabled) {
  background: #f8fafc;
}

.trash-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f8fafc;
}

.trash-btn.danger {
  border-color: #e2b7b7;
}

.trash-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trash-body label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.trash-body select {
  height: 36px;
  border: 1px solid #cfd8e3;
  padding: 0 10px;
  width: 100%;
  background: #fff;
  color: #0f172a;
  border-radius: 8px;
  outline: none;
}

.trash-info {
  min-height: 20px;
  font-size: 12px;
  color: #64748b;
}

.trash-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}


/* ORICOMIA V8.3 - Recherches projet */
.bloc-recherches {
  display:inline-flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap:nowrap;
  position:relative;
}
.recherches-menu-wrap {
  position:relative;
  flex:0 0 auto;
  padding-top: 1px;
}
.btn-search-menu {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 2px solid #94a3b8;
  background: rgba(255, 255, 255, 0.96);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.btn-search-menu:hover,
.btn-search-menu[aria-expanded="true"] { background:#f8fafc; border-color:#64748b; }
.search-mode-menu {
  position:absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  display:flex;
  flex-direction:column;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #d7dee7;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 12px 30px rgba(15,23,42,0.16);
  z-index: 180;
}
.search-mode-menu[hidden] { display:none; }
.search-mode-option {
  padding: 8px 10px;
  border: 1px solid #d7dee7;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.search-mode-option:hover,
.search-mode-option.is-active { background:#eef6ff; border-color:#93c5fd; color:#1d4ed8; }
.recherches-panel {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.recherches-ligne {
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.recherches-ligne-haute {
  min-height: 32px;
}
.recherches-ligne-basse {
  padding-left: 2px;
}
.search-mode-badge {
  display:inline-flex; align-items:center; min-height:32px; padding:0 10px;
  border-radius:999px; border:1px solid #cbd5e1; background:rgba(255,255,255,0.92);
  color:#475467; font-size:12px; font-weight:700; white-space:nowrap;
}
.recherches-panel input {
  width:220px;
  min-width:180px;
  padding:6px 10px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  font-size:13px;
  background:#fff;
}
.recherches-panel button {
  padding:6px 10px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#fff;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.recherches-panel button:hover { background:#f8fafc; }
.recherches-panel button:disabled { opacity:0.45; cursor:default; }
.search-result-count {
  font-size:12px;
  font-weight:700;
  color:#475467;
  min-width:120px;
  white-space:nowrap;
}
.case.case-recherche-match { box-shadow:0 0 0 2px rgba(59,130,246,0.24); }
.case.case-recherche-active { box-shadow:0 0 0 3px rgba(245,158,11,0.38); }

.repere-date-label {
  cursor: pointer;
  user-select: none;
}

.repere-date-label.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.repere-date-label.is-report-locked {
  color: #6d28d9;
}

.case-slot.is-report-locked .slot-surface {
  border-color: rgba(124, 58, 237, 0.28);
  background: rgba(245, 243, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.06);
}

.champ-chrono-erreur {
  background: rgba(254, 242, 242, 0.92);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.3);
}

.champ-chrono-warning {
  background: rgba(255, 247, 237, 0.96);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.26);
}

.meta-erreur-chrono {
  min-height: 0;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  border-radius: 8px;
  padding: 0;
  transition: padding 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.meta-erreur-chrono.is-visible {
  padding: 6px 8px;
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.92);
}

.meta-erreur-chrono.is-error {
  color: #b42318;
}

.meta-erreur-chrono.is-warning {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.18);
  background: rgba(255, 247, 237, 0.96);
}

.case-annulee .repere-manuel:not(.repere-an),
.case-annulee .repere-date-label,
.case-pausee .repere-manuel:not(.repere-pa),
.case-pausee .repere-date-label,
.case-project-paused .repere-date-label,
.case-project-paused .repere-manuel:not(.repere-pa) {
  opacity: 0.6;
}


.case.case-projet.case-project-cancelled-collapsed::before {
  content: 'ANNULÉ';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  font-size: 88px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(71, 85, 105, 0.10);
  transform: rotate(-14deg);
  text-transform: uppercase;
  pointer-events: none;
  z-index: 6;
}

.case.case-projet.case-project-cancelled-collapsed .project-case-layout,
.case.case-projet.case-project-cancelled-collapsed .actions,
.case.case-projet.case-project-cancelled-collapsed .repere-identite-projet,
.case.case-projet.case-project-cancelled-collapsed .repere-projet-etapes,
.case.case-projet.case-project-cancelled-collapsed .repere-sous-taches {
  position: relative;
  z-index: 2;
}

.case.case-projet {
  --project-case-badge-left: 30px;
  --project-case-badge-right: 46px;
  width: 688px;
  min-height: 214px;
  background:
    linear-gradient(
      90deg,
      rgba(37, 99, 235, 0.10) 0,
      rgba(37, 99, 235, 0.10) 16px,
      rgba(255, 255, 255, 0.99) 16px,
      rgba(255, 255, 255, 0.99) 100%
    );
  border-color: #8eb0dd;
}

.case.case-projet .contenu {
  padding: 14px 10px 8px;
}

.texte-projet-cache {
  display: none;
}

.project-case-layout {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.normal-case-counter-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 12px;
  margin-bottom: 2px;
  padding-right: 34px;
}

.normal-case-counter {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  line-height: 1;
  white-space: nowrap;
}

.project-case-field {
  border: 1px solid #d6e0ec;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.96);
  padding: 6px 8px 7px;
}

.project-case-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.project-case-field-title .project-case-field-header,
.project-case-field-summary .project-case-field-header {
  padding-left: var(--project-case-badge-left);
  padding-right: var(--project-case-badge-right);
}

.project-case-field-label {
  font-size: 10px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-case-counter {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
}

.project-case-title-input,
.project-case-summary-input {
  width: 100%;
  border: 1px solid #d4dde7;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.16;
  padding: 4px 7px;
  resize: none;
  outline: none;
}

.project-case-title-input {
  min-height: 28px;
  max-height: 28px;
  overflow: hidden;
  white-space: nowrap;
}

.project-case-summary-input {
  min-height: calc(1.16em * 2 + 11px);
  max-height: calc(1.16em * 2 + 11px);
  overflow: hidden;
}

.project-case-title-input:focus,
.project-case-summary-input:focus {
  border-color: #7aa7d9;
  box-shadow: 0 0 0 2px rgba(122, 167, 217, 0.12);
}

.project-case-system {
  border: 1px dashed #c6d3e1;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.92);
  padding: 6px 8px;
  min-height: 44px;
  max-height: 72px;
  overflow: hidden;
  transition: min-height 0.16s ease, max-height 0.16s ease;
}

.project-case-system.project-case-system-expanded {
  min-height: 58px;
  max-height: 108px;
}

.project-case-system-text {
  margin: 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.22;
  white-space: pre-line;
}

.repere-identite-projet {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #7aa7d9;
  background: rgba(239, 246, 255, 0.98);
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 7;
  cursor: default;
  user-select: none;
}

.repere-identite-projet .tooltip {
  top: -2px;
  left: calc(100% + 8px);
  right: auto;
  transform: none;
  white-space: normal;
  width: 280px;
  max-width: 280px;
  text-align: left;
}

.repere-identite-projet:hover .tooltip,
.repere-identite-projet:focus-within .tooltip {
  opacity: 1;
}

.case.case-projet .repere-projet-etapes {
  top: 8px;
}

.barre-outils-secondaire #infoSave {
  flex: 0 0 auto;
  white-space: normal;
  line-height: 1.15;
  max-width: 310px;
}

.barre-outils-secondaire .bloc-recherches,
.barre-outils-secondaire .bloc-aide-deplacements {
  flex: 0 0 auto;
}
