.alignright {
  text-align: right;
}

.aligncenter {
  text-align: center;
}

.alignleft {
  text-align: left;
}

#edit-field-institucion-rubro--wrapper #edit-field-institucion-rubro .form-item {
  display: inline-block;
  width: 24%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  padding: 0.35rem 0.5rem !important;
}

.form-item {
  margin-bottom: 0.5rem !important;
}

.field-multiple-table {
  border: 1px solid lightgray;
}

.field-multiple-table thead tr th {
  background-color: darkgray;
}

.card-custom .form-wrapper {
  padding: 0px 1rem;
}

.card-custom {

  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
  margin-bottom: 1rem;
}

.padding-10 {
  padding: 10px;
}

.padding-20 {
  padding: 20px;
}

.padding-30 {
  padding: 30px;
}

.padding-40 {
  padding: 40px;
}

.cifras-vcm {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 10px;
}

.column {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.column-header {
  padding: 10px 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.column-content {
  padding: 20px;
  flex-grow: 1;

}

.column-not-started .column-header {
  background-color: #4a5568;
}

.column-in-progress .column-header {
  background-color: #333a46;
}

.column-completed .column-header {
  background-color: #242931;
}

.link-icon-label {
  display: block;
  font-size: 1.2em;
  font-weight: 600;
  margin-top: 10px;
}

a {
  text-decoration: none !important;
}

.tabledrag-toggle-weight-wrapper {
  display: none;
}

.tabledrag-toggle-weight {
  font-size: 0.8rem !important;
}

.card-custom .card-header {
  padding: .5rem 1rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, .03);
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}


/* Separadores para fieldsets */
.fieldset-separator {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #fafafa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fieldset-separator .fieldset__legend {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2c3e50;
  padding: 0 1rem;
  margin-left: -1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  padding: 0.5rem 1.5rem;
}

/* Separador con línea decorativa */
.fieldset-line-separator {
  border: none;
  border-top: 3px solid #3498db;
  position: relative;
  margin: 3rem 0;
  padding-top: 2rem;
}

.fieldset-line-separator .fieldset__legend {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: white;
  padding: 0 1rem;
  font-weight: bold;
  color: #3498db;
  font-size: 1.1rem;
}

/* Separador con icono */
.fieldset-icon-separator {
  border: 1px solid #ddd;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 2rem;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.fieldset-icon-separator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.fieldset-icon-separator .fieldset__legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
  font-size: 1.2rem;
}

/* Separador moderno con sombra */
.fieldset-modern-separator {
  border: none;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #4f46e5;
}

.fieldset-modern-separator .fieldset__legend {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  width: 100%;
}

/* Separador tipo tarjeta */
.fieldset-card-separator {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin: 2rem 0;
  padding: 0;
  overflow: hidden;
  background: white;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.fieldset-card-separator .fieldset__legend {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  margin: 0;
  width: 100%;
  font-size: 1.2rem;
  font-weight: 600;
}

.fieldset-card-separator .fieldset__wrapper {
  padding: 1.5rem;
}

/* Separador minimalista */
.fieldset-minimal-separator {
  border: none;
  margin: 2rem 0;
  padding: 0;
}

.fieldset-minimal-separator .fieldset__legend {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #3b82f6;
  width: 100%;
}

/* Separador con patrón de fondo */
.fieldset-pattern-separator {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin: 2rem 0;
  padding: 2rem;
  background:
    linear-gradient(135deg, #f8fafc 25%, transparent 25%) -10px 0,
    linear-gradient(225deg, #f8fafc 25%, transparent 25%) -10px 0,
    linear-gradient(315deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, #f8fafc 25%, transparent 25%);
  background-size: 20px 20px;
  background-color: #ffffff;
}

.fieldset-pattern-separator .fieldset__legend {
  background: white;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Mejoras generales para formularios Drupal */
.form-item {
  margin-bottom: 1.5rem;
}

.form-item label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Transiciones suaves para los fieldsets */
.fieldset-separator,
.fieldset-line-separator,
.fieldset-icon-separator,
.fieldset-modern-separator,
.fieldset-card-separator,
.fieldset-minimal-separator,
.fieldset-pattern-separator {
  transition: all 0.3s ease;
}

.fieldset-separator:hover,
.fieldset-line-separator:hover,
.fieldset-icon-separator:hover,
.fieldset-modern-separator:hover,
.fieldset-card-separator:hover,
.fieldset-minimal-separator:hover,
.fieldset-pattern-separator:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1;
}

.flex-2 {
  flex: 2;
}

.flex-3 {
  flex: 3;
}

.flex-4 {
  flex: 4;
}

.flex-5 {
  flex: 5;
}

.flex-6 {
  flex: 6;
}

.padding-5 {
  padding: 5px;
}

.padding-10 {
  padding: 10px;
}

.padding-2 {
  padding: 2px;
}

.padding-5-10 {
  padding: 5px 10px;
}

.padding-2-4 {
  padding: 2px 4px;
}


.field--type-link .description {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {

  .fieldset-separator,
  .fieldset-line-separator,
  .fieldset-icon-separator,
  .fieldset-modern-separator,
  .fieldset-card-separator,
  .fieldset-minimal-separator,
  .fieldset-pattern-separator {
    margin: 1rem 0;
    padding: 1rem;
  }

  .fieldset-card-separator .fieldset__wrapper {
    padding: 1rem;
  }
}

/* Alertas Iniciativas */
.alert-rechazo td {
  background-color: #ffebee;
}

.alert-edicion td {
  background-color: #fffde7;
}

.alert-borrador td {
  background-color: #f5f5f5;
}

/* Alertas Evaluacion y Terminada */
.alert-evaluacion td {
  background-color: #e3f2fd;
}

.alert-terminada td {
  background-color: #e8f5e9;
}

/* Floating Completion Pie Chart */
#nexo-vcm-completion-chart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(#4caf50 0%, #e0e0e0 0);
  /* Initial state */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: transform 0.3s ease;
  cursor: pointer;
}

#nexo-vcm-completion-chart:hover {
  transform: scale(1.1);
}

#nexo-vcm-completion-chart::before {
  content: "";
  position: absolute;
  width: 80px;
  /* Cutout size for donut effect */
  height: 80px;
  background-color: white;
  border-radius: 50%;
}

#nexo-vcm-completion-chart .percentage-text {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}