
/* General */
:root {
    --rz-input-disabled-background-color: #EAECEF !important;
    --rz-input-focus-border: 1px solid rgb(255, 84, 0) !important;
    --rz-input-focus-shadow: 0 0 0 2px rgb(255, 84, 0, 0.25) !important;
    --rz-input-disabled-color: #424242 !important;
    --rz-primary: rgb(255, 84, 0) !important;
}

.rz-button-md {
    text-transform: none !important;
}

.rz-timespanpicker > .rz-inputtext, .rz-colorpicker, .rz-lookup-search input,
.rz-numeric, .rz-datepicker > .rz-inputtext, .rz-multiselect, .rz-dropdown, .mask, .rz-textbox, .rz-numeric-input {
    height: 2rem !important;
    line-height: 1rem !important;
    padding-left: 0.6rem !important;
}

.rz-timespanpicker > .rz-inputtext, .rz-colorpicker, .rz-lookup-search input,
.rz-numeric, .rz-datepicker > .rz-inputtext, .rz-multiselect, .rz-dropdown, .rz-dropdown-item, .mask, .rz-textbox, .rz-textarea, .rz-numeric-input, .rz-inputtext {
    font-size: 14px !important;
    font-weight: 400 !important;
}

.rz-pager .rz-dropdown {
    height: 2rem;
    font-size: 0.9rem;
    line-height: 1rem;
    padding-left: 0.6rem;
    margin-right: 0.2rem;
    margin-left: 0.2rem;
}

.rz-state-highlight.rz-menuitem, .rz-state-highlight.rz-autocomplete-list-item, .rz-state-highlight.rz-multiselect-item,
.rz-autocomplete-items li.rz-state-highlight, .rz-dropdown-items li.rz-state-highlight,
.rz-multiselect-items li.rz-state-highlight, .rz-dropdown-item.rz-state-highlight {
    color: black !important;
    background-color: rgb(255, 84, 0, 0.1) !important;
}

/* Radzen datagrid BEGIN */
.rz-column-title {
    font-family: "Lato", sans-serif !important;
}

.rz-grid-table td {
    font-family: "Lato", sans-serif !important;
    font-weight: 300 !important;
}

.rz-grid-table thead th.rz-text-align-right .rz-column-title {
    padding-right: 1rem;
}

.rz-pager-page.rz-state-active {
    color: rgb(255, 84, 0) !important;
    border: 1px solid rgb(255, 84, 0) !important;
    background-color: rgb(255, 84, 0, 0.10) !important;
}

/* Change color of text in Radzen selected row in data grid */
.rz-selectable tbody tr.rz-data-row.rz-state-highlight .rz-cell-data {
    color: black !important;
}

/* Change color of Radzen selected row in data grid */
.rz-selectable tbody tr.rz-data-row.rz-state-highlight > td {
    background-color: #E6EAED !important;
}

/* Change color of Radzen dark buttons */
.rz-button.rz-variant-text.rz-dark {
    color: #6C757D !important;
}

.rz-grid-filter-buttons .rz-button.rz-shade-default.rz-apply-filter {
    color: rgb(255, 84, 0) !important;
}

.rz-chkbox-box.rz-state-active {
    background-color: rgb(255, 84, 0) !important;
}

.rzi.rz-grid-filter-active {
    --rz-grid-header-filter-icon-active-color: rgb(255, 84, 0) !important;
}

.rz-datatable-emptymessage {
    font-size: 14px !important;
    padding: 10px !important;
}

.rz-timepicker .rz-button-md {
    background-color: rgb(255, 84, 0) !important;
}

.rz-calendar-view td .rz-state-active, .rz-calendar-view td .rz-state-active.rz-calendar-today {
    background-color: rgb(255, 84, 0) !important;
}

.data-grid-padding {
    padding-bottom: 8px !important;
    padding-top: 8px !important;
}

.data-grid-header-template {
    display: flex;
}

.custom-data-grid-header-button {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
    margin-left: 0.5rem;

    &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .icon-spacing {
        margin-right: 0.4rem;
        color: #6C757D;
        transition: color 0.2s;
    }
}

.custom-data-grid-header-button:not(:disabled):hover {
    background-color: #5C636B;
    color: white;

    .icon-spacing {
        color: white;
    }
}

.rz-grid-table tr:last-child td {
    border-bottom: 1px solid #E0E0E0 !important;
}
/* Radzen datagrid END */

/* Radzen dropdown BEGIN */
.rz-dropdown:hover {
    cursor: pointer;
}

.rz-dropdown-items li, .rz-multiselect-items li, .rz-dropdown-item {
    padding: 0.2rem 0.4rem !important;
}

.rz-dropdown-item:hover {
    cursor: pointer !important;
}

