h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.mud-appbar {
    z-index: auto !important;
}

/*.mud-main-content {
    position: relative;
    z-index: 0;
}*/
/******************************************************************/
/*CSS PAGINA */
/******************************************************************/

/*layout custom nella pagina di login*/
.login-background {
    height: 100vh;
    width: 100%;
    background-image: url('/Images/backgroundlogin.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-start;
    padding-left: 50px;
    align-items: center;
    background-color: transparent !important;
}

.loading-overlay {
    /* position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);*/
}

.login-card {
    background-color: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Riduce altezza dell’input vero e proprio */
/*.glass-input input {
    height: 30px !important;
    line-height: 30px !important;
    padding: 0 !important;
    color: white !important;
}


.glass-button {
    background: rgba(78, 158, 255, 0.25) !important;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(78, 158, 255, 0.35);
    color: white !important;
    transition: 0.25s ease;
    margin-top: 12px !important;
}


    .glass-button:hover {
        background: rgba(78, 158, 255, 0.45) !important;
        box-shadow: 0 0 12px rgba(78, 158, 255, 0.6);
    }

.m3-textfield {
    margin-bottom: 10px !important;
}*/

.glass-input {
    background: rgba(255,255,255,.85);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.4);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    height:35px;
}

    .glass-input input {
        padding: 10px 14px !important;
        font-size: 12px;
       
    }

/******************************************************************/
/*CSS GLOBALI*/
/******************************************************************/

/* Effetto hover più elegante sulle righe delle tabelle*/
.mud-table-row-clickable:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
}

/* Header MudTable */
.mud-table thead th {
    color: orange !important;
}

/* Header MudDataGrid */
.mud-data-grid-header-cell {
    color: orange !important;
}

.mud-table tbody td {
    border-bottom: none !important;
}



/******************************************************************/
/*CSS PROFILE*/
/******************************************************************/
.profile-small-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    padding: 4px;
}

    /* riduce lo spazio tra le righe */
    .profile-small-list .mud-list-item {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
        min-height: 0 !important;
    }

    /* font più piccolo */
    .profile-small-list .mud-typography {
        font-size: 12px !important;
    }

/******************************************************************/
/*CSS PAGINA LICENCEGENERAL*/
/******************************************************************/
.licencegeneral-status-col {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.licencegeneral-expdate-col {
    width: 90px;
    min-width: 90px;
    max-width: 90px;
}

.licencegeneral-code-col {
    width: 70px;
    min-width: 70px;
    max-width: 70px;
}

.licencegeneral-desc-col {
    width: 50%;
}

.licencegeneral-selected-row {
    background-color: rgba(25, 118, 210, 0.15) !important;
    border-left: 4px solid #1976d2;
    transition: background-color 0.2s ease;
}

    .licencegeneral-selected-row:hover {
        background-color: rgba(25, 118, 210, 0.25) !important;
    }

.search-left {
    width: 350px !important;
    padding-left: 20px !important;
}

    /* linea sotto */
    .search-left .mud-input-underline {
        width: 350px !important;
        margin-left: 20px !important; /* allinea la linea con il padding */
    }

    /* allinea il contenuto a sinistra */
    .search-left .mud-input-slot {
        justify-content: flex-start !important;
    }

/* blocca la larghezza e il flex */
.searchinlic-fix {
    width: 350px !important;
    flex: 0 0 auto !important;
}

    /* sposta contenuto (icona + testo) */
    .searchinlic-fix .mud-input-slot {
        padding-left: 20px !important;
    }

    /* sposta la linea sotto */
    .searchinlic-fix .mud-input-underline {
        width: 100% !important; /* stessa larghezza del campo */
        margin-left: 20px !important; /* allinea alla padding del contenuto */
    }

.version-select {
    width: 520px !important;
    flex: 0 0 auto !important; /* BLOCCA il flex */    
}

.version-select-wrapper {
    display: flex !important;
    flex: 0 0 auto !important;
}

.version-select .mud-input-label {
    color: orange !important;
}

/*.select-left {
    width: 180px !important;*/ /* scegli tu */
/*}

    .select-left .mud-input-slot {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .select-left .mud-list-item {
        text-align: left !important;
    }*/

/******************************************************************/
/*CSS PAGINA LICENCEDETAIL*/
/******************************************************************/
/* Riquadro compatto */
.licencedetail-station-box {
    height: 55px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fafafa;
    width: 100%;
    margin-top: 10px;
}

/* Contenitore orizzontale con wrap */
.licencedetail-station-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 75px; /* scegli tu l’altezza */
    overflow-y: auto; /* abilita scroll verticale */
    overflow-x: hidden; /* evita scroll orizzontale */
    padding-right: 6px; /* evita che la scrollbar copra il contenuto */
}

