﻿
html, body {
    height: 100%;
    margin: 0;
}

.mud-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500 !important;
    pointer-events: all;
}

.container-relative {
    position: relative;
}

.mud-main-content {
    flex: 1;
}

.table-header th {
    background-color: #c12622 !important;
    color: #DDDDDD !important;
}

.table-header th.filter-header-cell {
    background-color: #F5F5F5 !important;
    color: #424242 !important;
}

.text-right input {text-align: right !important;}
/* Notte */
.my-dark-theme .table-header th {
    background-color: #780300 !important;
    color: #DDDDDD !important;
}

    .my-dark-theme .table-header th.filter-header-cell {
        background-color: #210100 !important;
        color: #DDDDDD !important;
    }

.mud-table-row .mud-picker .mud-input DIV.mud-input-adornment {
    display: block !important;
    margin-top: -50px !important;
}

.mud-table-row .mud-picker .mud-input DIV.mud-input-adornment button {
    padding-left:0px !important;
}

.column-header .mud-menu {
    display: none
}

.mud-data-grid .mud-table-cell .column-header .column-options {
    position: absolute;
    right: 0px;
}

.mud-data-grid .mud-table-cell .column-header .sort-direction-icon {
    background-color: #D2CDD4 !important;
}

.my-dark-theme .mud-data-grid .mud-table-cell .column-header .sort-direction-icon {
    background-color: #000000 !important;
}

thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
}

thead tr:nth-child(2) th {
    position: sticky;
    top: 50px !important;
    z-index: 2;
}

.mud-input-root::placeholder {
    color: transparent !important;
}

.mud-table-row .mud-picker .mud-input DIV {
    display: none
}

.mud-data-grid .mud-table-cell.filter-header-cell {
    padding: 5px !important;
    padding-inline-start: 5px !important;
    padding-inline-end: 5px !important;
}

.mud-table-head .mud-table-cell .d-flex.flex-row.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
}

.mud-table-head .mud-table-cell .d-flex.flex-row.gap-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
}

.mud-input-control.mud-input-control-full-width {
    width: 100%;
    font-size: .875rem !important;
}

.mud-table-cell.filter-header-cell .mud-input-control INPUT {
    font-size: .875rem !important;
}

.mud-table-cell.filter-header-cell input[type="number"] {
    text-align: right !important;
    width: 100%;
    box-sizing: border-box;
}

.mud-table-cell.filter-header-cell input[type="number"]::-webkit-outer-spin-button,
.mud-table-cell.filter-header-cell input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

.mud-table-cell.filter-header-cell input[type="number"] {
    -moz-appearance: textfield;
}

.mud-table-cell.filter-header-cell > div.d-flex.flex-row {
    display: grid !important;
    grid-template-columns: 1fr auto auto; 
    grid-template-rows: auto auto;
    gap: 6px;
    align-items: center;
}

.mud-table-cell.filter-header-cell > div.d-flex.flex-row > .mud-input-control,
.mud-table-cell.filter-header-cell > div.d-flex.flex-row > .mud-picker,
.mud-table-cell.filter-header-cell > div.d-flex.flex-row > .mud-grid {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
}

.mud-table-cell.filter-header-cell > div.d-flex.flex-row > .column-filter-menu {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    align-self: center;
}

.mud-table-cell.filter-header-cell > div.d-flex.flex-row > button.mud-icon-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    align-self: center;
}

.mud-table-cell.filter-header-cell .mud-input-control-full-width,
.mud-table-cell.filter-header-cell .mud-input-control-full-width .mud-input {
    width: 100%;
}

.mud-dark-theme {
    --my-table-header-bg: #000214;
    --my-table-header-text: #ffffff;
}

.fixed-table table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--mud-palette-table-lines);
}

.fixed-table th,
.fixed-table td {
    border: 1px solid var(--mud-palette-table-lines);
    padding: 5px;
    letter-spacing: 0px;
}

