﻿.dx-datagrid-header-panel .dx-button {
    margin: 10px 0;
}

.dx-datagrid-header-panel .dx-toolbar-items-container {
    height: 50px;
}

/* Responsive toolbar overflow menu: keep button text/icon visible when items collapse. */
.dx-toolbar-menu-section .dx-button .dx-button-text {
    display: inline !important;
    color: #333 !important;
}
.dx-toolbar-menu-section .dx-button .dx-icon {
    color: #333 !important;
}
.dx-toolbar-menu-section .dx-button {
    justify-content: flex-start !important;
    background-color: transparent !important;
}

/* ============================================================
   Focused-row legibility — applies to every dxDataGrid.
   DevExtreme paints the focused row dark blue which makes default
   text & translucent badges hard to read. Force high-contrast text
   and flip pill backgrounds to solid white so colored text stays
   readable.
   ============================================================ */

.dx-datagrid .dx-row-focused.dx-data-row,
.dx-datagrid .dx-row-focused.dx-data-row > td {
    color: #ffffff !important;
}

.dx-datagrid .dx-row-focused.dx-data-row a,
.dx-datagrid .dx-row-focused.dx-data-row .dx-link {
    color: #ffffff !important;
    text-decoration: underline;
}

/* Shared pill (badge) used by status / priority / tag cells. Pages
   add the class via cellTemplate and supply color via inline style. */
.ticket-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
    line-height: 1.4;
}

/* When the row is focused, flip pills to a solid white fill so the
   colored text + colored border remain legible on the dark-blue row. */
.dx-datagrid .dx-row-focused .ticket-pill {
    background-color: #ffffff !important;
}
