@charset "UTF-8";
/* CSS Document */


    * {
      box-sizing: border-box;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    body {
      margin: 0;
      background: #f4f6f8;
      color: #222;
    }


	.view {
		display: block;
	}
	.no-view {
		display: none;
	}

  @media screen and (max-width: 768px) {
	  .view {
		  display: none;
	  }
	  .no-view {
		  display: block;
	  }
	}



    .pg-flow {
      display: flex;
      flex-direction: column;
      height: 100vh;
    }

    header {
      padding: 10px 20px;
      background: #eee;
      color: #222;
      font-weight: 600;
      font-size: 15px;
      letter-spacing: .03em;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 1px 4px rgba(0,0,0,.1);
    }

    header span.small {
      font-weight: 400;
      font-size: 12px;
      opacity: .8;
    }
	  
	  .header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-title {
  font-weight: 600;
}

.project-summary {
  font-size: 13px;
  font-weight: 500;
  max-width: 420px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


    .layout {
      flex: 1;
      display: grid;
      grid-template-columns: 220px 1fr 280px;
      gap: 0;
      min-height: 0;
    }

    aside.palette {
      border-right: 1px solid #dde2e7;
      padding: 12px 10px;
      background: #ffffff;
      display: flex;
      flex-direction: column;
    }

    aside.palette h2 {
      font-size: 13px;
      margin: 0 0 8px;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #666;
    }

    .palette button {
      width: 100%;
      padding: 6px 8px;
      margin-bottom: 6px;
      border-radius: 999px;
      border: 1px solid #d0d5db;
      background: #f9fafb;
      font-size: 12px;
      text-align: left;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .palette button span.icon {
      display: inline-block;
      width: 14px;
      text-align: center;
      font-weight: 700;
    }

    #add-phase-btn {
      margin-top: 4px;
      background: #cacaca;
      border-color: #999;
      justify-content: left;
      text-align: left;
    }

    .palette p {
      font-size:11px;
      margin-top:10px;
      color:#999;
    }
	  
	  .palette button.active {
  background: #e4e7ec;
  border-color: #eee;
}
	  /* Líneas de conexión con flecha */
.link-line {
  stroke: #555;
  stroke-width: 1.4;
  fill: none;
  cursor: pointer; /* manita al pasar sobre la línea */
}

.link-line.selected {
  stroke-width: 2;
}

.link-label {
  font-size: 11px;
  fill: #000;
  pointer-events: none;
}


	  

    /* Canvas + tabs */
    .canvas-wrapper {
      position: relative;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }

    .phase-tabs {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-bottom: 1px solid #e2e5ea;
      background: #fafbfc;
    }

    .phase-tab {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 12px;
      cursor: pointer;
      background: transparent;
      color: #666;
      display:flex;
      align-items:center;
      gap:4px;
    }

    .phase-tab.active {
      background: #cacaca;
      border-color: #e2e5ea;
      color: #222;
      font-weight: 600;
    }

    .phase-tab .phase-index {
      font-weight:600;
    }

    .phase-tab .phase-close {
      margin-left:4px;
      font-size:11px;
      line-height:1;
      cursor:pointer;
      opacity:.7;
    }

    .phase-tab .phase-close:hover {
      opacity:1;
    }

    .diagram-scroll {
      flex: 1;
      overflow: auto;
      background: #ffffff;
      min-width: 0;
    }

#diagram {
  background: #ffffff;
  width: 100%;
  height: 1500px; /* espacio hacia abajo */
}

.layout {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 250px;
  gap: 0;
  min-height: 0;
}



    aside.inspector {
      border-left: 1px solid #dde2e7;
      background: #ffffff;
      padding: 12px 14px;
      display: flex;
      flex-direction: column;
      font-size: 13px;
    }

    aside.inspector h2 {
      font-size: 13px;
      margin: 0 0 4px;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #666;
    }

    .inspector .empty {
      margin-top: 12px;
      font-size: 12px;
      color: #999;
    }

    .field-group {
      margin: 8px 0;
    }

    .field-group label {
      display: block;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .06em;
      color: #ACACAC;
      margin-bottom: 3px;
    }

    .field-group input,
    .field-group select,
    .field-group textarea {
      width: 100%;
      padding: 6px 7px;
      border-radius: 8px;
      border: 1px solid #d0d5db;
      font-size: 12px;
      outline: none;
    }

    .field-group textarea {
      resize: vertical;
      min-height: 50px;
    }

    .prop-readonly {
      width: 100%;
      padding: 6px 7px;
      border-radius: 8px;
      border: 1px solid #d0d5db;
      background: #f5f6f8;
      font-size: 12px;
    }

	#prop-desc, #prop-label, #prop-responsable, #prop-software, #prop-concepts, #prop-hours-add {
		width: 90%;
		margin: 5px 0px;
		padding: 4px 6px;
		border-radius: 8px;
		border: 1px solid #d0d5db;
		font-size: 11px;
	}

	 #prop-diagram-summary {
		 color:#858585;
	}


    .btn-small {
      margin-top: 4px;
      padding: 4px 8px;
      font-size: 11px;
      border-radius: 999px;
      border: 1px solid #d0d5db;
      background: #f9fafb;
      cursor: pointer;
    }

    .btn-small:hover {
      background: #eef0f4;
    }

    .hour-row {
      display: flex;
      gap: 4px;
      margin-bottom: 4px;
    }

    .hour-row select,
    .hour-row input {
		margin: 5px 0px;
      padding: 4px 6px;
      border-radius: 8px;
      border: 1px solid #d0d5db;
      font-size: 11px;
    }

    .hour-row select {
      flex: 1 1 auto;
    }

    .hour-row input {
      flex: 0 0 70px;
		width: 10%;
    }

    .hour-row button {
      flex: 0 0 22px;
      padding: 0;
      border-radius: 50%;
      border: 1px solid #ffffff;
      font-size: 11px;
      line-height: 1;
      background: #ffffff;
      cursor: pointer;
    }

    .hour-row button:hover {
      background: #ffe5b0;
    }

    .prop-days-controls {
      display: flex;
      gap: 4px;
      margin-bottom: 4px;
    }

    .prop-days-controls input[type="date"] {
      flex: 1;
      padding: 4px 6px;
      border-radius: 8px;
      border: 1px solid #d0d5db;
      font-size: 12px;
    }

    .prop-days-list {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }

    .day-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 6px;
      border-radius: 999px;
      border: 1px solid #d0d5db;
      font-size: 11px;
      background: #f9fafb;
    }

    .day-chip button {
      border: none;
      background: transparent;
      cursor: pointer;
      font-size: 11px;
      padding: 0;
      line-height: 1;
    }

    .meta {
      margin-top: auto;
      font-size: 11px;
      color: #999;
      border-top: 1px dashed #e0e4ea;
      padding-top: 6px;
    }

    /* Nodos */
    .node {
      cursor: pointer;
      transition: filter .15s ease, transform .1s ease;
    }

    .node:hover {
      filter: brightness(0.95);
    }

    .node.selected {
      filter: drop-shadow(0 0 0 2px #0077ff88);
    }

    .node-label {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .04em;
    }


	  
	.days-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.day-btn {
  min-width: 28px;
  padding: 4px 0;
  border-radius: 6px;
  border: 1px solid #d0d5db;
  font-size: 11px;
  text-align: center;
  background: #f9fafb;
}

.day-btn.active {
  background: #444444;
  color: #ffffff;
  border-color: #222222;
}

/* Estado normal, por si quieres asegurarlo */
.node rect,
.node path,
.node polygon,
.node circle,
.node ellipse {
  transition: stroke-width 0.15s ease, stroke 0.15s ease, fill 0.15s ease;
}

/* Nodo seleccionado (solo gris, pero más “firme”) */
.node.selected rect,
.node.selected path,
.node.selected polygon,
.node.selected circle,
.node.selected ellipse {
  fill: #ACACAC;      /* un poco más claro */
  stroke: #111111;    /* borde más oscuro */
  stroke-width: 2;    /* un poquito más grueso */
}

/* Texto del nodo seleccionado */
.node.selected .node-label {
  font-weight: 600;
}
	  
	  hr.divider {
  border: none;
  border-top: 1px dashed #e0e4ea;
  margin: 8px 0;
}	  	
	  
	  
	  /* Franja amarilla (ajusta al estilo que ya tenías) */
.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: #f7e58b; /* ya usabas algo similar */
  border-bottom: 1px solid #ccc;
  font-size: 13px;
}

