/* Buscador de licitaciones: fixes. See buscador-licitaciones-fixes.php. */

/*
 * Look and feel shared with the search of the Centro de información
 * (segittur-admin-fixes): Source Sans Pro, brand red #990100 for accents,
 * greys #58595b (labels, 7:1) and #444 (values), light separators, soft
 * tags (#f9eeee with red text, 7.8:1) that only get a bit deeper on hover.
 */

/* Same indent as the paragraphs and iframes of the theme (mini-mandrake, `#main p` and `.so-panel iframe`). */
.bl-columna {
    margin-left: 2.4667rem;
    width: calc(100% - 2.4667rem);
}

@media screen and (max-width: 880px) {
    .bl-columna {
        margin-left: 0;
        width: 100%;
    }
}

/*
 * The search keeps its left edge on the column and grows to the right, up to
 * the edge of the article (the header's container): next to the amount and
 * date columns the results had about 500px and their texts piled up. The
 * page title, the dashboard, the other rows and, in the search row, the
 * widget title and the intro keep the 60rem column.
 */
:is(.turistico-template-default, .economia-template-default, .general-template-default, .transporte-template-default, .alojamientos-template-default, .sostenibilidad-template-default) .post.hentry:only-of-type > .panel-layout:has(.bl-columna--ancha) {
    max-width: none !important;
}

.panel-layout:has(.bl-columna--ancha) > .panel-grid:not(:has(.bl-columna--ancha)) {
    max-width: 60rem;
}

.panel-grid:has(.bl-columna--ancha) .so-panel .widget-title {
    max-width: 60rem;
}

.panel-grid:has(.bl-columna--ancha) .so-panel .textwidget > p {
    max-width: calc(60rem - 2.4667rem);
}

/* Form controls do not inherit the font. */
.bl-columna :is(input, select, button, label, p, span),
.modal.bl-ficha :is(p, span, div, a) {
    font-family: "Source Sans Pro", sans-serif;
}

/* The theme indents every paragraph of the article again inside the column. */
.bl-columna p {
    margin-left: 0 !important;
    width: auto !important;
}

/* ---------- Search form and filters ---------- */

.bl-columna .buscador .form-row:last-child .busqueda-exacta label {
    color: #58595b;
    font-size: .95rem;
}

.bl-columna .buscador .form-row:last-child .limpiar-resultados {
    font-size: .95rem;
}

.bl-columna .buscador .form-row:last-child .limpiar-resultados:hover {
    text-decoration: underline;
}

.bl-columna .filtros .form-row .form-col label {
    color: #58595b;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .35rem;
}

.bl-columna .filtros .form-row .form-col label span {
    color: inherit;
}

.bl-columna .filtros .form-row .form-col :is(input, select),
.bl-columna .caja-dinamica .resultados-caja {
    background-color: #fff;
    border: 1px solid #bfbfbf;
    color: #444;
    font-size: .95rem;
    transition: border-color .15s, box-shadow .15s;
}

.bl-columna .filtros .form-row .form-col :is(input, select)::placeholder {
    color: #6d6e70;
    font-size: .9rem;
}

.bl-columna .filtros .form-row .form-col :is(input, select):hover {
    border-color: #8c8c8c;
}

.bl-columna .filtros .form-row .form-col :is(input, select):focus,
.bl-columna .buscador .form-row:first-child [type="search"]:focus {
    border-color: #990100;
    box-shadow: 0 0 0 3px #f6e3e3;
    outline: none;
}

.bl-columna .filtros .form-row .form-col select:disabled {
    background-color: #f5f5f5;
    color: #6d6e70;
}

/* Values picked in the autocomplete fields: soft tags instead of solid red pills. */
.bl-columna .caja-dinamica .resultados-caja .elemento {
    background: #f9eeee;
    border: 1px solid #ebcfcf;
    border-radius: 999px;
    color: #990100;
    padding: .2rem .4rem .2rem .75rem;
}

.bl-columna .caja-dinamica .resultados-caja .elemento span {
    font-size: .85rem;
    font-weight: 600;
}

.bl-columna .caja-dinamica .resultados-caja .elemento svg :is(path, circle) {
    fill: #990100;
}

.bl-columna .caja-dinamica .resultados-caja .elemento:hover {
    background: #ecc9c9;
    border-color: #c48585;
}

.bl-columna .caja-dinamica .resultados p {
    color: #444;
    font-size: .95rem;
}

.bl-columna .caja-dinamica .resultados p:hover {
    background: #f9eeee;
    color: #7a0100;
}

/* ---------- Results ---------- */

.bl-columna .licitaciones {
    margin-top: 2.5rem;
}

/* The plugin's 40px line height on phones made the wrapped title run over the count. */
.bl-columna .licitaciones .inner .resultados .intro .segittur_titulo_seccion {
    color: #58595b;
    height: auto;
    line-height: 1.25;
    margin-bottom: 1rem;
    min-height: 3.2rem;
    text-transform: none;
}

