/* The F4 list window ("Ver todas") of ControlF4Grid and QueryControlF4Grid.
   The window shell (frame size, header, title, close button, shell) lives in jump-form.css, because other
   dialogs reuse those classes; this file holds what only the two F4 lists draw: the Blazored modal host,
   the search bar, the grid inside and the footer. It used to be a <style> block repeated in each component. */

/* The footer reuses the jump-dialog buttons, whose colours are variables declared on the jump-dialog shells
   only: the F4 window is not one of them, so it declares the ones the buttons read. */
.ctlf4-list-frame {
    --jump-dialog-surface: var(--app-page-card-bg, #fff);
    --jump-dialog-accent: #0057b8;
    --jump-dialog-control-border: #cfdded;
}

/* Blazored modal host: transparent, so only the frame is drawn. */
.ctlf4-list-modal-size {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

.ctlf4-list-modal .blazored-modal,
.ctlf4-list-modal.blazored-modal {
    z-index: 16000 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ctlf4-list-modal .bm-content,
.ctlf4-list-modal.blazored-modal .bm-content {
    overflow: visible !important;
}

.ctlf4-list-modal .bm-header,
.ctlf4-list-modal .blazored-modal-header {
    min-height: 54px;
    padding: 6px 8px 12px !important;
    border-bottom: 0;
}

/* Header: the entity icon on the left of the title. */
.ctlf4-list-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #0057b8;
    font-size: 17px;
    border: 1px solid #dbe7f6;
    border-radius: 8px;
    background: #eef5ff;
}

/* The load failure only holds a message and a button: it keeps its content's size. */
.ctlf4-list-frame.ctlf4-list-frame-message {
    height: auto;
    display: block;
}

.ctlf4-list-frame-message .ctlf4-list-shell {
    display: block;
    padding: 24px;
    text-align: center;
}

/* Search bar between the header and the grid. */
.ctlf4-list-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #e1eaf6;
    background: #fff;
}

.ctlf4-list-search-icon {
    color: #7890ad;
    font-size: 15px;
}

/* The field itself is JumpTextField and keeps its own look; the wrapper only sets the width. */
.ctlf4-list-search-box {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 520px;
}

/* "Ajustar Colunas" and "Colunas", on the right of the search box. */
.ctlf4-list-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* "Tamanho do texto": a narrow combo in the buttons' height, with no clear button (a size is always chosen). */
.ctlf4-list-text-size {
    width: 128px;
    --jump-ui-field-height: 34px;
}

.ctlf4-list-text-size .dxbl-edit-btn-clear {
    display: none;
}

/* "Filtros": how many of the class's predefined filters are ticked, in the operator's blue. */
.ctlf4-list-predefined-count {
    min-width: 16px;
    height: 16px;
    margin-left: 4px;
    padding: 0 4px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    background: #0057b8;
}

/* The predefined filters' menu: one tick per filter, drawn as the header's yes/no cells and the column chooser — the
   blue tick alone when ticked, a thin empty box when not. */
.ctlf4-predefined-item {
    min-width: 200px;
}

.ctlf4-predefined-check {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    color: #0057b8;
    font-size: 14px;
    vertical-align: middle;
}

.ctlf4-predefined-check:not(.ctlf4-predefined-check-on)::before {
    content: "";
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid #a9bdd6;
    border-radius: 3px;
    background: #fff;
}

/* The wait notice: alone in the middle on the first read, over the list while a search reads the database. */
.ctlf4-list-shell {
    position: relative;
}

.ctlf4-list-shell.ctlf4-list-shell-loading {
    min-height: 320px;
    align-items: center;
    justify-content: center;
}

/* The window never gets shorter than it opens: the shell keeps the loading window's height with the list on screen
   too, and the grid fills it, so a list with few or no records does not shrink the window under the user. It also
   holds the wait notice whole on the opening, while the grid has not drawn its body yet. */
.ctlf4-list-frame .ctlf4-list-shell {
    min-height: 320px;
}

.ctlf4-list-wait {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    color: #12396d;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #dbe7f6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 45, 90, .12);
}

/* JumpSpinner draws in the colour of the text: the wait notice's ring in the list's blue, a little larger. */
.ctlf4-list-wait .jump-ui-spinner {
    --jump-ui-spinner-size: 22px;
    --jump-ui-spinner-color: #0057b8;
}

.ctlf4-list-wait-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    transform: translate(-50%, -50%);
}

