﻿/* ── Sidebar custom scrollbar ── */
.sidebar nav,
nav.nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}

.sidebar nav::-webkit-scrollbar,
nav.nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar nav::-webkit-scrollbar-track,
nav.nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb,
nav.nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 4px;
    transition: background 200ms;
}

.sidebar nav::-webkit-scrollbar-thumb:hover,
nav.nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.35);
}

/* ── Radzen Override ── */
/* Naglowek siatki siedzi na ciemnym tle (--sc-table-header), wiec tekst musi
   byc jasny. Regula wskazywala wczesniej na nieistniejaca zmienna, wiec byla
   ignorowana i tytul dziedziczyl biel z <th> - po ujednoliceniu tokenow stala
   sie poprawna i naglowki poszarzaly. */
.rz-grid-table thead th .rz-column-title,
.rz-grid-table thead th .rz-column-title-content,
.rz-grid-table thead th .rz-sortable-column-icon {
    color: #fff !important;
    font-weight: 700 !important;
}

.rz-datatable {
    border: none !important;
    border-radius: 1rem !important;
}

.rz-listbox:focus, .rz-listbox:focus-within {
    border: var(--rz-listbox-border) !important;
    box-shadow: inherit !important;
}

.rz-panel-menu {
    background: inherit !important;
    color: #fff !important;
}

.rz-datatable-emptymessage {
    text-align: center;
    font-size: 12px;
}

.rz-form-field.rz-state-focused .rz-form-field-content,
.rz-numeric:focus-within:not(.rz-state-disabled),
.rz-autocomplete:focus-within:not(.rz-state-disabled),
.rz-timespanpicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):focus,
.rz-colorpicker:not(:disabled):not(.rz-state-disabled):focus,
.rz-lookup-search input:not(:disabled):not(.rz-state-disabled):focus,
.rz-numeric:not(:disabled):not(.rz-state-disabled):focus, .rz-datepicker > .rz-inputtext:not(:disabled):not(.rz-state-disabled):focus,
.rz-multiselect:not(:disabled):not(.rz-state-disabled):focus,
.rz-dropdown:not(:disabled):not(.rz-state-disabled):focus,
.mask:not(:disabled):not(.rz-state-disabled):focus,
.rz-textarea:not(:disabled):not(.rz-state-disabled):focus,
.rz-textbox:not(:disabled):not(.rz-state-disabled):focus {
    border-color: var(--sc-accent) !important;
    box-shadow: var(--sc-focus) !important;
}

.rz-dropdown {
    border-radius: var(--sc-radius-md) !important;
    border: 1px solid var(--sc-border) !important;
    font-size: var(--rz-input-font-size) !important;
    color: var(--rz-input-value-color) !important;
    height: var(--field-h) !important;

    display:flex !important;
    justify-content:center !important;
    padding-top:0px !important;
    padding-bottom:0px !important;
}


    .rz-dropdown .rz-button-sm {
        min-height: unset !important;
    }