/**
 * @file
 * Legibilidad del listado /projects para usuarios con presbicia.
 *
 * Tipografía amplia, filas más densas y reparto de columnas que evita huecos
 * verticales cuando PO / Number contiene textos largos.
 */

/* /projects: un solo contenedor azul (table-card); sin caja interior del grid-wrap. */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Contenedor scrollable (table-wrap / dual-scroll): sangría lateral + sin barra horizontal. */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card > .certlink-portal-grid-wrap.table-wrap {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll__track--main,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card > .certlink-portal-grid-wrap.table-wrap {
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
  padding-right: 0 !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll__track--top {
  display: none !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table th,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table td {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Sangría en celdas de borde (mismo fondo de fila que el resto de la tabla). */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th:first-child,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td:first-child {
  padding-left: var(--certlink-projects-table-edge-gutter, 10px) !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th:last-child,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td:last-child,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link {
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
  overflow: visible !important;
}

/* Reparto de anchos con table-layout: fixed (ya activo en portal-base). */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-created,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-created {
  width: 8% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-client-legal-name,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-client-legal-name {
  width: 20% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-title,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-title {
  width: 33% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-field-client-project-number,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-field-client-project-number,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-client-reference,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-client-reference {
  width: 31% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-xtrf-project-id {
  width: 14% !important;
  text-align: left !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-xtrf-project-id {
  width: 14% !important;
  text-align: justify !important;
}

/* Certificate: algo más ancha; el espacio sale de PO / Number. */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-custom-page .views-field-certlink-download-link {
  width: 8% !important;
  min-width: 0 !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* --- Caso sobrescrito: Gestores / Administradores (6 columnas si existe views-field-certlink-client-legal-name) --- */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-created,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-created {
  width: 8% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-client-legal-name,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-client-legal-name {
  width: 20% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-title,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-title {
  width: 24% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-field-client-project-number,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-field-client-project-number,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-client-reference,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-client-reference {
  width: 22% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-xtrf-project-id,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-xtrf-project-id {
  width: 14% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link {
  width: 8% !important;
}

/* Cabecera Certificate: centrada por defecto (clientes / 5 columnas). */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.certlink-certificate-column-head {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html.certlink-portal-route body.path-projects .certlink-project-details-page table.certlink-v2-spec-language-table thead th.certlink-certificate-column-head {
  text-align: right !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.certlink-certificate-column-head .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.certlink-certificate-column-head .certlink-certificate-column-icon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 26px !important;
  margin: 0 auto !important;
  color: #fff !important;
}

/* En staff (6 columnas): el icono de cabecera se alinea con el par de botones a la derecha. */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.views-field-certlink-download-link {
  text-align: right !important;
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.views-field-certlink-download-link .certlink-certificate-column-icon {
  display: inline-flex !important;
  width: var(--certlink-projects-cert-actions-track, 84px) !important;
  margin: 0 !important;
}

html.certlink-portal-route body.path-projects .certlink-project-details-page table.certlink-v2-spec-language-table thead th.certlink-certificate-column-head .certlink-certificate-column-icon {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: var(--certlink-projects-cert-actions-track, 84px) !important;
  height: 26px !important;
  margin: 0 !important;
  color: #fff !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link .certlink-certificate-column-icon__svg,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.certlink-certificate-column-head .certlink-certificate-column-icon__svg {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  margin: 0 auto !important;
  stroke: #fff !important;
  flex-shrink: 0 !important;
}

.certlink-certificate-column-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  vertical-align: middle;
}

.certlink-certificate-column-icon__img,
.certlink-certificate-column-icon__svg {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
  color: inherit;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-project-details-page .certlink-portal-grid-wrap table.certlink-v2-spec-language-table tbody td.certlink-v2-col-link {
  text-align: center !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link .certlink-cert-actions,
html.certlink-portal-route body.path-projects .certlink-project-details-page .certlink-portal-grid-wrap table.certlink-v2-spec-language-table tbody td.certlink-v2-col-link .certlink-cert-actions {
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

/* Cabeceras: legibles pero compactas. */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap thead th {
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 9px 10px !important;
  line-height: 1.25 !important;
  letter-spacing: 0.02em !important;
}

/* Celdas: texto grande y peso medio para contraste sobre fondo oscuro. */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap tbody td,
html.certlink-portal-route body.path-projects .certlink-custom-page:not(.certlink-project-details-page) tbody td {
  font-size: 17px !important;
  font-weight: 500 !important;
  padding: 9px 10px !important;
  line-height: 1.35 !important;
  vertical-align: middle !important;
  color: #fff !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* PO / Number, cliente y nombre: máximo 2 líneas para no inflar la fila. */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-field-client-project-number,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-client-reference,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-title,
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-client-legal-name {
  max-height: calc(1.35em * 2 + 2px);
  overflow: hidden;
  white-space: normal !important;
}

/* Fecha: siempre completa; puede partirse en varias líneas (sin elipsis). */
html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-created {
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
  max-height: none;
  word-break: break-word;
  overflow-wrap: anywhere;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-created a.certlink-portal-row-link {
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: inline;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-xtrf-project-id {
  white-space: normal !important;
  overflow: visible;
  text-overflow: clip;
  max-height: none;
  word-break: break-all;
  overflow-wrap: anywhere;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card td.views-field-title a.certlink-portal-row-link {
  font-size: inherit !important;
  font-weight: 500 !important;
  line-height: inherit !important;
}

html.certlink-portal-route body.path-projects .certlink-custom-page .certlink-project-sort-label {
  font-size: inherit !important;
  font-weight: inherit !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link {
  white-space: nowrap !important;
}

/* Laptops: mantener mínimos legibles (anula compactación agresiva de portal-shell-mockup). */
@media (max-width: 1400px) {
  html.certlink-portal-route body.path-projects .certlink-projects-page {
    --certlink-projects-cert-actions-track: 68px;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap thead th {
    font-size: 13px !important;
    padding: 8px 9px !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap tbody td,
  html.certlink-portal-route body.path-projects .certlink-custom-page:not(.certlink-project-details-page) tbody td {
    font-size: 16px !important;
    padding: 8px 9px !important;
    line-height: 1.34 !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-field-client-project-number,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-client-reference,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-title,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-client-legal-name {
    max-height: calc(1.34em * 2 + 2px);
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-custom-page .views-field-certlink-download-link {
    width: 8% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link .certlink-cert-actions,
  html.certlink-portal-route body.path-projects .certlink-project-details-page .certlink-portal-grid-wrap table.certlink-v2-spec-language-table tbody td.certlink-v2-col-link .certlink-cert-actions {
    gap: 4px !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 1100px) {
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap thead th {
    font-size: 12px !important;
    padding: 7px 8px !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .table-wrap tbody td,
  html.certlink-portal-route body.path-projects .certlink-custom-page:not(.certlink-project-details-page) tbody td {
    font-size: 15px !important;
    padding: 7px 8px !important;
    line-height: 1.33 !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-download-link,
  html.certlink-portal-route body.path-projects .certlink-custom-page .views-field-certlink-download-link {
    width: 8% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-field-client-project-number,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-client-reference,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-title,
  html.certlink-portal-route body.path-projects .certlink-projects-page .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td.views-field-certlink-client-legal-name {
    max-height: calc(1.33em * 2 + 2px);
  }
}

/* Evita que el datepicker se recorte o genere barras de desplazamiento en la página de certificados */
html.certlink-portal-route body.path-projects .certlink-custom-page,
html.certlink-portal-route body.path-projects .shell,
html.certlink-portal-route body.path-projects .certlink-projects-panel.panel {
  overflow: visible !important;
}

/* Fuerza el diseño Sticky Footer para mantener el logo "POWERED BY" siempre abajo del viewport */
html.certlink-portal-route body.path-projects .region-content {
  display: flex !important;
  flex-direction: column !important;
  min-height: calc(100vh - 160px) !important;
}

html.certlink-portal-route body.path-projects footer.powered-by.certlink-portal-powered-foot {
  margin-top: auto !important;
}

/* Refuerzo final: anula overflow-x auto de portal-base / dual-scroll JS en /projects. */
html.certlink-portal-route body.path-projects .certlink-custom-page .table-wrap,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll__track--main,
body.certlink-portal-route .certlink-custom-page.certlink-projects-page .table-card .certlink-dual-scroll__track--main {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll__track--top {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* Sangría en celdas (no en contenedor): gana a media queries y portal-download-btn.css. */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-dual-scroll__track--main,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card > .certlink-portal-grid-wrap.table-wrap,
body.certlink-portal-route .certlink-custom-page.certlink-projects-page .table-card .certlink-dual-scroll__track--main {
  padding-right: 0 !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th:first-child,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td:first-child {
  padding-left: var(--certlink-projects-table-edge-gutter, 10px) !important;
}

/* Sangría final en cabeceras y celdas de borde (excepto columna Certificate en clientes). */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table thead th:last-child:not(.views-field-certlink-download-link):not(.certlink-certificate-column-head) {
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
  text-align: right !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table tbody td:last-child:not(.views-field-certlink-download-link) {
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

/* Vista de clientes: columna de certificado 100% centrada y alineada entre cabecera y botón único. */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) thead th.certlink-certificate-column-head,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client thead th.certlink-certificate-column-head {
  padding-right: 0 !important;
  padding-left: 0 !important;
  text-align: center !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) tbody td.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client tbody td.views-field-certlink-download-link {
  padding-right: 0 !important;
  padding-left: 0 !important;
  text-align: center !important;
  vertical-align: middle !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) thead th.certlink-certificate-column-head .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client thead th.certlink-certificate-column-head .certlink-certificate-column-icon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 26px !important;
  margin: 0 auto !important;
  color: #fff !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) tbody td.views-field-certlink-download-link a.certlink-download-btn:not(.certlink-download-btn--with-label),
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client tbody td.views-field-certlink-download-link a.certlink-download-btn:not(.certlink-download-btn--with-label),
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) tbody td.views-field-certlink-download-link a.certlink-upload-btn,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client tbody td.views-field-certlink-download-link a.certlink-upload-btn,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:not(:has(th.views-field-certlink-client-legal-name)) tbody td.views-field-certlink-download-link .certlink-cert-status-btn,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--client tbody td.views-field-certlink-download-link .certlink-cert-status-btn {
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 auto !important;
  float: none !important;
}

/* Vista de staff (6 columnas): alineación al borde para el track de 2 botones. */
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.certlink-certificate-column-head,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.certlink-certificate-column-head {
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
  text-align: right !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff tbody td.views-field-certlink-download-link {
  padding-right: var(--certlink-projects-table-edge-gutter-end, 5px) !important;
  padding-left: 4px !important;
  min-width: 0 !important;
  overflow: visible !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.views-field-certlink-download-link .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) thead th.certlink-certificate-column-head .certlink-certificate-column-icon,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff thead th.certlink-certificate-column-head .certlink-certificate-column-icon {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: var(--certlink-projects-cert-actions-track, 84px) !important;
  height: 26px !important;
  margin: 0 !important;
  color: #fff !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link .certlink-cert-actions,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table.certlink-projects-table--staff tbody td.views-field-certlink-download-link .certlink-cert-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link a.certlink-download-btn:not(.certlink-download-btn--with-label),
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link a.certlink-upload-btn,
html.certlink-portal-route body.path-projects .certlink-projects-page .table-card .certlink-portal-grid-wrap table.certlink-portal-grid-table:has(th.views-field-certlink-client-legal-name) tbody td.views-field-certlink-download-link .certlink-cert-status-btn {
  margin: 0 !important;
}