.project-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-name {
  font-weight: 600;
}

.project-meta {
  font-size: 11px;
  text-transform: uppercase;
}

.project-goal {
  font-size: 11px;
  font-style: italic;
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-header {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #d0d5db;
  background: #f9fafb;
  font-size: 11px;
  cursor: pointer;
}

.btn-header:hover {
  background: #eef0f4;
}

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Para que al imprimir salga solo el diagrama */
@media print {
  aside.palette,
  aside.inspector,
  .project-header-actions,
  .project-info-modal {
    display: none !important;
  }

  .diagram-scroll {
    overflow: visible;
  }

  body, html {
    background: #ffffff;
  }

  #diagram {
    height: auto;
  }
}












/* Botón para editar datos, en gris */
.btn-edit-project {
	margin: 5px 0px;
	padding: 4px 6px;
	border-radius: 8px;
	border: 1px solid #d0d5db;
	font-size: 11px;
	cursor: pointer;
}

.btn-edit-project:hover {
  background: #e0e0e0;
}

/* Modal: pantalla completa, fondo gris translúcido */
.project-info-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.project-info-dialog {
  background: #fafafa;
  border-radius: 6px;
  padding: 16px 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-size: 13px;
}

.project-info-dialog h2 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 16px;
}

.project-info-note {
  margin: 0 0 12px;
  font-size: 11px;
  color: #666;
}