.truncate-cell {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.row-even td {
    background-color: var(--mud-palette-surface) !important;
}

.row-odd td {
    background-color: var(--mud-palette-background-gray) !important;
}

.my-dark-theme .row-even td {
    background-color: #121212 !important;
}

.my-dark-theme .row-odd td {
    background-color: #292929 !important;
}

.mud-theme-default {
    --custom-selected-bg: #d0e7ff;
    --custom-selected-text: #000000;
}

.mud-theme-dark {
    --custom-selected-bg: #3a4a5e;
    --custom-selected-text: #ffffff;
}

.my-dark-theme .mud-table-row.selected, .my-dark-theme .mud-table-row.selected td {
    background-color: #4e0201 !important;
}

.mud-table-row.selected, .mud-table-row.selected td {
    background-color: #d0e7ff !important;
}

.mud-table-row {
    cursor: pointer;
}

.compact-field .mud-input-slot {
    font-size: 0.9rem !important;
    padding: 10px 8px !important;
    margin-top: 0px !important;
}

.compact-field .mud-grid-spacing-xs-6 > .mud-grid-item {
    padding-top: 12px !important;
}

.text-right .mud-input-slot input {
    text-align: right;
}

.compact-field .mud-input-label-inputcontrol {
    top: -10px;
    font-size: 0.9rem !important;
}

.compact-field .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol.mud-input-label-outlined {
    top: 0px;
    font-size: 1rem !important;
}

.D22text-uppercase INPUT {text-transform:uppercase !important;}
.D22text-lowercase INPUT {
    text-transform: lowercase !important
}
.D22text- INPUT {
    text-transform: initial !important
}

.readonly-nofocus input:read-only,
.readonly-nofocus textarea:read-only,
.readonly-nofocus .mud-select-input {
    color: #999999 !important;
    cursor: not-allowed;
}

.mud-list-item-text {
    color: #999999;
}

.mud-selected-item .mud-list-item-text {
    color: #424242;
}

.my-dark-theme .mud-selected-item .mud-list-item-text {
    color: #DDDDDD;
}

.readonly-nofocus {
    color: var(--mud-palette-text-primary) !important;
}

.canUpdate fieldset {
    border-color: #424242 !important;
}

.my-dark-theme .canUpdate fieldset {
    border-color: #DFDFDF !important;
}

.readonly-nofocus fieldset {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--mud-palette-lines-inputs) !important;
    border-width: 1px !important;
    color: var(--mud-palette-text-primary) !important;
}

.readonly-nofocus label {
    color: #999999 !important;
}

.mud-input:focus-within ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: #FFFFFF !important;
}

.mud-tabs.mud-tabs-rounded .mud-tabs-panels {
    background-color: var(--mud-palette-surface) !important;
}

.mud-tabs-tabbar {
    background-color: transparent !important;
}

.mud-tab {
    background-color: #7e6eff;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.mud-tab.mud-tab-active {
    color: #000000;
    background-color: var(--mud-palette-surface) !important;
}

.my-dark-theme .mud-tab.mud-tab-active {
    color: #FFF;
}

.mud-tab-slider {
    background-color: transparent !important;
}

.mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #c32522 !important;
    background-color: transparent !important;
}

.my-dark-theme .mud-navmenu.mud-navmenu-default .mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: #FFF !important;
    background-color: transparent !important;
}

.mud-nav-link.active .mud-icon-root.mud-svg-icon {
    fill: var(--mud-palette-primary) !important;
}

.mud-nav-link {
    padding: 8px 16px 8px 4px !important;
}

.mud-nav-link .mud-nav-link-text {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-inline-start: 4px !important;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link {
    padding-left: 26px !important;
    padding-inline-start: 26px !important;
    padding-inline-end: unset !important;
}

.mud-nav-group * .mud-navmenu .mud-nav-item .mud-nav-link .mud-nav-link-text {
    text-transform: initial !important;
}

.tabella_D22 {
    border-collapse: collapse;
}

.tabella_D22 td {
    border: 1px solid var(--mud-palette-lines-inputs);
    padding: 5px 5px !important;
}

.tabella_D22 th {
    border: 1px solid var(--mud-palette-lines-inputs);
    text-align: left !important;
    font-size: 1.1em;
    padding: 5px 5px !important;
}

.tabella_D22 .mud-input.mud-input-underline:before {
    border-bottom: none !important;
}