/**
 * @package         Joomla.Site
 * @subpackage      com_nextdb
 *
 * @copyright       (C) 2026 NextSoftware Team <https://nextsoftware.dev/>
 * @license         GNU General Public License version 2 or later; see LICENSE.txt
 *
 * Frontend Data View styles. The table chrome (layout, sort icons, paging, search box, info text,
 * processing/empty states) now comes from DataTables' Bootstrap 5 integration + Cassiopeia's `.table`.
 * Only the app-specific cell chrome (chips, booleans, images, the detail panel) and print rules live
 * here, plus the per-column range-filter layout.
 */

.nextdb-dv {
    width: 100%;
}

.nextdb-dv-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.75rem;
}

.nextdb-dv-actions {
    display: flex;
    gap: 0.5rem;
}

/* Per-column "from / to" range filters (numeric + date). */
.nextdb-dv-range {
    display: flex;
    gap: 0.25rem;
}

/* Detail child-row panel (rendered by ViewRenderer::renderDetail). */
.nextdb-dv-detail {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.25rem 1rem;
    margin: 0;
}

.nextdb-dv-detail dt {
    font-weight: 600;
}

.nextdb-dv-detail dd {
    margin: 0;
}

/* App-specific cell renderings emitted by ViewRenderer. */
.nextdb-dv-chip {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.85em;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.08);
}

.nextdb-dv-bool.is-true {
    color: #2e7d32;
}

.nextdb-dv-bool.is-false {
    color: #b0b0b0;
}

.nextdb-dv-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.nextdb-dv-noscript {
    padding: 1rem;
    text-align: center;
    opacity: 0.7;
}

@media print {
    .nextdb-dv-toolbar,
    .nextdb-dv-filter-row,
    .nextdb-dv .dt-search,
    .nextdb-dv .dt-info,
    .nextdb-dv .dt-paging,
    td.dt-control {
        display: none !important;
    }
}
