/* ----------------- */
/*   BASE Y LAYOUT   */
/* ----------------- */

.profile-form,
#block-perte-content {
  /*background: var(--ds-secondary-background-color);*/
  background: var(--ds-secondary-background-color);
  border-radius: 16px;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  position: relative;
  margin: 0 auto 2rem auto;
}

#block-perte-content .content {
  color: var(--ds-text-color);
  width: 100%;
}

.node-add #block-perte-content,
#block-perte-content .node-form,
#block-perte-content .user-form,
.edit-user .nav-borders,
.edit-user #block-perte-content,
.edit-user #block-perte-help--2 {
  max-width: 800px;
}

#block-perte-content>.content:has(.node-form) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.paragraph--disabled {
  filter: grayscale(100%);
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.paragraph--disabled a {
  pointer-events: none;
  text-decoration: none;
}


/* ----------------- */
/*   FORMS E INPUTS  */
/* ----------------- */

#user-login-form {
  padding: 20px 0 0 0;
}

#user-login-form #edit-actions {
  padding: 15px 0 0 0;
}

.js-form-item .form-control,
.js-form-item .datatable-in,
.js-form-item .form-select {
  color: var(--ds-text-color);
}

#block-perte-content .form-select:disabled,
#block-perte-content .datatable-selector:disabled {
  background: var(--ds-disabled-background-color);
  color: var(--ds-disabled-color);
  cursor: not-allowed;
}

/* --------------------- */
/*  BOTONES Y ACCIONES   */
/* --------------------- */

#block-perte-content .node-form #edit-actions,
#block-perte-content .user-form #edit-actions,
#block-perte-content #edit-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  align-self: center;
}

#block-perte-content .node-form #edit-submit,
#block-perte-content .user-form #edit-submit,
.vbo-view-form .button.js-form-submit.form-submit,
.js-form-wrapper input.field-add-more-submit,
.form-actions .button.form-submit,
#certificate-login {
  border: none;
  width: auto;
  min-width: 180px;
  background-image: linear-gradient(to left, var(--ds-perte-p3) 40%, var(--ds-perte-p4) 100%);
  background-size: 200%;
  transition: 0.3s ease;
  border-radius: 20px;
  color: white;
  padding: 10px 25px;
  font-weight: 600;
}

#block-perte-content .node-form #edit-submit:hover,
#block-perte-content .user-form #edit-submit:hover,
.vbo-view-form .button.js-form-submit.form-submit:hover,
.js-form-wrapper input.field-add-more-submit:hover,
.form-actions .button.form-submit:hover,
#certificate-login:hover {
  background-position: 100% 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#block-perte-content .node-form .button.button--danger,
#block-perte-content .user-form .button.button--danger {
  border: none;
  background-image: linear-gradient(to left, #c00 40%, #f30 100%);
  background-size: 200%;
  transition: 0.3s ease;
  border-radius: 20px;
  color: white;
  margin-left: 20px;
  padding: 10px 25px;
  font-weight: 600;
}

#block-perte-content .node-form .button.button--danger:hover,
#block-perte-content .user-form .button.button--danger:hover {
  background-position: 100% 0;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(200, 0, 0, 0.2);
}

/* ------------- */
/*   PESTAÑAS    */
/* ------------- */

.field-group-tabs-wrapper,
div.horizontal-tabs {
  width: 100%;
  border: none;
}

.horizontal-tabs .horizontal-tabs-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  border: 0;
  background-image: linear-gradient(to left, #555 40%, #888 100%);
  gap: 0.75rem;
  padding: 12px;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.horizontal-tabs .horizontal-tabs-list .horizontal-tab-button {
  width: auto !important;
  text-align: center;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
}

.horizontal-tabs ul.horizontal-tabs-list li a {
  background: none;
  color: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.horizontal-tabs ul.horizontal-tabs-list li.selected a,
.horizontal-tabs ul.horizontal-tabs-list li a:hover {
  background: var(--ds-perte-p4);
  color: white;
  text-decoration: none;
}

.horizontal-tabs ul.horizontal-tabs-list li a strong {
  font-weight: 500;
}

/* ----------------- */
/*  TABLAS Y VISTAS  */
/* ----------------- */

#block-perte-content .view-content.row thead th {
  background: var(--ds-background-color);
  padding: 0.75rem;
  border-bottom: 2px solid var(--ds-border-color);
}

#block-perte-content .view-content.row tbody tr td {
  color: var(--ds-text-color);
  padding: 0 0.75rem;
}