.rz-dropdown-items li.rz-state-highlight, .rz-multiselect-items li.rz-state-highlight,
.rz-dropdown-item.rz-state-highlight .text-danger, .rz-dropdown-item.rz-state-highlight .text-success,
.rz-dropdown-item.rz-state-highlight .text-primary {
    color: white !important;
    background-color: rgb(255, 84, 0) !important;
}

:not(.rz-form-field-content) > .rz-state-disabled.rz-dropdown {
    background-color: #EAECEF !important;
    cursor: not-allowed;
}

:not(.rz-form-field-content) > .rz-state-disabled.rz-dropdown .rz-inputtext {
    background-color: #EAECEF !important;
}

.dropdown-group-header {
    margin-left: -12px;
    margin-right: -16px;
    cursor: default;
}
/* Radzen dropdown END */

/* Radzen date range BEGIN */

.date-range-date-picker-input {
    height: 30px !important;
    padding: 2px 6px !important;
    font-size: 14px !important;
}

.date-range-date-picker-button {
    font-size: 16px !important;
    height: 16px !important;
    width: 16px !important;
}
/* Radzen date range END */

/* Radzen tabs BEGIN */
.rz-tabview-nav li {
    color: #495057 !important;
    border-radius: 4px 4px 0 0 !important;
}

.rz-tabview-nav .rz-tabview-selected {
    color: rgb(255, 84, 0) !important;
    background-color: white !important;
    border: 1px solid #E9EDF0 !important;
}

.rz-tabview-nav li:not(.rz-tabview-selected) {
    background-color: #E9EDF0 !important;
    border: 1px solid #E9EDF0 !important;
}

.rz-tabview.rz-tabview-top > .rz-tabview-nav .rz-tabview-selected {
    border-bottom: none !important;
}

.rz-tabview-nav li:hover:not(.rz-tabview-selected):not(.rz-state-disabled) {
    color: rgb(255, 84, 0) !important;
    background-color: white !important;
    border: 1px solid #E9EDF0 !important;
}

.rz-calendar-view .rz-state-disabled {
    cursor: not-allowed !important;
}

.rz-tabview-panel {
    padding: 0 !important;
}

.rz-tabview-nav li a, .rz-tabview-nav li {
    text-transform: none !important;
}

.rz-tabview-nav li a {
    padding-block: 6px !important;
    padding-inline: 12px !important;
}

/* Radzen tabs END */

/* Radzen textbox BEGIN */
.rz-textbox {
    width: 100%;
}
/* Radzen textbox END */

/* Radzen textarea BEGIN */
.rz-textarea {
    width: 100%;
    min-height: 200px;
    max-height: 500px;
    padding-left: 0.6rem !important;
}
/* Radzen textarea END */

/* Radzen numeric box BEGIN */
.rz-numeric {
    width: 100%;
}

.rz-numeric  .rz-inputtext{
    padding: 0 !important;
    margin: 0 !important;
    text-indent: 0 !important;
}

/* Radzen numeric box END */

/* Radzen file upload BEGIN */
.rz-fileupload-files {
    display: none !important;
}

#uploadWithDragAndDrop {
    left: 0;
    --rz-upload-button-bar-background-color: transparent;
    --rz-upload-button-bar-padding: 0;
}

#uploadWithDragAndDrop .rz-fileupload-buttonbar .rz-fileupload-choose {
    width: 100%;
    text-align: center;
    font-size: 14px;
    padding: 40px 0;
    border: 2px dashed #ccc;
    background-color: white;
    box-shadow: none;
    transition: background-color 0.2s ease-in-out;
}

.rz-fileupload-choose:hover {
    background-color: #F5F5F5 !important;
}

.rz-fileupload-choose {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1rem !important;

    /* File upload icon */
    .rzi {
        font-size: 1.8rem !important;
    }
}
/* Radzen file upload END */

/* Radzen checkboxes BEGIN */
.rz-chkbox {
    transform: scale(75%) !important;
}

.checkbox-label {
    cursor: pointer;
}
/* Radzen checkboxes END */

/* Radzen listbox BEGIN */
.rz-multiselect-item {
    padding: 0.5rem 0.75rem !important;
    font-size: 14px !important;
}

.rz-multiselect-item:hover {
    cursor: pointer;
}

.rz-listbox-header {
    padding-block: 0.5rem !important;
    padding-inline: 0.75rem !important;
}
/* Radzen listbox END */

/* Radzen radio buttons BEGIN */
.rz-radiobutton-label {
    margin-inline: 0.25rem 2rem !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.rz-radiobutton {
    transform: scale(65%) !important;
}
/* Radzen radio buttons END */

/* Radzen dialog BEGIN */
.rz-text-body1 {
    font-family: "Lato", sans-serif !important;
}

.rz-dialog-title {
    font-size: 24px !important;
}
/* Radzen dialog END */