.bl-columna .licitaciones .inner .resultados .intro {
    margin-bottom: 1rem;
}

.bl-columna .licitaciones .inner .resultados .intro .resultados-encontrados {
    margin-bottom: 0;
    text-align: left;
}

.bl-columna .licitaciones .inner .resultados .intro .resultados-encontrados span {
    color: #58595b;
    font-size: 1rem;
    font-weight: 600;
}

/* Notices (10,000 results limit, failed search): the box of the Centro's notices. */
.bl-columna .licitaciones .inner .resultados .intro .resultados-encontrados .bl-aviso,
.licitaciones .bl-aviso {
    background: #fbeaea;
    border-left: 4px solid #990100;
    color: #58595b;
    display: block;
    font-size: .95rem;
    font-weight: 400;
    margin-top: .75rem;
    padding: .6rem 1rem;
}

/*
 * Sort bar: a header over the columns, red as the plugin's. It sticks under the
 * header while scrolling inside the results (the plugin turned it into a fixed
 * bar as wide as the window and the list jumped up by its height).
 */
.bl-columna .licitaciones .inner .resultados .tabla-barra,
.bl-columna .licitaciones .inner .resultados .tabla-barra.fija {
    background: #990100;
    margin-bottom: 0;
    max-width: none;
    position: sticky;
    top: 57px;
    width: auto;
    z-index: 5;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra {
    background: #990100;
    padding: .5rem 0 .6rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p {
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p:first-child {
    font-size: .9rem;
    padding-left: 1rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p span {
    color: inherit;
}

/* White on #990100 is 9.4:1; the sorted column is underlined. */
.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p:not(:first-child):hover span,
.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p.bl-orden-activo span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p svg {
    flex: 0 0 auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-barra .barra p svg path {
    fill: #fff;
}

/* One card per result, separated by a thin line instead of the 64px gaps. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados {
    margin-top: 0;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados::before {
    content: none;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados hr {
    background: none;
    border: 0;
    border-top: 1px solid #e3e3e3;
    height: 0;
    margin: 0 !important;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado {
    align-items: flex-start;
    background: none;
    padding: 1.25rem 0 1.4rem;
}

/*
 * Main column: contract type and procedure as a small red line, the status as
 * a soft tag, the subject as the title, then label/value lines and the link to
 * the detail view. The plugin's label boxes are dropped.
 */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .5rem;
    padding-right: 2rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 > *,
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > * {
    flex: 0 0 100%;
    margin: 0;
    max-width: 100%;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar {
    display: contents;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.tipo-contrato, .procedimiento, .estado) {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    margin: 0;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .tipo-contrato { order: 1; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .procedimiento { order: 2; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .estado { order: 3; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .objeto-contrato { order: 4; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente { order: 5; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .contratante { order: 6; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar { order: 7; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile { order: 8; }
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .ver-ficha-licitacion { order: 9; }

/* Labels that the new layout makes redundant stay for screen readers. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.tipo-contrato, .procedimiento, .estado, .objeto-contrato) > p:first-child,
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .cod-nuts > p:first-child,
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente > p:empty {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.tipo-contrato, .procedimiento) > p:last-child {
    background: none;
    color: #990100;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
    min-width: 0;
    padding: 0;
    text-align: left;
    text-transform: uppercase;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .procedimiento::before {
    color: #990100;
    content: "·";
    font-weight: 700;
    margin-right: .5rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .estado {
    margin-left: .25rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .estado > p:last-child {
    background: #f9eeee;
    border: 1px solid #ebcfcf;
    border-radius: 999px;
    color: #990100;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.3;
    min-width: 0;
    padding: .1rem .65rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .objeto-contrato > p:last-child {
    color: #58595b;
    font-family: futura-pt, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin: .15rem 0 .4rem;
    overflow-wrap: anywhere;
}

/* Label on the left, value on the right. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.expediente > div, .contratante, .expediente-lugar > .lugar) {
    align-items: baseline;
    display: grid;
    gap: .15rem 1rem;
    grid-template-columns: 9rem minmax(0, 1fr);
    margin: 0;
    width: auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente {
    display: block;
    width: auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.expediente > div, .contratante, .expediente-lugar > .lugar) > p:first-child {
    background: none;
    border: 0;
    color: #58595b;
    font-size: .9rem;
    font-weight: 700;
    height: auto;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    text-align: left;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.expediente > div, .contratante) > p:last-child {
    color: #444;
    font-size: .95rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
    padding: 0;
    text-align: left;
}

/* Place: "País España · CCAA … · Provincia … · Según texto libre …" on one wrapping line. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar {
    width: auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem 1.25rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container :is(.cod-nuts, .cod-nuts > .lugar-container) {
    display: contents;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container :is(.nut, .texto-libre) {
    align-items: baseline;
    display: inline-flex;
    gap: .35rem;
    width: auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container :is(.nut, .texto-libre) > p {
    background: none;
    border: 0;
    height: auto;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    text-align: left;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container :is(.nut, .texto-libre) > p:first-child {
    color: #6d6e70;
    font-size: .8rem;
    font-weight: 600;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .expediente-lugar > .lugar > .lugar > .lugar-container :is(.nut, .texto-libre) > p:last-child {
    color: #444;
    font-size: .95rem;
    font-weight: 400;
}

/* Link to the detail view: outlined, light fill on hover (no solid red block). */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .ver-ficha-licitacion {
    background: #fff;
    border: 1px solid #990100;
    color: #990100;
    flex: 0 0 auto;
    font-size: .8rem;
    letter-spacing: .04em;
    margin-top: .6rem;
    padding: .45rem 1rem;
    transition: background-color .15s, color .15s;
    width: auto;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .ver-ficha-licitacion:hover,
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .ver-ficha-licitacion:focus-visible {
    background: #f9eeee;
    color: #7a0100;
}

/* Amount and date columns: values at the top of the card instead of centred in grey boxes. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado :is(.caja2, .caja3, .caja4) {
    align-self: flex-start;
    background: none;
    padding-top: 1.35rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado :is(.caja2, .caja3, .caja4) p {
    color: #444;
    font-size: .95rem;
    font-weight: 600;
    top: auto;
    transform: none;
}

/* Below 1001px the plugin hides the columns and shows the amounts inside the card. */
.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile {
    border-top: 1px solid #ececec;
    display: grid;
    gap: .5rem 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: .4rem;
    padding-top: .6rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile > div {
    display: block;
    margin: 0;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile :is(.presupuesto-mobile, .adjudicacion-mobile, .fecha-mobile) p {
    background: none;
    border: 0;
    padding: 0;
    text-align: left;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile :is(.presupuesto-mobile, .adjudicacion-mobile, .fecha-mobile) p:first-child {
    color: #6d6e70;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: .2rem;
}

.bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile :is(.presupuesto-mobile, .adjudicacion-mobile, .fecha-mobile) p:last-child {
    color: #444;
    font-size: .95rem;
    font-weight: 600;
}

@media (min-width: 1001px) {
    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile {
        display: none;
    }
}

@media (max-width: 1000px) {
    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado {
        padding: 1.1rem 0 1.25rem;
    }

    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 {
        padding-right: 0;
    }

    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .ver-ficha-licitacion {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 :is(.expediente > div, .contratante, .expediente-lugar > .lugar) {
        grid-template-columns: 6.25rem minmax(0, 1fr);
        column-gap: .75rem;
    }

    .bl-columna .licitaciones .inner .resultados .tabla-resultados .resultado .caja1 .fila-mobile {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- Pagination ---------- */

/* The last result already ends with a line. */
.bl-columna .licitaciones .paginacion {
    margin-bottom: 2.5rem;
    padding-top: 1.5rem;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas span {
    background: #f9eeee;
    border: 1px solid #ebcfcf;
    color: #990100;
    font-size: .95rem;
    font-weight: 600;
    height: 2.5rem;
    margin: 0;
    min-width: 2.5rem;
    padding: 0 .5rem;
    transition: background-color .15s, color .15s, border-color .15s;
    width: auto;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas span:hover {
    background: #ecc9c9;
    border-color: #c48585;
    color: #7a0100;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas span:is(.anterior, .siguiente) {
    font-size: .85rem;
    height: 2.5rem;
    letter-spacing: .04em;
    margin-top: 0;
    padding: 0 1.1rem;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas span.pagina-actual {
    background: #990100;
    border-color: #990100;
    color: #fff;
    cursor: default;
}

/* ".." is a separator, not a page: clicking it broke the search. */
.licitaciones .paginacion-pagina[data-pagina=".."] {
    cursor: default;
    pointer-events: none;
}

.bl-columna .licitaciones .paginacion .paginacion-inner .paginas span[data-pagina=".."] {
    background: none;
    border-color: transparent;
    color: #6d6e70;
    min-width: 1rem;
    padding: 0;
}

/* ---------- Detail view (modal, appended after the footer) ---------- */

.modal.bl-ficha .modal-inner {
    max-width: 1200px;
}

.modal.bl-ficha .modal-inner .close svg path {
    fill: #990100;
}

.modal.bl-ficha .modal-inner .contenido {
    color: #444;
    padding: .5rem 4rem 3rem;
}

.modal.bl-ficha .modal-inner .contenido .segittur_titulo_seccion {
    border-bottom: 2px solid #990100;
    color: #990100;
    font-family: "Source Sans Pro", sans-serif;
    font-size: .85rem;
    font-weight: 700;
    height: auto;
    letter-spacing: .06em;
    line-height: 1.4;
    margin: 0 0 .25rem;
    padding: 0 0 .4rem;
    text-transform: uppercase;
}

.modal.bl-ficha .modal-inner .contenido .segittur_titulo_seccion span {
    display: none;
}

/* File number as the heading, the subject as the title (like the Centro's detail view). */
.modal.bl-ficha .modal-inner .contenido .bloque-expediente > .segittur_titulo_seccion {
    border: 0;
    color: #58595b;
    font-size: .95rem;
    margin-bottom: .5rem;
    padding: 0;
}

.modal.bl-ficha .modal-inner .contenido .intro {
    margin-bottom: 2rem;
}

.modal.bl-ficha .modal-inner .contenido .intro > span {
    background: none;
    color: #990100;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: .25rem;
    padding: 0;
    text-transform: uppercase;
}

.modal.bl-ficha .modal-inner .contenido .intro p {
    color: #58595b;
    font-family: futura-pt, sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-left: 0;
}

.modal.bl-ficha .modal-inner .contenido .intro a,
.modal.bl-ficha .modal-inner .contenido .intro a span {
    color: #990100;
    font-size: .95rem;
    font-weight: 700;
    padding-left: 0;
}

.modal.bl-ficha .modal-inner .contenido .intro a:hover {
    text-decoration: underline;
}

.modal.bl-ficha .modal-inner .contenido .intro a svg path {
    fill: #990100;
}

.modal.bl-ficha .modal-inner .contenido .bloque {
    margin-bottom: 2.25rem;
}

/* Rows: thin separators, no zebra or red rules; label on the left in grey, value in dark grey. */
.modal.bl-ficha .modal-inner .contenido .tabla .fila {
    background: none;
    border-top: 0;
    border-bottom: 1px solid #ececec;
    gap: 1rem;
    padding: .55rem 0;
}

.modal.bl-ficha .modal-inner .contenido .tabla > .fila > div,
.modal.bl-ficha .modal-inner .contenido .tabla > .fila > div p {
    font-size: .95rem;
    line-height: 1.5;
}

.modal.bl-ficha .modal-inner .contenido .tabla > .fila:not(.fila-listado) > div:first-child,
.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div.titulos > p:first-child {
    color: #58595b;
    font-weight: 700;
}

.modal.bl-ficha .modal-inner .contenido .tabla > .fila:not(.fila-listado) > div:last-child,
.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div > p:last-child {
    color: #444;
    font-weight: 400;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila:not(.fila-listado) > div:first-child {
    flex: 0 0 15rem;
    margin-right: 0;
    min-width: 0;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div {
    gap: 1rem;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div > p:first-child {
    flex: 0 0 15rem;
    margin-right: 0;
    min-width: 0;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div.titulos {
    margin-bottom: .3rem;
}

/* Sub-rows (address, NIF, place…): lighter label, indented under their row. */
.modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div:not(.titulos) > p:first-child {
    color: #6d6e70;
    font-weight: 600;
    padding-left: 1.25rem;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .fila.fila-listado div:not(.titulos) p:first-child svg path {
    stroke: #990100;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .fila.fila-listado div.segun-texto-libre p:first-child {
    padding-left: 1.25rem;
}

.modal.bl-ficha .modal-inner .contenido .bloque-expediente .fila.fila-listado div.titulos p:last-child a {
    color: #990100;
}

/* Lot tables: the lot name on a soft red band instead of a solid one. */
.modal.bl-ficha .modal-inner .contenido .bloque-lotes .tabla .fila {
    background: none;
}

.modal.bl-ficha .modal-inner .contenido .bloque-lotes .tabla .fila:first-child {
    background: #f9eeee;
    border-bottom-color: #ebcfcf;
    padding: .55rem .75rem;
}

.modal.bl-ficha .modal-inner .contenido .bloque-lotes .tabla .fila:first-child div {
    color: #990100;
    font-weight: 700;
}

@media (max-width: 1000px) {
    .modal.bl-ficha .modal-inner .contenido {
        padding: .5rem 1.25rem 2rem;
    }

    .modal.bl-ficha .modal-inner .contenido .intro p {
        font-size: 1.25rem;
    }

    .modal.bl-ficha .modal-inner .contenido .tabla > .fila > div,
    .modal.bl-ficha .modal-inner .contenido .tabla > .fila > div p {
        font-size: .9rem;
    }

    .modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila:not(.fila-listado) > div:first-child,
    .modal.bl-ficha .modal-inner .contenido .bloque-expediente .tabla > .fila.fila-listado > div > p:first-child {
        flex-basis: 42%;
    }
}