#project-info-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  text-transform: uppercase;
}

#project-info-form input,
#project-info-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 2px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #bbb;
  font-size: 12px;
}

.project-info-actions {
  margin-top: 10px;
  text-align: right;
}

.btn-primary {
  border: 1px solid #555;
  background: #ddd;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.btn-primary:hover {
  background: #ccc;
}

/* Clase para ocultar el modal cuando ya se llenó */
.project-info-modal.hidden {
  display: none;
}

.project-info-modal-buttons {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-secondary {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #d0d5db;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 14px;
}

.btn-secondary:hover {
  background: #ececec;
}

.btn-file {
  position: relative;
  overflow: hidden;
}

.btn-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}






/* Franja amarilla de datos del proyecto */
.project-header {
  padding: 10px 20px;
  background: #eee;
  color: #222;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Contenedor de los textos (equivalente a .header-main original) */
.project-header-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-name {
  font-weight: 600;
}

.project-meta {
  font-size: 12px;
  color: #444;
}

.project-goal {
  font-size: 12px;
  font-weight: 400;
}


/* Botón de conectar nodos cuando está activo */
#connect-mode-btn {
  background: #CACACA;
  border-color: #999;
	color:#222;
}

#connect-mode-btn.active {
  background: #333;
  border-color: #999;
	color:#eee;
}






.row {
  margin-left: -15px;
  margin-right: -15px;
}
.row:before, .row:after {
  content: " ";
  display: table;
}
.row:after {
  clear: both;
}

@media (min-width: 992px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    float: left;
  }

  .col-md-1 {
    width: 8.33333%;
  }

  .col-md-2 {
    width: 16.66667%;
  }

  .col-md-3 {
    width: 25%;
  }

  .col-md-4 {
    width: 33.33333%;
  }

  .col-md-5 {
    width: 41.66667%;
  }

  .col-md-6 {
    width: 50%;
  }

  .col-md-7 {
    width: 58.33333%;
  }

  .col-md-8 {
    width: 66.66667%;
  }

  .col-md-9 {
    width: 75%;
  }

  .col-md-10 {
    width: 83.33333%;
  }

  .col-md-11 {
    width: 91.66667%;
  }

  .col-md-12 {
    width: 100%;
  }
}
