/* PG Forja Clínica · Derechos del paciente (RGPD). */
.pg-pestanas button { padding: 10px 14px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--suave); white-space: nowrap; font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit; }
.pg-pestanas button.on { color: var(--pg-primario); border-bottom-color: var(--pg-primario); }
.pg-barra-acc .pg-pestanas { margin-bottom: 0; border-bottom: 0; }
.pgder-sem i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8894a2); margin-right: 6px; flex: none; }
.pgder-tabla td { vertical-align: middle; }
.pgder-det section { border-top: 1px solid var(--borde); padding: 12px 0 4px; }
.pgder-det h4 { margin: 0 0 8px; font-size: 14px; }
.pgder-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 12px; }
.pgder-cab small, .pgder-hist small { color: var(--suave); }
.pgder-texto, .pgder-carta { background: var(--superficie2); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.pgder-linea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; margin: 8px 0; }
.pgder-linea > input:first-child:nth-last-child(2) { grid-column: 1 / 3; }
.pgder-linea input, .pgder-linea select, .pgder-url { min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--borde); border-radius: 8px; background: var(--superficie); color: var(--texto); font: inherit; box-sizing: border-box; }
.pgder-pasos { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.pgder-pasos .pg-fila-botones, .pgder-det .pg-fila-botones { margin-top: 8px; }
.pgder-borra { margin: 8px 0; padding-left: 20px; }
.pgder-cons { display: grid; gap: 6px; }
.pgder-hist { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.pgder-hist li { display: grid; gap: 2px; border-left: 3px solid var(--borde); padding-left: 10px; overflow-wrap: anywhere; }
.pgder-alerta { color: var(--error); font-weight: 600; }
.pgder-ficha { border-left: 4px solid var(--aviso); }
.pgder-rat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pgder-rat header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pgder-rat h3 { margin: 0 0 8px; }
.pgder-rat dl { margin: 0; display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 6px 12px; font-size: 14px; }
.pgder-rat dt { color: var(--suave); }
.pgder-rat dd { margin: 0; overflow-wrap: anywhere; }
.pgder-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.pgder-dos td:last-child { text-align: right; font-weight: 600; }
.pgder-anio { min-width: 52px; text-align: center; align-self: center; }
.pgder-pac li small { display: block; }
.pgder-pac li small i { font-style: normal; }
.pgder-pac li .pg-btn { margin-top: 6px; }
.pgder-carta { max-height: 50vh; overflow: auto; }
@media (max-width: 800px) {
  .pgder-rat, .pgder-dos, .pgder-linea { grid-template-columns: minmax(0, 1fr); }
  .pgder-linea > input:first-child:nth-last-child(2) { grid-column: auto; }
  .pgder-rat dl { grid-template-columns: minmax(0, 1fr); }
}
