/* Listados de administración CITIUS. Todo queda acotado a .citius-lista. */
.citius-lista {
    width: 100%;
    min-width: 0;
    color: #212529;
    text-align: left;
}

.citius-lista .lista-toolbar {
    position: sticky;
    top: 0;
    z-index: 8;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(6px);
}

.citius-lista .lista-limit {
    width: auto !important;
    min-width: 5rem;
    background-color: #fff;
    font-size: .875rem;
}

.citius-lista .lista-toolbar-icon,
.citius-lista .lista-action img {
    display: block;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.citius-lista .lista-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    min-width: 31px;
    height: 31px;
    padding: .25rem;
}

.citius-lista .lista-global-actions .btn {
    display: inline-flex;
    align-items: center;
}

.citius-lista .lista-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: .65rem;
    background: #fff;
}

.citius-lista table {
    width: max-content !important;
    min-width: 100%;
    margin: 0 !important;
    color: #212529;
    font-size: .82rem;
    background: #fff;
}

.citius-lista table > thead {
    position: sticky;
    top: 0;
    z-index: 3;
}

.citius-lista table > thead > tr > th {
    padding: .65rem .6rem;
    color: #fff;
    white-space: nowrap;
    vertical-align: middle;
    background: #252a30 !important;
    border-color: #3d434a;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.citius-lista table > tbody > tr > td {
    max-width: 34rem;
    padding: .5rem .6rem;
    color: #212529;
    vertical-align: middle;
    border-color: #e8eaed;
}

.citius-lista table > tbody > tr:hover > td {
    background-color: #fffbea;
}

.citius-lista th.acciones,
.citius-lista td.acciones {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 1%;
    min-width: 84px;
    white-space: nowrap;
}

.citius-lista th.acciones {
    z-index: 5;
}

.citius-lista td.acciones {
    background: inherit;
}

.citius-lista th.cbsel,
.citius-lista td.cbsel {
    width: 42px;
    min-width: 42px;
}

.citius-lista .lista-codigo {
    color: #8a9198;
    white-space: nowrap;
}

.citius-lista .lista-filter-chip {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .55rem;
    margin-bottom: .35rem;
    color: #343a40;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .45rem;
    font-size: .8rem;
}

.citius-lista .lista-filter-chip .btn-close {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    padding: .2rem;
}

.citius-lista .lista-filtros:empty {
    display: none;
}

.citius-lista .tablesorter-header {
    cursor: pointer;
}

.citius-lista .tablesorter-headerAsc::after,
.citius-lista .tablesorter-headerDesc::after {
    margin-left: .35rem;
    color: #ffe600;
}

.citius-lista .tablesorter-headerAsc::after {
    content: "▲";
}

.citius-lista .tablesorter-headerDesc::after {
    content: "▼";
}

@media (max-width: 767.98px) {
    .citius-lista .lista-toolbar {
        position: static;
    }

    .citius-lista table {
        font-size: .78rem;
    }

    .citius-lista table > thead > tr > th,
    .citius-lista table > tbody > tr > td {
        padding: .45rem .5rem;
    }

    .citius-lista th.acciones,
    .citius-lista td.acciones {
        position: static;
    }
}

/* Panel de filtros Bootstrap, aislado de los estilos heredados. */
.citius-lista .lista-filter-panel {
    overflow: visible;
    background: #fff;
}

.citius-lista .lista-filter-toggle {
    color: #212529;
    background: #fff;
    border: 0;
    border-radius: .65rem;
    text-align: left;
}

.citius-lista .lista-filter-toggle:hover,
.citius-lista .lista-filter-toggle:focus-visible {
    color: #111;
    background: #fffbea;
    box-shadow: none;
}

.citius-lista .lista-filter-panel .form-control,
.citius-lista .lista-filter-panel .form-select {
    width: 100% !important;
    min-width: 0;
    color: #212529;
    background-color: #fff;
    font-size: .875rem;
}

.citius-lista .lista-filter-value-disabled {
    opacity: .55;
}

.citius-lista .lista-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.citius-lista .lista-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    max-width: 100%;
    padding: .42rem .6rem;
    margin: 0;
    color: #343a40;
    background: #f8f9fa;
    border: 1px solid #dfe3e7;
    border-radius: 999px;
    font-size: .8rem;
    line-height: 1.25;
}

.citius-lista .lista-filter-chip > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.citius-lista .lista-filter-chip .btn-close {
    flex: 0 0 auto;
    width: .55rem;
    height: .55rem;
    padding: .18rem;
}

.citius-lista .lista-filter-empty {
    flex-basis: 100%;
}

.citius-lista .lista-filter-suggestions {
    position: absolute;
    top: calc(100% + .2rem);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 15rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: .45rem;
}

.citius-lista .lista-filter-suggestions[hidden] {
    display: none !important;
}

.citius-lista .lista-filter-feedback:empty {
    display: none;
}

@media (max-width: 767.98px) {
    .citius-lista .lista-filter-chip {
        width: 100%;
        border-radius: .55rem;
    }
}
