/* shared data-grid header overrides */
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead {
    background-color: #e7ebf0 !important;
}

body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot th,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead th,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th {
    background-color: #e7ebf0 !important;
    color: #475569 !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
}

body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot .dxbl-btn,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot button,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot svg,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot .dxbl-image,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead .dxbl-btn,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead button,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead svg,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead .dxbl-image,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th .dxbl-btn,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th button,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th svg,
body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th .dxbl-image {
    color: #b0b8c4 !important;
    fill: #b0b8c4 !important;
    stroke: #b0b8c4 !important;
    opacity: 0.58 !important;
}

html.theme-dark body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
html.theme-dark body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
body.theme-dark :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
body.theme-dark :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead {
    background-color: #162338 !important;
}

html.theme-dark body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot th,
html.theme-dark body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead th,
html.theme-dark body :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th,
body.theme-dark :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot th,
body.theme-dark :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead th,
body.theme-dark :is(.process-grid, .party-grid, .companies-grid, .users-grid) .dxbl-grid-header-row > th {
    background-color: #162338 !important;
    color: #dbeafe !important;
}

/* vessel-grid-global header overrides */
body .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
body .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
html.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
html.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
body.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
body.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot {
    background-color: #dbe3ee !important;
}

body .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table thead th {
    background-color: #dbe3ee !important;
    color: #3f526f !important;
    min-height: 36px !important;
}

body .vessel-grid .dxbl-grid-column-header .dxbl-grid-filter-row-apply-button,
body .vessel-grid .dxbl-grid-column-header .dxbl-image,
body .vessel-grid .dxbl-grid-filter-menu-button,
body .vessel-grid thead .dxbl-btn {
    color: #94a3b8 !important;
    opacity: 0.55 !important;
}

html.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
html.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot,
body.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > thead,
body.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table > tfoot {
    background-color: #223049 !important;
}

html.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table thead th,
body.theme-dark .vessel-grid > .dxbl-scroll-viewer > .dxbl-scroll-viewer-content > .dxbl-grid-table thead th {
    background-color: #223049 !important;
    color: #d9e4f3 !important;
}

html.theme-dark .vessel-grid .dxbl-grid-column-header .dxbl-grid-filter-row-apply-button,
html.theme-dark .vessel-grid .dxbl-grid-column-header .dxbl-image,
html.theme-dark .vessel-grid .dxbl-grid-filter-menu-button,
html.theme-dark .vessel-grid thead .dxbl-btn,
body.theme-dark .vessel-grid .dxbl-grid-column-header .dxbl-grid-filter-row-apply-button,
body.theme-dark .vessel-grid .dxbl-grid-column-header .dxbl-image,
body.theme-dark .vessel-grid .dxbl-grid-filter-menu-button,
body.theme-dark .vessel-grid thead .dxbl-btn {
    color: #9fb0c9 !important;
    opacity: 0.52 !important;
}

:is(.process-grid-card, .party-grid-card, .vessel-grid-card, .companies-grid-card, .users-grid-card) {
    min-height: var(--grid-fit-card-height, auto);
}

:is(.process-grid-card, .party-grid-card, .vessel-grid-card, .companies-grid-card, .users-grid-card) > .dxbl-grid {
    min-height: calc(var(--grid-fit-card-height, 360px) - 2.75rem);
}

.vessel-grid-card--loading {
    min-height: 360px;
}


.app-grid-12 {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
}

.app-grid-12 > * {
    min-width: 0;
}

.app-grid-12--stretch {
    align-items: stretch;
}

.app-grid-12--stretch > * {
    height: 100%;
}

.app-grid-12__span-1 { grid-column: span 1; }
.app-grid-12__span-2 { grid-column: span 2; }
.app-grid-12__span-3 { grid-column: span 3; }
.app-grid-12__span-4 { grid-column: span 4; }
.app-grid-12__span-5 { grid-column: span 5; }
.app-grid-12__span-6 { grid-column: span 6; }
.app-grid-12__span-7 { grid-column: span 7; }
.app-grid-12__span-8 { grid-column: span 8; }
.app-grid-12__span-9 { grid-column: span 9; }
.app-grid-12__span-10 { grid-column: span 10; }
.app-grid-12__span-11 { grid-column: span 11; }
.app-grid-12__span-12 { grid-column: span 12; }

.party-tab-geral__top-grid {
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
}

.party-tab-geral__main-grid,
.party-tab-geral__address-grid {
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.app-grid-12.party-tab-geral__top-grid > .app-grid-12__span-9,
.app-grid-12.party-tab-geral__top-grid > .app-grid-12__span-3,
.app-grid-12.party-tab-geral__main-grid > .app-grid-12__span-8,
.app-grid-12.party-tab-geral__main-grid > .app-grid-12__span-4,
.app-grid-12.party-tab-geral__address-grid > .app-grid-12__span-8,
.app-grid-12.party-tab-geral__address-grid > .app-grid-12__span-4 {
    grid-column: auto;
}

@media (max-width: 992px) {
    .app-grid-12 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .app-grid-12__span-7,
    .app-grid-12__span-8,
    .app-grid-12__span-9,
    .app-grid-12__span-10,
    .app-grid-12__span-11,
    .app-grid-12__span-12 {
        grid-column: span 6;
    }

    .party-tab-geral__top-grid,
    .party-tab-geral__main-grid,
    .party-tab-geral__address-grid {
        grid-template-columns: 1fr;
    }

    .app-grid-12.party-tab-geral__top-grid > *,
    .app-grid-12.party-tab-geral__main-grid > *,
    .app-grid-12.party-tab-geral__address-grid > * {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .app-grid-12 {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .app-grid-12 > * {
        grid-column: 1 / -1 !important;
    }
}

.grid-nowrap .dxbl-grid-table td,
.grid-nowrap .dxbl-grid-table th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.process-grid td,
.process-grid td *,
.process-grid .dxbl-grid-table td,
.process-grid .dxbl-grid-table td *,
.process-grid .dxbl-grid-data-row td,
.process-grid .dxbl-grid-data-row td * {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.process-grid .dxbl-grid-filter-menu-button,
.process-grid .dxbl-grid-filter-menu-button *,
.process-grid .dxbl-grid-header-content,
.process-grid .dxbl-grid-header-content *,
.process-grid .dxbl-grid-header-row > th button,
.process-grid .dxbl-grid-header-row > th button * {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: visible !important;
    pointer-events: auto !important;
    text-overflow: clip !important;
}

.process-grid .dxbl-grid-filter-menu-button {
    position: relative;
    z-index: 2;
}

.process-grid .dxbl-grid-table,
.process-grid .dxbl-grid-table table {
    font-size: 0.88rem;
}

.process-grid .dxbl-grid-header-row > th,
.process-grid .dxbl-grid-filter-row > td,
.process-grid .dxbl-grid-data-row > td {
    padding: 0.28rem 0.45rem !important;
}

.process-grid .dxbl-grid-header-row > th {
    height: 30px !important;
    font-size: 0.84rem;
}

.process-grid .dxbl-grid-filter-row > td,
.process-grid .dxbl-grid-data-row > td {
    height: 28px !important;
    line-height: 1.15 !important;
}

.process-grid .dxbl-grid-group-panel,
.process-grid .dxbl-grid-pager {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.process-grid tr.dxbl-grid-data-row.dx-state-focused > td .app-inline-meta,
.process-grid tr.dxbl-grid-data-row.dx-state-selected > td .app-inline-meta,
.process-grid tr.dxbl-grid-focused-row > td .app-inline-meta,
.process-grid tr[aria-selected="true"] > td .app-inline-meta {
    color: #ffffff !important;
}
