/* Estilos propios del front común de core (lo demás viene de base.css y componentes.css, los de los portales). */
.lic-fondo {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--scrim);
  display: grid;
  place-items: center;
  padding: 16px;
}
.lic-card {
  background: var(--surface);
  border-radius: var(--r);
  padding: 20px;
  max-width: 440px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.lic-card h2 {
  margin-top: 0;
}
.ico {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex: none;
}
.tab.bloqueada,
.item.bloqueada {
  opacity: 0.6;
}
.tab.bloqueada .ico:last-child {
  width: 13px;
  height: 13px;
  margin-left: auto;
}
.plan-fuera {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
}
.plan-fuera > .ico {
  width: 40px;
  height: 40px;
  color: var(--muted);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}
.card h2 {
  margin-top: 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  align-items: end;
}
.grid .acts,
.grid .chk {
  grid-column: 1 / -1;
}
.list .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.item.inactivo {
  opacity: 0.55;
}
.cuenta-sec {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.cuenta-sec h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.cuenta-form {
  display: grid;
  gap: 8px;
  margin: 8px 0;
}
.idioma-sel {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.totp-qr svg {
  display: block;
  margin: 8px 0;
  background: #fff;
}
.totp-codigos pre {
  background: var(--surface-2);
  padding: 10px;
  border-radius: var(--r);
  font-family: var(--f-mono);
}
.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.logo-caja {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.logo-caja img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
}
.estado {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0;
}
.estado dt {
  color: var(--muted);
}
.estado dd {
  margin: 0;
}
.marca-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  margin-right: 8px;
}
.btn.usr {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  padding: 0;
}
.drawer.ancho .panel {
  width: min(900px, 100vw);
}
.toast.err {
  background: var(--bad);
  color: #fff;
}
.err {
  color: var(--bad);
}
#vista ul.list,
.card ul.list,
.cuenta-sec ul.list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.grid {
  align-items: start;
}
/* 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);
  color: var(--ink);
  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;
}

/* Menú del usuario (bola con las iniciales): iconos de core en las opciones */
.menu-it:has(> .ico) {
  display: flex;
  align-items: center;
  gap: 0.6em;
}
.menu-it > .ico {
  width: 1.2em;
  height: 1.2em;
  color: var(--muted, currentColor);
  flex: none;
}
.menu-it > span {
  flex: 1;
}

/* Configuración: pestañas y apartados plegables con una flecha (configuracion.js) */
.seg.cfg-pestanas {
  flex-wrap: wrap;
  margin: 0 0 16px;
  width: fit-content;
  max-width: 100%;
}
details.aj-pleg > summary {
  cursor: pointer;
  list-style: none;
}
details.aj-pleg > summary::-webkit-details-marker {
  display: none;
}
details.aj-pleg > summary h2::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  color: var(--muted);
  transition: transform 0.15s;
}
details.aj-pleg[open] > summary h2::before {
  transform: rotate(90deg);
}
details.aj-pleg:not([open]) > summary {
  border-bottom: 0;
}
.lic-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.lic-fila .btn {
  flex: none;
}
