@layer ficha {

@scope (.cos-ficha) {

.p1 { height: 100%; display: grid; gap: 4mm; }
.p1 > .ex { min-height: 0; }
.ex-cos { flex: 1; min-height: 0; display: flex; }
.ex-cos > * { flex: 1; min-width: 0; min-height: 0; }
.foto { position: relative; min-height: 0; }
.foto > .img, .foto > .img-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: fill; }
.p1 { grid-template-rows: 1.6fr 0.95fr 1.3fr; }
.e1b { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 0.9fr) 5mm minmax(0, 0.9fr); gap: 3mm; }
.e2b { display: grid; grid-template-columns: 50mm minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 6mm; }
.memo { display: grid; grid-template-rows: 1fr 1fr; gap: 4mm; min-height: 0; }
.files { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3mm; }
.fila4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4mm; min-height: 0; }
.cel { display: grid; place-items: center; border: var(--gruix) solid var(--acento); border-radius: var(--radi); background: var(--paper); min-height: 0; padding: 0; position: relative; }
.cel.mod { background: var(--acento-suau); }
.cel .model { font-size: 2em; }
.cel .dada { font-weight: 800; font-size: 1.7em; line-height: 1; }
.cel .r.lletra { border: 0; background: transparent; width: 100%; height: 100%; font-size: 1.4em; padding: 0; line-height: 1; }
.sq { width: 1.1em; height: 1.1em; border: 3px solid var(--tinta-suau); border-radius: 3px; box-sizing: border-box; background: var(--il-gris); }
.sq.fix { background: transparent; border-color: var(--tinta); width: 1.1em; height: 1.1em; }
.cel.mod .sq:not(.fix) { background: var(--il-gris); }
button.quad { cursor: pointer; }
button.quad.on { background: var(--paper); color: var(--tinta); }
button.quad.on::after { content: ""; width: 1.1em; height: 1.1em; border: 3px solid var(--tinta); border-radius: 3px; box-sizing: border-box; }
.fletxa { width: 100%; height: 5mm; }
.pauta-ok { }

}
}