/* Singolo elemento (checkbox + testo) */
.licencedetail-station-item {
    display: flex;
    align-items: center;
    padding: 2px 6px;
    background-color: rgba(78, 158, 255, 0.25);
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 9pt;
    height: 40px;
}

/* Checkbox più piccolo */
.licencedetail-station-checkbox {
    transform: scale(0.85);
    margin-right: 4px;
}

/* Testo allineato */
.licencedetail-station-label {
    white-space: nowrap;
}

.licencedetail-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    align-items: center;
    width: 100%;
}

.licencedetail-title {
    flex-grow: 1;
    min-width: 30%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/******************************************************************/
/*CSS PAGINA PRICELISTDRAWER*/
/******************************************************************/
.pricelist-small-table .mud-table-cell {
    font-size: 0.60rem;
}

.pricelist-small-table .mud-table-header {
    font-size: 0.65rem;
}

/******************************************************************/
/*CSS PAGINA LICENCESETTINGSDRAWER*/
/******************************************************************/
.licencesettings-small-font {
    font-size: 0.70rem;
}

    .licencesettings-small-font * {
        font-size: inherit;
    }

.licencesettingsdrawer-overflow-visible {
    overflow: visible !important;
}

.autocomplete-small,
.autocomplete-small .mud-list-item,
.autocomplete-small .mud-list-item-text,
.autocomplete-small .mud-list-item-text *,
.autocomplete-small .mud-typography {
    font-size: 0.75rem !important;
}

/*.customer-autocomplete-popover {
    font-size: 8px !important;
}

    .customer-autocomplete-popover .mud-list,
    .customer-autocomplete-popover .mud-list-item,
    .customer-autocomplete-popover .mud-list-item-text {
        font-size: 8px !important;
        line-height: 1.2;
    }*/

/*
.mud-popover-provider ~ .mud-overlay,
.mud-overlay:not(.mud-drawer-overlay) {
    z-index: 1303 !important;
}
*/
/******************************************************************/
/*CSS PAGINA LICENCESCHANNELSDRAWER*/
/******************************************************************/
.licencechannelsmall-grid {
    font-size: 0.75rem; /* circa 12px */
}

    .licencechannelsmall-grid .mud-table-cell,
    .licencechannelsmall-grid .mud-input,
    .licencechannelsmall-grid .mud-input-label,
    .licencechannelsmall-grid .mud-switch,
    .licencechannelsmall-grid .mud-button {
        font-size: 0.75rem !important;
    }

    /* Celle dei dati */
    .licencechannelsmall-grid .mud-data-grid-cell {
        font-size: 0.75rem !important;
    }

        /* Celle in edit */
        .licencechannelsmall-grid .mud-data-grid-cell .mud-input,
        .licencechannelsmall-grid .mud-data-grid-cell .mud-input-label {
            font-size: 0.75rem !important;
        }

    /* Header */
    .licencechannelsmall-grid .mud-data-grid-header-cell {
        font-size: 0.75rem !important;
    }

.channels-grid-wrapper {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

    /* Header sticky MudBlazor 10 */
    /*.channels-grid-wrapper .mud-data-grid-header,
    .channels-grid-wrapper .mud-data-grid-header > div {
        position: sticky;
        top: 0;
        z-index: 20;
        background-color: var(--mud-palette-surface);
    }*/


    /* Header sticky */
   /* .channels-grid-wrapper .mud-data-grid-header {
        position: sticky;
        top: 0;
        z-index: 5;
        background-color: var(--mud-palette-surface);
    }*/

/******************************************************************/
/*CSS PAGINA NEWLICENCE*/
/******************************************************************/
.newlicenceleft-container {
    margin-left: 20px !important; /* margine dal bordo */
    margin-right: auto !important; /* evita centratura */
}

/* Riduce il testo "Split" */
.custom-numeric-field .mud-input-adornment-text {
    font-size: 12px !important;
}

/* Riduce la label del campo (se presente) */
.custom-numeric-field .mud-input-label {
    font-size: 12px !important;
}




