/* ============================================================================
   Ενιαίο ύφος για ΟΛΑ τα πλέγματα (.be-dxgrid) — 28 σελίδες.

   Εναρμονισμένο με τον Πίνακα Επιχειρηματικής Ευφυΐας (indigo/violet), ώστε οι
   λίστες και το BI να μοιάζουν μέρος του ίδιου προϊόντος.

   ⚠ ΣΕΙΡΑ ΦΟΡΤΩΣΗΣ: πρέπει να έρχεται ΜΕΤΑ το θέμα του DevExpress στο App.razor,
   αλλιώς το θέμα υπερισχύει και τίποτε εδώ δεν φαίνεται.

   ⚠ ΚΑΜΙΑ ΑΝΑΦΟΡΑ ΣΕ ΣΥΓΚΕΚΡΙΜΕΝΗ ΣΤΗΛΗ: οι στήλες παράγονται από GRIDVIEWS και
   διαφέρουν ανά πελάτη. Ό,τι υπάρχει εδώ δουλεύει με οποιονδήποτε συνδυασμό.
   Το ύψος (height) το ορίζει η κάθε σελίδα — δεν το πειράζουμε.
   ============================================================================ */

.be-dxgrid {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .35);
}

/* ── Επικεφαλίδα: το gradient του bi-head ── */
.be-dxgrid .dxbl-grid-header-content,
.be-dxgrid thead tr:first-child th {
    background: linear-gradient(110deg, #312e81 0%, #4338ca 60%, #4f46e5 100%) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: .2px;
}

.be-dxgrid thead tr:first-child th a,
.be-dxgrid thead tr:first-child th .dxbl-text,
.be-dxgrid thead tr:first-child th .dxbl-grid-header-caption {
    color: #fff !important;
}

/* Τα εικονίδια ταξινόμησης/φίλτρου να μη χάνονται στο σκούρο φόντο */
.be-dxgrid thead tr:first-child th .dxbl-grid-sort-indicator,
.be-dxgrid thead tr:first-child th i {
    color: rgba(255, 255, 255, .85) !important;
}

/* ── Γραμμές ── */
.be-dxgrid tbody tr:nth-child(even) { background: #fafaff; }
.be-dxgrid tbody tr:hover { background: rgba(99, 102, 241, .10) !important; }

.be-dxgrid tbody tr.dxbl-grid-selected-row,
.be-dxgrid tbody tr[aria-selected="true"] {
    background: rgba(124, 58, 237, .14) !important;
}

.be-dxgrid tbody td {
    padding-top: .34rem;
    padding-bottom: .34rem;
}

/* Τα ποσά ευθυγραμμίζονται κάθετα μόνο με tabular αριθμούς */
.be-dxgrid td { font-variant-numeric: tabular-nums; }

/* ── Σύνολα ── */
.be-dxgrid .dxbl-grid-footer-content,
.be-dxgrid tfoot td {
    background: #f5f3ff !important;
    font-weight: 700;
    color: #4338ca;
}

/* ============================================================================
   ID ως badge-σύνδεσμος — φαίνεται ότι πατιέται, χωρίς υπογράμμιση.
   Χρησιμοποιείται όπου η λίστα ανοίγει εγγραφή (παραστατικά κ.λπ.).
   ============================================================================ */
.be-id-badge {
    display: inline-block;
    min-width: 3.2rem;
    text-align: center;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: linear-gradient(110deg, #4f46e5, #7c3aed);
    color: #fff !important;
    font-size: .78rem;
    font-weight: 700;
    font-family: var(--bs-font-monospace);
    text-decoration: none !important;
    line-height: 1.35;
    box-shadow: 0 3px 8px -4px rgba(79, 70, 229, .8);
    transition: .12s;
}

.be-id-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -5px rgba(79, 70, 229, .95);
}

.be-id-badge:active { transform: translateY(0); }

/* ── Σκούρο θέμα ── */
@media (prefers-color-scheme: dark) {
    .be-dxgrid { border-color: #334155; }
    .be-dxgrid tbody tr:nth-child(even) { background: rgba(99, 102, 241, .05); }
    .be-dxgrid .dxbl-grid-footer-content,
    .be-dxgrid tfoot td { background: rgba(79, 70, 229, .15) !important; color: #a5b4fc; }
}
