/**
 * @version     CVS: 1.0.0
 * @package     com_calendario_muga
 * @copyright   2023 Riojana de Telecomunicaciones SL
 * @license     Licencia Pública General GNU versión 2 o posterior. Consulte LICENSE.txt
 * @author      Riojana de Telecomunicaciones SL <webmaster@emesa.com>
 */

.table-responsive
{
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table.front-end-list{
    width: 100%;
    border-spacing: 1px;
    background-color: #f3f3f3;
    color: #666;
}

table.front-end-list thead th{
    text-align: center;
    background: #f7f7f7;
    color: #666;
    border-bottom: 1px solid #ccc;
    border-left: 1px solid #fff;
}

table.front-end-list td, table.front-end-list th{
    padding: 4px;
}

table.front-end-list thead th.align-left{
    text-align: left;
}

table.front-end-list thead th.align-center, table.front-end-list tbody td.align-center {
    text-align: center;
}

table.front-end-list tbody tr td{
    background: #fff;
    border: 1px solid #fff;
}

table.front-end-list td{
    padding-left: 8px;
}

div.list-footer{
    clear:both;
    text-decoration: none;
    text-align: center;
}

div.list-footer ul{
    list-style: none;
    display: inline-block;
}

div.list-footer ul li{
    display: inline-block;
}

div.list-footer div.limit{
    display: inline-block;
}

div.list-footer div.counter{
    display: inline-block;
}

div.filter-select.hide{
    display: none;
}

div.filter-select.show{
    display: block;
}

div.filter-search , div.filter-select {
    clear: both;
}

div.filter-select .fltlft{
    float: left;
    clear: both;
}

div.field-filter{
    float: left;
    margin: 10px;
}

#filter-bar div.fltrt div.button2-left .blank a {
    margin-top: 0 !important;
}

button.open{
    font-weight: bold;
}

div.field-filter:first-of-type{
    margin-left: 0;
}
+
/* Frontend filters: Joomla 6 / Bootstrap 5 */
.js-stools,
.custom-filter-panel {
    margin: 0 0 1.5rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: var(--bs-border-radius-lg, .5rem);
    box-shadow: 0 .125rem .375rem rgba(0, 0, 0, .06);
}

.js-stools-container-bar {
    padding: 1rem;
}

.js-stools-container-bar .btn-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
}

.filter-search-bar {
    flex: 1 1 20rem;
    max-width: 34rem;
}

.filter-search-bar .input-group,
.filter-search-bar input {
    width: 100%;
}

.filter-search-actions,
.ordering-select {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.js-stools-container-filters {
    display: none;
    padding: 1rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.js-stools-container-filters-visible {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: .75rem;
}

.js-stools-field-filter select,
.js-stools-field-filter input,
.js-stools-field-list select {
    width: 100%;
    min-height: 2.5rem;
}

.custom-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
    margin: -1rem 0 1.5rem;
}

.custom-filter-panel {
    padding: 1rem;
}

.custom-filter-panel__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.custom-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
    gap: 1rem;
    align-items: end;
}

.custom-filter-field label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
}

.custom-filter-field .form-control,
.custom-filter-field .form-select {
    width: 100%;
}

.custom-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

@media (max-width: 575.98px) {
    .js-stools-container-bar .btn-toolbar,
    .filter-search-actions,
    .ordering-select,
    .custom-filter-actions,
    .custom-list-actions {
        width: 100%;
    }

    .filter-search-bar {
        flex-basis: 100%;
    }

    .filter-search-actions > *,
    .custom-filter-actions > *,
    .custom-list-actions > * {
        flex: 1 1 auto;
    }
}