/* Grid: as tall as one page of rows (--ctlf4-list-page-rows, set by the component from the pager), plus the
   header, the filter row and the pager. The window grows with it and stops at the screen's height
   (jump-form.css), where the grid shrinks and its rows scroll. */
.ctlf4-list-frame {
    --ctlf4-list-row-size: 28px;
    --ctlf4-list-grid-chrome: 108px;
}

/* A list that fits in the smallest page has no pager (ControlF4Grid.ShowPager): its 39px band leaves the chrome. */
.ctlf4-list-frame.ctlf4-list-frame-no-pager {
    --ctlf4-list-grid-chrome: 69px;
}

/* Counters added from the column menu draw the grid's footer row, 26px and its border, below the rows. */
.ctlf4-list-frame.ctlf4-list-frame-counters {
    --ctlf4-list-grid-footer: 27px;
}

/* Text size ("Tamanho do texto", as on the Lists page): the cells' and headers' font, the cells' padding and the row
   height the grid's height is counted with (measured: 20.7, 24.7, 27.6 and 36.4px). Normal is the rules' own
   12px, 4px and 28px. The yes tick follows the size too: at 13px it held every row at 28px. */
.ctlf4-list-frame.ctlf4-list-text-xsmall {
    --ctlf4-list-bool-font-size: 11px;
    --ctlf4-list-cell-font-size: 10px;
    --ctlf4-list-header-font-size: 10px;
    --ctlf4-list-cell-padding-y: 2px;
    --ctlf4-list-row-size: 21px;
}

.ctlf4-list-frame.ctlf4-list-text-small {
    --ctlf4-list-bool-font-size: 12px;
    --ctlf4-list-cell-font-size: 11px;
    --ctlf4-list-header-font-size: 11px;
    --ctlf4-list-cell-padding-y: 3px;
    --ctlf4-list-row-size: 25px;
}

.ctlf4-list-frame.ctlf4-list-text-large {
    --ctlf4-list-bool-font-size: 15px;
    --ctlf4-list-cell-font-size: 14px;
    --ctlf4-list-header-font-size: 13px;
    --ctlf4-list-cell-padding-y: 7px;
    --ctlf4-list-row-size: 36.5px;
}

.ctlf4-list-frame .ctlf4-list-shell > .ctlf4-list-grid {
    flex: 0 1 auto;
    /* The shell's minimum less its 12px padding above and below (jump-form.css). */
    min-height: calc(320px - 24px);
    height: calc(var(--ctlf4-list-page-rows, 20) * var(--ctlf4-list-row-size) + var(--ctlf4-list-grid-chrome) + var(--ctlf4-list-grid-footer, 0px));
}

.ctlf4-list-grid {
    border: 1px solid #dce6f1 !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #fff;
    font-variant-numeric: tabular-nums;
}

.ctlf4-list-grid .dxbl-grid-toolbar-container {
    padding: 8px 12px !important;
    border-bottom: 1px solid #dce8f5 !important;
    background: #fbfdff !important;
}

.ctlf4-list-grid .dxbl-toolbar {
    width: 100%;
}

/* Toolbar buttons only: the spin buttons of a numeric filter-row cell are .dxbl-btn too, and a 30px
   minimum on each of the two stacked ones doubled the filter row's height. */
.ctlf4-list-grid .dxbl-grid-toolbar-container .dxbl-btn {
    min-height: 30px;
    color: #12396d !important;
    font-size: 13px;
    font-weight: 500;
    border-color: #c9d9ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ctlf4-list-grid .dxbl-grid-toolbar-container .dxbl-btn:hover {
    color: #0057b8 !important;
    border-color: #acd2ff !important;
    background: #eff6ff !important;
}

.ctlf4-list-grid .dxbl-grid-group-panel {
    min-height: 44px;
    padding: 10px 14px !important;
    color: #5f7591 !important;
    font-size: 12px;
    border-bottom: 1px solid #dce8f5 !important;
    background: #f7fbff !important;
}

