/* Horas extra y gastos */
td[data-act='exEditar'] {
  cursor: pointer;
}
tbody tr:hover td[data-act='exEditar'] {
  background: var(--surface-2, rgba(127, 127, 127, 0.08));
}
.ex-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.ex-barra b {
  margin-right: auto;
}
tfoot td {
  border-top: 2px solid var(--line);
}

/* Cinco indicadores en la misma fila (se reparten el ancho disponible) */
.kpis.kp5,
.kpis.kp3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Partidas agrupadas por ámbito (proyectos): cabecera de grupo plegable y partidas con sangría */
tr.pg-head td {
  background: var(--surface-2);
  border-top: 1px solid var(--line-strong);
}
tr.pg-head:hover td {
  background: var(--line);
}
.pg-chev {
  display: inline-block;
  width: 1.2em;
}
tr.pg-hijo td:first-child {
  padding-left: 30px;
}

/* Fichas de solo lectura (lo aprobado o regularizado): se ve a simple vista que no se puede tocar. */
.solo-lectura input:disabled,
.solo-lectura select:disabled,
.solo-lectura textarea:disabled {
  background: transparent;
  border-style: dashed;
  opacity: 0.75;
  cursor: not-allowed;
  -webkit-text-fill-color: currentColor;
}
.solo-lectura label.check,
.solo-lectura .chk {
  cursor: not-allowed;
  opacity: 0.75;
}

/* Indicadores que filtran, filtros en dos filas fijas y lo pendiente a simple vista */
.kpi[data-act] {
  cursor: pointer;
}
.kpi[data-act]:hover {
  border-color: var(--accent);
}
.ex-fila0,
.ex-fila1,
.ex-fila2 {
  margin-bottom: 8px;
}
.ex-fila2 {
  padding-bottom: 4px;
}
.ex-fila1 select {
  max-width: 230px;
}
.ex-limpiar {
  margin-left: auto;
}
.ex-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}
.ex-eti {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
}
td[data-act='exEditar'],
td[data-act='exEditarMan'],
td[data-act='exEditarRos'] {
  cursor: pointer;
}
tr.ex-aprobar td:first-child {
  box-shadow: inset 3px 0 0 var(--warn);
}
tr.ex-aprobada td:first-child {
  box-shadow: inset 3px 0 0 var(--info);
}
tr.ex-reg td,
tr.ex-rech td {
  color: var(--muted);
}
.ex-fila2 select[id='f-exl'] {
  max-width: 340px;
}

/* Aviso de cierre de sesión por inactividad */
.ses-fondo {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 14, 22, 0.55);
}
.ses-card {
  max-width: 420px;
  width: 100%;
  padding: 22px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.ses-card h2 {
  margin: 0 0 8px;
}
.ses-card .acts {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
