﻿
/* Darken primary surfaces while keeping Carmine accents */
.dx-theme-generic .dx-widget {
    color: #111827;
}
/* text (near-black) */
.dx-theme-generic .dx-datagrid-rowsview {
    background: #f7f7fa;
}
/* grid body */
.dx-theme-generic .dx-datagrid-headers,
.dx-theme-generic .dx-toolbar,
.dx-theme-generic .dx-popup-title,
.dx-theme-generic .dx-form .dx-groupbox .dx-groupbox-caption {
    background: #e5e7eb; /* header/toolbar backdrop */
    color: #0f172a; /* header text */
    border-color: #cbd5e1;
}

/* Row hovers & selection */
.dx-theme-generic .dx-datagrid-rowsview .dx-row:hover {
    background: #eef2ff;
}

.dx-theme-generic .dx-selection .dx-row > td {
    background: #e0e7ff !important;
}

/* Buttons – keep Carmine accent but increase contrast */
.dx-button-mode-contained .dx-button-content {
    background: #a61b29; /* Carmine-ish */
    color: #fff;
}

.dx-button-mode-contained:hover .dx-button-content {
    filter: brightness(0.92);
}

.dx-button-mode-text .dx-button-content,
.dx-button-mode-outlined .dx-button-content {
    color: #a61b29;
}

/* Editors focus ring */
.dx-editor-underlined .dx-texteditor-input,
.dx-texteditor.dx-state-focused .dx-texteditor-input {
    outline: none;
}

.dx-state-focused {
    box-shadow: 0 0 0 2px rgba(166, 27, 41, .25);
}

/* Command column alignment (prevents “centered links” look) */
.dx-datagrid .dx-command-edit {
    text-align: left !important;
    width: 120px;
}

    .dx-datagrid .dx-command-edit .dx-link {
        display: inline-block;
        margin-right: 8px;
    }
/* devextreme-darken-carmine.css -> ADD at the end */
/* Compact font size for all DevExtreme widgets */
.dx-widget,
.dx-datagrid,
.dx-list,
.dx-texteditor,
.dx-button,
.dx-dropdowneditor,
.dx-overlay-content {
    font-size: 12px !important;
}