.ctlf4-list-grid .dxbl-grid-table > thead > tr,
.ctlf4-list-grid .dxbl-grid-table th {
    background: #f5f8fc !important;
}

/* Headers and cells in the type of the default lists (.jump-grid-header-cell and .jump-grid-data-cell in
   devexpress-grid.css), so the F4 list reads like every other grid: the application's font, 12px, the header at
   800 and the values regular. The caption sits in DevExpress' own header content, which sets 600 by itself. */
.ctlf4-list-grid .dxbl-grid-table th,
.ctlf4-list-grid .dxbl-grid-table th .dxbl-grid-header-content,
.ctlf4-list-grid .dxbl-grid-table th .dxbl-grid-header-content span {
    font-weight: 800 !important;
}

.ctlf4-list-grid .dxbl-grid-table th {
    color: #244b7d !important;
    font-size: var(--ctlf4-list-header-font-size, 12px) !important;
    letter-spacing: 0;
    border-color: #e1eaf4 !important;
}

/* Alignment by data type (ControlF4Grid.OnListCustomizeElement): numbers have the header centred and the values
   on the right, dates are centred in both, text sits on the left in both. */
.ctlf4-list-grid .dxbl-grid-table th.ctlf4-col-number .dxbl-grid-header-content,
.ctlf4-list-grid .dxbl-grid-table th.ctlf4-col-date .dxbl-grid-header-content {
    justify-content: center;
    text-align: center;
}

.ctlf4-list-grid .dxbl-grid-table th.ctlf4-col-text .dxbl-grid-header-content {
    justify-content: flex-start;
    text-align: left;
}

.ctlf4-list-grid .dxbl-grid-table td.ctlf4-col-number {
    text-align: right !important;
}

.ctlf4-list-grid .dxbl-grid-table td.ctlf4-col-date {
    text-align: center !important;
}

.ctlf4-list-grid .dxbl-grid-table td.ctlf4-col-text {
    text-align: left !important;
}

/* The filter row in the height of a data row (28px): 22px editors and 2px above and below them. */
.ctlf4-list-grid .dxbl-grid-filter-row td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    background: #fff !important;
    border-color: #e1eaf4 !important;
}

.ctlf4-filter-cell .dxbl-text-edit {
    height: 22px !important;
    min-height: 22px !important;
}