#block-perte-content .view-content.row tbody tr td a {
  background-color: var(--ds-perte-p7);
  color: var(--ds-text-on-light-color);
  font-size: 0.85em;
  padding: 4px 8px;
  border-radius: 20px;
  display: flex;
}

#block-perte-content .view-content.row tbody tr td .btn a {
  background-color: transparent;
  color: var(--ds-text-color);
  font-size: 1em;
  border: none;
}

#block-perte-content .view-content.row tbody tr td .btn a:hover {
  background-color: transparent;
  color: var(--ds-text-color);
}

#block-perte-content .view-content.row tbody tr td a:hover {
  background-color: var(--ds-perte-p4);
  color: var(--ds-text-on-dark-color);
  text-decoration: none;
}

#block-perte-content .view-content.row tbody tr td a:before {}

.view-documentos .view-header,
.view-expedientes .view-header,
.view-denuncias .view-header,
.view-instances .view-header,
.view-comuneros .view-header {
  text-align: right;
  margin-bottom: 1rem;
  margin-top: -1rem;
}

.view-documentos .view-header a,
.view-expedientes .view-header a,
.view-denuncias .view-header a,
.view-instances .view-header a,
.view-comuneros .view-header a {
  background: #25ad76;
  border-radius: 20px;
  color: white;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
  font-weight: 600;
  margin-bottom: 1rem;
}

.view-documentos .view-header a:hover,
.view-expedientes .view-header a:hover,
.view-denuncias .view-header a:hover,
.view-instances .view-header a:hover,
.view-comuneros .view-header a:hover {
  background: #1d875c;
  text-decoration: none;
}

.view-comuneros .views-field-views-conditional-field-1 a {
  display: none;
}

.view-comuneros .views-field-views-conditional-field-1 a.badge {
  display: block;
}


.view-documentos .view-header .alert,
.view-expedientes .view-header .alert,
.view-denuncias .view-header .alert,
.view-instances .view-header .alert,
.view-comuneros .view-header .alert {
  text-align: center;
  font-size: .9em;
}

.view-documentos td.views-field-views-conditional-field-2 a,
.view-expedientes td.views-field-views-conditional-field a,
.view-denuncias td.views-field-views-conditional-field a,
.view-comuneros td.views-field-views-conditional-field a,
.view-instances td.views-field-views-conditional-field a {
  background: var(--ds-blue);
  border-radius: 20px;
  color: white;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  transition: 0.2s ease;
}

.view-documentos td.views-field-views-conditional-field-2 a:hover,
.view-expedientes td.views-field-views-conditional-field a:hover,
.view-denuncias td.views-field-views-conditional-field a:hover,
.view-comuneros td.views-field-views-conditional-field a:hover,
.view-instances td.views-field-views-conditional-field a:hover {
  background: var(--ds-perte-p4);
  text-decoration: none;
}

.view-documentos td.views-field-views-conditional-field-2 a.generar,
.view-expedientes td.views-field-views-conditional-field a.generar,
.view-denuncias td.views-field-views-conditional-field a.generar,
.view-comuneros td.views-field-views-conditional-field a.generar,
.view-instances td.views-field-views-conditional-field a.generar {
  background: #25ad76;
}

.view-documentos td.views-field-views-conditional-field-2 a.generar:hover,
.view-expedientes td.views-field-views-conditional-field a.generar:hover,
.view-denuncias td.views-field-views-conditional-field a.generar:hover,
.view-comuneros td.views-field-views-conditional-field a.generar:hover,
.view-instances td.views-field-views-conditional-field a.generar:hover {
  background: #1d875c;
}

.view-comuneros .activo i {
  color: #25ad76;
}

.view-comuneros .bloqueado i {
  color: #ff3d3d;
}

/* ----------------- */
/*      OTROS       */
/* ----------------- */

#block-perte-help--2,
#layoutSidenav_content .region-content .nav-borders {
  background: linear-gradient(90deg, var(--ds-secondary-background-color), var(--ds-tertiary-background-color));
  border-radius: 16px;
  width: 100%;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  margin: 0 auto 2rem auto;
}

#panelToggleIcon {
  color: var(--ds-perte-p3);
}