/* Small compatibility layer for three custom theme pages, not all WPDM UI.
   Button metrics follow the supplied old front.css and Bootstrap 4; no old JS is loaded. */
.ure-site-legacy .entry-content .w3eden .btn {
    display: inline-block;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 7.5px 16px;
    border: 1px solid transparent;
    border-radius: 2px;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    background-image: none;
    vertical-align: middle;
    white-space: normal;
}
.ure-site-legacy .entry-content .w3eden .btn.btn-sm {
    padding: 7px 10px;
    font-size: 10px;
}
.ure-site-legacy .entry-content .w3eden .btn-group-sm > .btn:not(.btn-sm) {
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 3.2px;
}
.ure-site-legacy .entry-content .w3eden .btn-info {
    background-color: var(--color-info, #2ca8ff);
    border-color: var(--color-info, #2ca8ff);
    color: #fff;
}
.ure-site-legacy .entry-content .w3eden .btn-info:hover {
    background-color: var(--color-info-hover, #2497ec);
    color: #fff;
}
.ure-site-legacy .entry-content .w3eden .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    vertical-align: middle;
    max-width: 100%;
}
.ure-site-legacy .entry-content .w3eden .btn-group > .btn {
    float: none;
    flex: 0 1 auto;
    margin-bottom: 0;
}
.ure-site-legacy .entry-content .w3eden .panel {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}
.ure-site-legacy .entry-content .w3eden .panel-body { padding: 15px; }
/* Restore a visible text-control box, without exposing hidden controls. */
.ure-site-legacy .entry-content .w3eden :is(input[type="text"], input[type="search"], input:not([type]), select):not([hidden]) {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 20px;
}
.ure-site-legacy .entry-content .w3eden .form-control:not([type="hidden"]):not([hidden]) {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: none;
}
/* MultiNews supplies fixed heights/line heights that conflict with WPDM 3.3.73. */
.ure-site-legacy .entry-content .w3eden .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    list-style: none;
    line-height: normal;
}
.ure-site-legacy .entry-content .w3eden .pagination > li {
    display: block;
    float: none;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    line-height: normal;
    list-style: none;
}
.ure-site-legacy .entry-content .w3eden .pagination > li > :is(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    height: auto;
    min-height: 0;
    margin: 2px !important;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #337ab7;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}
.ure-site-legacy .entry-content .w3eden .pagination > .active > :is(a, span) {
    background: #337ab7;
    border-color: #337ab7;
    color: #fff;
}
/* Keep the deliberate colors already specified by the Antigüedad page. */
.ure-site-legacy.ure-site-antiguedad .entry-content .w3eden .pagination > .active > a {
    background: #267bb4;
    border-color: #267bb4;
}
/* Index markup uses a full-width theme template and negative inline offsets.
   Give the three original controls separate tracks instead of overlapping them. */
.ure-site-index .entry-content .w3eden div:has(> .adv-search-form) {
    margin-left: 0 !important;
    width: 100%;
}

/* New WPDM paints striped cells; let the theme's row color show through. */
.ure-site-legacy .entry-content .w3eden .table.table-striped > tbody > tr > :is(td, th) {
    background-color: transparent !important;
    transition: none;
}
.ure-site-legacy .entry-content .w3eden .table.table-striped > tbody > tr:hover,
.ure-site-legacy .entry-content .w3eden .table.table-striped > tbody > tr:hover > :is(td, th) {
    background-color: #ffffcc !important;
}
.ure-site-index .entry-content .w3eden .adv-search-form {
    display: grid;
    grid-template-columns: auto minmax(130px, 220px) 36px;
    align-items: stretch;
    justify-content: center;
    max-width: 100%;
}
.ure-site-index .entry-content .w3eden .adv-search-form > input.adv-s {
    grid-column: 2;
    grid-row: 1;
    display: block;
    position: relative;
    float: none;
    width: 100% !important;
    min-width: 0;
    height: 36px !important;
    margin: 0 !important;
}
.ure-site-index .entry-content .w3eden .adv-search-form > .btn-group {
    grid-column: 1;
    grid-row: 1;
    margin: 0 8px 0 0;
}
.ure-site-index .entry-content .w3eden .adv-search-form > .btn-group > .btn,
.ure-site-index .entry-content .w3eden .adv-search-form > button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 6px 10px !important;
    line-height: 20px;
}
.ure-site-index .entry-content .w3eden .adv-search-form > button.btn {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    padding: 0 !important;
}
@media (max-width: 600px) {
    .ure-site-index .entry-content .w3eden .adv-search-form {
        width: 100%;
        grid-template-columns: minmax(130px, 1fr) 36px;
        row-gap: 8px;
    }
    .ure-site-index .entry-content .w3eden .adv-search-form > .btn-group {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        margin: 0;
    }
    .ure-site-index .entry-content .w3eden .adv-search-form > input.adv-s { grid-column: 1; grid-row: 2; }
    .ure-site-index .entry-content .w3eden .adv-search-form > button.btn { grid-column: 2; grid-row: 2; }
    .ure-site-legacy .entry-content .w3eden .category-panel { height: auto !important; }
    .ure-site-legacy .entry-content .w3eden .category-panel table.normal,
    .ure-site-legacy .entry-content .w3eden .category-panel table.normal :is(tbody, tr, td) {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    .ure-site-legacy .entry-content .w3eden .category-panel td { padding: 3px 0; }
    .ure-site-legacy .entry-content .w3eden .category-panel select { width: 100%; }
    .ure-site-legacy .entry-content .w3eden .pagination > li > :is(a, span) {
        padding: 4px 8px;
        font-size: 12px;
    }
}