.ctlf4-filter-cell .dxbl-text-edit input {
    height: 20px !important;
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox {
    height: 22px !important;
    min-height: 0 !important;
}

.ctlf4-filter-cell .dxbl-text-edit .dxbl-btn {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* The grid draws a 2px focus outline round the filter cell being typed in; the editor's own focus is enough. */
.ctlf4-list-grid .dxbl-grid-filter-row td,
.ctlf4-list-grid .dxbl-grid-filter-row td:focus,
.ctlf4-list-grid .dxbl-grid-filter-row td:focus-within {
    outline: none !important;
}

/* Filter cell: the comparison button, then the editor filling the rest. */
.ctlf4-filter-cell {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.ctlf4-filter-cell > :not(.ctlf4-filter-operator) {
    flex: 1 1 auto;
    min-width: 0;
}

.ctlf4-filter-cell .ctlf4-filter-operator,
.ctlf4-filter-cell .ctlf4-filter-operator .dxbl-btn {
    flex: 0 0 auto;
    min-width: 22px;
    min-height: 22px;
    height: 22px;
    padding: 0 4px !important;
    border-radius: 4px !important;
    color: #0057b8 !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* A filter cell not used yet: a plain button that looks like the cell it becomes — its comparison in the operator's
   blue, an empty field after it — and builds the editor when clicked or reached with Tab. */
.ctlf4-filter-cell .ctlf4-filter-idle {
    flex: 1 1 auto;
    min-width: 0;
    height: 22px;
    display: flex;
    align-items: center;
    /* The comparison sits at the left, where the editor's own operator button appears once the cell is opened. */
    justify-content: flex-start;
    text-align: left;
    padding: 0 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: text;
}

.ctlf4-filter-cell .ctlf4-filter-idle:hover,
.ctlf4-filter-cell .ctlf4-filter-idle:focus-visible {
    outline: none;
    background: #f3f8ff;
}

.ctlf4-filter-idle-operator {
    color: #0057b8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* A yes/no filter cell: one button turning empty → yes → no → empty, drawn as the chooser's checks: a light dash
   for no filter, the blue tick for yes, a thin empty box for no. */
.ctlf4-filter-cell .ctlf4-filter-check {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    padding: 0;
    color: #0057b8;
    font-size: 14px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.ctlf4-filter-cell .ctlf4-filter-check:hover,
.ctlf4-filter-cell .ctlf4-filter-check:focus-visible {
    outline: none;
    background: #f3f8ff;
}

.ctlf4-filter-check-any::before {
    content: "";
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: #a9bdd6;
}

.ctlf4-filter-check-no::before {
    content: "";
    width: 14px;
    height: 14px;
    box-sizing: border-box;
    border: 1px solid #a9bdd6;
    border-radius: 3px;
    background: #fff;
}

.ctlf4-filter-cell .ctlf4-filter-number {
    text-align: right;
}

/* The filter editors draw neither fill nor frame: the cell's own grid lines already box them, and the theme's grey
   fill made the header row look disabled. The editor being typed in takes the idle cell's light hover fill. */
.ctlf4-filter-cell .dxbl-text-edit,
.ctlf4-filter-cell .dxbl-text-edit input {
    background: transparent !important;
}

.ctlf4-filter-cell .dxbl-text-edit {
    border-color: transparent !important;
    box-shadow: none !important;
}

.ctlf4-filter-cell .dxbl-text-edit:focus-within {
    background: #f3f8ff !important;
}

/* The filter values in the size of the cells below them. */
.ctlf4-filter-cell .dxbl-text-edit input {
    font-size: var(--ctlf4-list-cell-font-size, 12px) !important;
}

/* The menu opens in a DevExpress portal, outside the modal; the modal sits at 16000. */
.ctlf4-filter-operator-menu,
.dxbl-popup-root:has(.ctlf4-filter-operator-menu) {
    z-index: 16050 !important;
}

.ctlf4-filter-operator-menu .dxbl-btn {
    white-space: pre;
    font-size: 13px;
}

.ctlf4-filter-operator-menu .ctlf4-filter-operator-current {
    color: #0057b8 !important;
    font-weight: 700;
    background: #eef5ff !important;
}

/* !important: the DevExpress theme sets the cells' size itself, and a plain 12px here never applied (they read 14px). */
/* The rows sit on a lighter ground than DevExpress' grey-blue (#f5f7fa), and so does the empty space under them. */
.ctlf4-list-grid .dxbl-grid-table,
.ctlf4-list-grid .dxbl-scroll-viewer {
    background-color: #fbfcfe !important;
}

/* The keyboard moves through the rows (the focused row follows the cell, jumpControlF4.registerRowFollowsCellFocus):
   the row's highlight shows where it is, without a frame round one of its cells. */
.ctlf4-list-grid .dxbl-grid-table > tbody > tr > td:focus,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr > td:focus-visible {
    outline: none !important;
}

.ctlf4-list-grid .dxbl-grid-table td {
    padding-top: var(--ctlf4-list-cell-padding-y, 4px) !important;
    padding-bottom: var(--ctlf4-list-cell-padding-y, 4px) !important;
    color: #153b6f;
    font-size: var(--ctlf4-list-cell-font-size, 12px) !important;
    font-weight: 400;
    border-color: #edf2f8 !important;
    vertical-align: middle;
}

.ctlf4-list-grid .dxbl-grid-table > tbody > tr:hover {
    background: #f2f8ff !important;
    cursor: pointer;
}

/* The focused row stays readable: a light tint and an accent bar, not a solid block with white text. */
.ctlf4-list-grid .dxbl-grid-focused-row,
.ctlf4-list-grid .dxbl-grid-selected-row {
    background: #e4f0ff !important;
    box-shadow: inset 3px 0 0 #0057b8;
}

.ctlf4-list-grid .dxbl-grid-focused-row td,
.ctlf4-list-grid .dxbl-grid-selected-row td {
    color: #0b2f5f !important;
}

/* The focused row under the mouse: the DevExpress theme paints its cells dark blue, so the text turns white. */
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:hover td,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-selected-row:hover td,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:hover td .ctlf4-list-code,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-selected-row:hover td .ctlf4-list-code,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:hover td .ctlf4-list-bool-yes,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-selected-row:hover td .ctlf4-list-bool-yes {
    color: #fff !important;
}

/* The search highlight keeps its yellow and dark text there. */
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row:hover td .ctlf4-list-highlight,
.ctlf4-list-grid .dxbl-grid-table > tbody > tr.dxbl-grid-selected-row:hover td .ctlf4-list-highlight {
    color: #0b2f5f !important;
}

.ctlf4-list-highlight {
    padding: 0 1px;
    color: inherit;
    background: #fff19d;
    border-radius: 2px;
}

/* The lookup's code column: the same typeface, set apart by weight and colour only. */
.ctlf4-list-code {
    color: #1d4f8f;
    font-weight: 400;
}

/* A yes/no cell shows this tick for yes and nothing for no or empty. */
.ctlf4-list-bool-yes {
    color: #15803d;
    font-size: var(--ctlf4-list-bool-font-size, 13px);
}

/* Pager: dressed like the filter bar and the footer below it — the same band, 12px text, and small separate
   buttons with the blue outline of the joints and the "Limpar filtros" button. */
/* The band keeps its 39px; its controls are 24px, the height of the filter bar's chips. */
.ctlf4-list-grid .dxbl-grid-bottom-panel {
    align-items: center;
    padding: 7px 12px !important;
    color: #557097;
    font-size: 12px;
    border-top: 1px solid #e1eaf6 !important;
    background: #fbfdff;
}

/* DevExpress spaces its pager parts with a bottom margin, which left the band taller below than above. */
.ctlf4-list-grid .dxbl-grid-bottom-panel > * {
    margin-bottom: 0 !important;
}

.ctlf4-list-grid .dxbl-grid-bottom-panel .dxbl-pager {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ctlf4-list-grid .dxbl-pager > .dxbl-btn {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    margin: 0 !important;
    padding: 0 !important;
    color: #12396d !important;
    border: 1px solid #c9d9ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ctlf4-list-grid .dxbl-pager > .dxbl-btn,
.ctlf4-list-grid .dxbl-pager > .dxbl-btn .dxbl-image {
    font-size: 12px;
}

.ctlf4-list-grid .dxbl-pager > .dxbl-btn .dxbl-image {
    width: 14px;
    height: 14px;
}

.ctlf4-list-grid .dxbl-pager > .dxbl-btn:not(.dxbl-disabled):hover {
    color: #0057b8 !important;
    border-color: #acd2ff !important;
    background: #eff6ff !important;
}

.ctlf4-list-grid .dxbl-pager > .dxbl-btn.dxbl-disabled {
    opacity: 0.45;
}

/* The page number box and the page size choice: white, outlined, 24px, like the chip editors' focus frame. */
.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit,
.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit {
    height: 24px;
    min-height: 24px;
    margin: 0 !important;
    color: #0b2f5f;
    font-size: 12px;
    border: 1px solid #c9d9ec !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit {
    width: 3em !important;
    margin-left: 4px !important;
}

.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit input {
    text-align: center;
}

.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit:focus-within,
.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit:focus-within {
    border-color: #0057b8 !important;
}

.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit-text,
.ctlf4-list-grid .dxbl-pager-page-size-selector label {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    color: #557097;
    font-size: 12px;
}

.ctlf4-list-grid .dxbl-pager .dxbl-pager-page-edit-text {
    margin-right: 4px;
}

.ctlf4-list-grid .dxbl-pager-page-size-selector {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* The size choice in the page box's scale: a narrow arrow with a 10px icon, the number in the box's padding. */
.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit {
    width: 52px;
}

.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit input {
    padding: 0 0 0 6px !important;
    font-size: 12px;
}

.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit .dxbl-btn {
    min-height: 0;
    width: 18px;
    padding: 0 !important;
    color: #12396d !important;
    background: transparent !important;
}

.ctlf4-list-grid .dxbl-pager-page-size-selector .dxbl-text-edit .dxbl-btn .dxbl-image {
    width: 10px;
    height: 10px;
}

/* Column chooser ("Colunas"): DevExpress draws it in a window of its own, outside the list, with no class to give it
   (DxGrid.ShowColumnChooser takes none). It is matched while the list is open, which leaves the other grids' choosers
   as they are, and drawn in the list's scale: 12px text, rows of the grid's height, the blue of its headers. */
body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-dialog {
    width: 240px !important;
    border-color: #dce6f1 !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 57, 109, 0.16) !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-dialog .dxbl-window-header {
    min-height: 0 !important;
    padding: 6px 8px 6px 12px !important;
    color: #12396d !important;
    border-bottom-color: #e1eaf6 !important;
    background: #fbfdff !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-dialog .dxbl-window-header-default {
    height: auto !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-dialog .dxbl-window-header .dxbl-btn {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0 !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item {
    min-height: 0 !important;
    padding: 0 0 0 10px !important;
    color: #153b6f !important;
    font-size: 12px !important;
    border-bottom-color: #edf2f8 !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item:hover {
    background: #f3f8ff !important;
}

/* The editor's own row is 30px tall: the chooser's rows take the grid's 26px. */
body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox {
    min-height: 0 !important;
    height: 26px !important;
}

/* DevExpress sizes its check box from this variable (1.25rem, 20px): smaller in the list's filter row and in the
   chooser, in the scale of their 12px text. */
.ctlf4-list-grid .dxbl-checkbox,
body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox {
    --dxbl-checkbox-check-element-size: 14px;
}

/* A lighter tick, in the chooser and in the yes/no filter cells of the header: checked shows the blue tick alone, with
   no box behind it; unchecked an empty box with a thin border; the filter cell's third state (no filter) a light dash,
   with no box either. */
body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox-checked .dxbl-checkbox-check-element,
.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-checked .dxbl-checkbox-check-element,
.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-indeterminate .dxbl-checkbox-check-element {
    background: transparent !important;
    box-shadow: none !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox-checked .dxbl-checkbox-check-element svg,
.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-checked .dxbl-checkbox-check-element svg {
    color: #0057b8 !important;
    fill: #0057b8 !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox-unchecked .dxbl-checkbox-check-element,
.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-unchecked .dxbl-checkbox-check-element {
    background: transparent !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox-unchecked .dxbl-checkbox-check-element::before,
.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-unchecked .dxbl-checkbox-check-element::before {
    border: 1px solid #a9bdd6 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

.ctlf4-list-grid .dxbl-grid-filter-row .dxbl-checkbox-indeterminate .dxbl-checkbox-check-element::before {
    background: #a9bdd6 !important;
}

/* The label keeps the check box's 24px: a line as tall centres its text in it instead of leaving it at the top, and
   a long name still ends in an ellipsis. */
body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox {
    align-items: center !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item .dxbl-checkbox-label-ellipsis {
    height: 24px !important;
    padding: 0 0 0 8px !important;
    font-size: 11px !important;
    line-height: 24px !important;
}

/* Column funnel (the grid's filter menu): also drawn outside the list, matched while it is open, and in the chooser's
   scale — 12px text, rows of 24px, a compact search and footer, the same light ticks. */
body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown {
    width: 260px !important;
    min-width: 0 !important;
    color: #153b6f;
    font-size: 12px !important;
    border-color: #dce6f1 !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(18, 57, 109, 0.16) !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-dropdown-header {
    min-height: 0 !important;
    padding: 6px 12px !important;
    color: #12396d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e1eaf6 !important;
    background: #fbfdff !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-dropdown-body,
body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box {
    font-size: 12px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box-search-container {
    padding: 6px 8px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-text-edit {
    min-height: 0 !important;
    height: 26px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-text-edit input {
    font-size: 12px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box-search-container .dxbl-btn {
    min-height: 0 !important;
    height: 24px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box-select-all-container,
body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-list-box li {
    min-height: 0 !important;
    height: 24px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox {
    --dxbl-checkbox-check-element-size: 14px;
    min-height: 0 !important;
    height: 24px !important;
    align-items: center !important;
    font-size: 12px !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox-checked .dxbl-checkbox-check-element,
body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox-indeterminate .dxbl-checkbox-check-element,
body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox-unchecked .dxbl-checkbox-check-element {
    background: transparent !important;
    box-shadow: none !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox-checked .dxbl-checkbox-check-element svg {
    color: #0057b8 !important;
    fill: #0057b8 !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-checkbox-unchecked .dxbl-checkbox-check-element::before {
    border: 1px solid #a9bdd6 !important;
    border-radius: 3px !important;
    background: #fff !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-dropdown-footer {
    padding: 6px 8px !important;
    border-top: 1px solid #e1eaf6 !important;
    background: #fbfdff !important;
}

body:has(.ctlf4-list-frame) .dxbl-filter-menu-dropdown .dxbl-dropdown-footer .dxbl-btn {
    min-height: 0 !important;
    height: 26px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item-drag-anchor {
    padding: 0 8px !important;
    color: #8aa6c8 !important;
}

body:has(.ctlf4-list-frame) .dxbl-grid-column-chooser-item-drag-anchor .dxbl-image {
    width: 12px !important;
    height: 12px !important;
}

/* Filter bar, above the footer: the conditions the list is read with, as removable chips. */
.ctlf4-list-filterbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-top: 1px solid #e1eaf6;
    background: #fbfdff;
}

.ctlf4-list-filterbar-title {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #12396d;
    font-size: 12px;
    font-weight: 700;
}

/* The joint between two conditions: a small "E" / "OU" switch; "OU" stands out, with its group in parentheses. */
.ctlf4-list-filter-joint {
    min-width: 30px;
    padding: 1px 6px;
    color: #557097;
    font-size: 11px;
    font-weight: 700;
    /* The keys "E"/"OU" share the dictionary rows "e"/"ou" (looked up ignoring case), translated in lower case. */
    text-transform: uppercase;
    border: 1px solid #c9d9ec;
    border-radius: 6px;
    background: #fff;
}

.ctlf4-list-filter-joint:hover {
    color: #0057b8;
    border-color: #acd2ff;
}

.ctlf4-list-filter-joint.ctlf4-list-filter-joint-or {
    color: #fff;
    border-color: #0057b8;
    background: #0057b8;
}

/* A parenthesis between two small arrows that move it one condition left or right: out of its group widens it,
   into it narrows it. The arrows stay faint until the parenthesis is pointed at. */
.ctlf4-list-filter-paren-box {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
}

.ctlf4-list-filter-paren-box:hover,
.ctlf4-list-filter-paren-box:focus-within {
    background: #eef5ff;
}

.ctlf4-list-filter-paren {
    padding: 0 1px;
    color: #0057b8;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.ctlf4-list-filter-paren-move {
    width: 14px;
    height: 20px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #8aa6c8;
    font-size: 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.ctlf4-list-filter-paren-box:hover .ctlf4-list-filter-paren-move,
.ctlf4-list-filter-paren-move:focus-visible {
    color: #0057b8;
}

.ctlf4-list-filter-paren-move:hover,
.ctlf4-list-filter-paren-move:focus-visible {
    background: #d6e8ff;
}

.ctlf4-list-filterbar-chips {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Each block wraps as one: its width is that of its chips side by side, so the conditions move to the next line
   together when they do not fit beside the sort and the search, and only break among themselves when even a whole
   line is too short for them. */
.ctlf4-list-filterbar-group {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.ctlf4-list-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 2px 4px 2px 10px;
    color: #0b2f5f;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid #acd2ff;
    border-radius: 999px;
    background: #eef5ff;
}

/* The comparison inside a condition opens the same menu as the column's filter cell. */
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-operator,
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-operator.dxbl-btn,
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-operator .dxbl-btn {
    min-width: 0;
    min-height: 0;
    padding: 0 4px !important;
    color: #0057b8 !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    border-radius: 4px !important;
}

.ctlf4-list-filter-chip .ctlf4-list-filter-chip-operator:hover,
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-operator .dxbl-btn:hover {
    background: #d6e8ff !important;
}

.ctlf4-list-filter-chip-search {
    border-style: dashed;
}

/* The sort is not a condition: a neutral chip, its arrow in the blue of the headers. */
.ctlf4-list-filter-chip.ctlf4-list-filter-chip-sort {
    border-color: #c9d9ec;
    background: #fff;
}

.ctlf4-list-filter-chip-sort .ctlf4-list-filter-chip-caption {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ctlf4-list-filter-chip-sort .ctlf4-list-filter-chip-caption .bi {
    color: #0057b8;
    font-size: 13px;
}

.ctlf4-list-filter-chip .ctlf4-list-filter-remove {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

/* The caption of a condition: a link-like button to the column's filter cell. */
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-caption {
    padding: 0;
    color: inherit;
    font: inherit;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ctlf4-list-filter-chip .ctlf4-list-filter-chip-caption:hover,
.ctlf4-list-filter-chip .ctlf4-list-filter-chip-caption:focus-visible {
    color: #0057b8;
    text-decoration: underline;
}

/* The value's editor, inside the chip: no caption, no frame of its own beyond a thin line, as wide as its value. */
.ctlf4-list-filter-chip-value {
    display: inline-flex;
    align-items: center;
}

.ctlf4-list-filter-chip-value .jump-ui-field {
    margin: 0;
    gap: 0;
}

.ctlf4-list-filter-chip-value input.jump-ui-control {
    field-sizing: content;
    min-width: 3ch;
    max-width: 22ch;
    height: 20px;
    min-height: 20px;
    padding: 0 4px;
    color: #0b2f5f;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
}

.ctlf4-list-filter-chip-value input.jump-ui-control:hover {
    border-color: #acd2ff;
    background: #fff;
}

.ctlf4-list-filter-chip-value input.jump-ui-control:focus {
    border-color: #0057b8;
    outline: none;
    background: #fff;
}

.ctlf4-list-filter-chip-value .jump-ui-control--number {
    text-align: right;
}

/* The yes/no of a condition draws as the header's filter cell and the column chooser do (JumpCheckbox's own tokens):
   checked is the blue tick with no box, unchecked an empty box with a thin border, both 14px. */
.ctlf4-list-filter-chip-value .jump-ui-check-input {
    --jump-ui-check-size: 14px;
    --jump-ui-check-mark-size: 12px;
    --jump-ui-check-radius: 3px;
    --jump-ui-check-border-width: 1px;
    --jump-ui-check-border: #a9bdd6;
    --jump-ui-check-background: #fff;
    --jump-ui-check-checked: transparent;
    --jump-ui-check-mark: #0057b8;
}

.ctlf4-list-filter-chip-value .dxbl-date-edit {
    width: 13ch;
    min-height: 20px;
    font-size: 12px;
}

.ctlf4-list-filter-chip-value .dxbl-date-edit input {
    height: 18px;
    padding: 0 4px;
    font-size: 12px;
    font-weight: 600;
}

/* Removing a condition reads in red, like "Limpar filtros". */
.ctlf4-list-filter-chip .ctlf4-list-filter-remove:hover,
.ctlf4-list-filter-chip .ctlf4-list-filter-remove:focus-visible {
    color: #fff;
    background: #b42318;
}

.ctlf4-list-filterbar-clear {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    color: #b42318;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #f3c7c2;
    border-radius: 6px;
    background: #fff;
}

.ctlf4-list-filterbar-clear:hover {
    background: #fdecea;
}

/* Footer: count and keyboard hints on the left, actions on the right. */
.ctlf4-list-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid #e1eaf6;
    background: #fbfdff;
}

.ctlf4-list-footer-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: #557097;
    font-size: 12px;
}

.ctlf4-list-footer-count {
    color: #12396d;
    font-weight: 700;
}

/* "Mostrar todos", beside the count while the list holds only its first records: the outline of "Limpar filtros", in
   the list's blue. */
.ctlf4-list-load-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    color: #0057b8;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #acd2ff;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.ctlf4-list-load-all:hover,
.ctlf4-list-load-all:focus-visible {
    background: #eff6ff;
}

.ctlf4-list-footer-keys kbd {
    padding: 1px 5px;
    color: #12396d;
    font-family: inherit;
    font-size: 11px;
    border: 1px solid #cfdded;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.ctlf4-list-footer .jump-ui-button {
    min-width: 110px;
}

@media (max-width: 760px) {
    .ctlf4-list-footer-keys {
        display: none;
    }
}
