﻿/* Add here all your css styles (customizations) */

/* === Font globale + variabili tema Enterprise === */
:root {
    --enterprise-font: "Rubik", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    /* Bottoni */
    --btn-radius: 3px;
    --color-success: #77966D;
    --color-success-soft: #99C68B;
    --color-warning: #FF8D00;
    --color-warning-soft: #f6b26b;
    --color-danger: #C84630;
    --color-danger-soft: #f5827a;
    --color-info-bg: #CDE6F5;
    --color-info-main: #086788;
    --color-info-soft: #F2FAFF;
}

/* === Tipografia base === */
html, body {
    font-family: var(--enterprise-font);
    font-weight: 380;
    color: #3f4752; /* gray-600 */
    line-height: 1.5;
    letter-spacing: 0.0160em; /* un filo di aria tra i caratteri */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ereditarietà universale */
*, *::before, *::after {
    font-family: inherit;
}

/* I form controls non ereditano sempre */
input, button, select, textarea {
    font: inherit;
}

/* Telerik: assicurati che ereditino + size base */
[class^="Rad"], [class*=" Rad"] {
    font-family: inherit !important;
    font-size: 14px;
}

/* Select2 */
.select2-container,
.select2-container * {
    font-family: inherit !important;
}

/* Muted + placeholder */
.text-muted,
::placeholder {
    color: #6b7280 !important; /* gray-500 */
    font-size: 11px !important;
}

/*Toastr Messaggi Utente */
.toast-success {
    background-color: #77966D !important;
}

.toast-error {
    background-color: #C84630 !important;
}

.toast-info {
    background-color: #086788 !important;
}

.toast-warning {
    background-color: #FF8D00 !important;
    color: #ffffff !important;
}


/*Intestazione Accordeon Blue*/
.u-accordion-bg-secondary .u-accordion__header [aria-expanded="true"] {
    background-color: #337ab7 !important;
    border-color: #337ab7 !important;
}


/* Colori del nuovo Mockup */

/* Colors aggiuntivi mockup */
.palette-1-color-success-cta1 {
    color: #fff;
    background-color: var(--color-success);
    border: 1px solid var(--color-success);
}

.palette-1-color-success-cta2 {
    color: #77966D;
}

.palette-1-color-success-cta3 {
    color: #77966D;
}

.palette-1-color-warning-cta1 {
    color: #fff;
    background-color: #F5827A;
    border: 1px solid #C84630;
}

/*Ridefinisce i button con filter nuovo MockUp*/

/*Palette*/
.palette-1-primary {
    border: 1px solid #707070;
    background: #FFFFFF;
    opacity: 1;
}

.palette-1-secondary {
    background: #3C3B39;
    opacity: 1;
}

.palette-1-accent {
    background: #d1ecf1;
    color: #3C3B39;
    opacity: 1;
}

.palette-1-warning {
    background: #FF8D00;
    color: black;
    opacity: 1;
}

.palette-1-success {
    background: #77966D;
    color: #fff;
    opacity: 1;
}

.palette-1-danger {
    background: #C84630;
    opacity: 1;
    color: #fff;
}

.noimp-no-urg {
    color: #3C3B3C;
    background: var(--color-success-soft);
    opacity: 1;
}


/* === BOTTONI ENTERPRISE (rifattorizzati) === */

/* Base Bootstrap override */
.btn {
    font-family: inherit !important;
    font-weight: 400 !important;
    border-radius: var(--btn-radius);
}

/* Base comune per tutte le CTA custom */
.btn-success-ctap,
.btn-success-ctas,
.btn-success-ctat,
.btn-warning-ctap,
.btn-info-ctap,
.btn-info-ctas,
.btn-info-ctat,
.btn-danger-ctap,
.btn-danger-ctas,
.btn-danger-ctat {
    border-width: 1px;
    border-style: solid;
    opacity: 1;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* ======================= */
/* SUCCESS (verde)         */
/* ======================= */

/* Pieno (Primary) */
.btn-success-ctap {
    background-color: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

    .btn-success-ctap:hover {
        background-color: var(--color-success-soft);
        border-color: var(--color-success-soft);
        color: #fff;
    }

    .btn-success-ctap:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(119, 150, 109, 0.4);
    }

    .btn-success-ctap.disabled,
    .btn-success-ctap:disabled {
        background-color: var(--color-success);
        border-color: var(--color-success);
        color: lightgray;
        opacity: .7;
    }

/* Outline */
.btn-success-ctas {
    background-color: #fff;
    border-color: var(--color-success);
    color: var(--color-success);
}

    .btn-success-ctas:hover {
        background-color: var(--color-success-soft);
        border-color: var(--color-success-soft);
        color: #fff;
    }

    .btn-success-ctas:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(119, 150, 109, 0.4);
    }

    .btn-success-ctas.disabled,
    .btn-success-ctas:disabled {
        background-color: #fff;
        border-color: var(--color-success);
        color: lightgray;
        opacity: .7;
    }

/* Testo (link) */
.btn-success-ctat {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-success);
}

    .btn-success-ctat:hover {
        text-decoration: underline;
    }

    .btn-success-ctat:focus {
        outline: none;
        box-shadow: none;
    }

    .btn-success-ctat.disabled,
    .btn-success-ctat:disabled {
        color: lightgray;
        text-decoration: none;
        cursor: default;
    }


/* ======================= */
/* WARNING (arancio)       */
/* ======================= */

/* Pieno */
.btn-warning-ctap {
    background-color: var(--color-warning);
    border-color: var(--color-warning);
    color: #fff;
}

    .btn-warning-ctap:hover {
        background-color: var(--color-warning-soft);
        border-color: var(--color-warning-soft);
        color: #000;
    }

    .btn-warning-ctap:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(255, 141, 0, 0.4);
    }

    .btn-warning-ctap.disabled,
    .btn-warning-ctap:disabled {
        background-color: var(--color-warning-soft);
        border-color: var(--color-warning-soft);
        color: lightgray;
        opacity: .7;
    }


/* ======================= */
/* INFO (azzurro)          */
/* ======================= */

/* Pieno (pill “info”) */
.btn-info-ctap {
    background-color: var(--color-info-bg);
    border-color: var(--color-info-bg);
    color: var(--color-info-main);
}

    .btn-info-ctap:hover {
        background-color: var(--color-info-soft);
        border-color: var(--color-info-soft);
        color: var(--color-info-main);
    }

    .btn-info-ctap:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(8, 103, 136, 0.35);
    }

    .btn-info-ctap.disabled,
    .btn-info-ctap:disabled {
        background-color: var(--color-info-bg);
        border-color: var(--color-info-bg);
        color: lightgray;
        opacity: .7;
    }

/* Outline */
.btn-info-ctas {
    background-color: #fff;
    border-color: var(--color-info-bg);
    color: var(--color-info-main);
}

    .btn-info-ctas:hover {
        background-color: var(--color-info-soft);
        border-color: var(--color-info-soft);
        color: var(--color-info-main);
    }

    .btn-info-ctas:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(8, 103, 136, 0.35);
    }

    .btn-info-ctas.disabled,
    .btn-info-ctas:disabled {
        background-color: #fff;
        border-color: var(--color-info-bg);
        color: lightgray;
        opacity: .7;
    }

/* Testo (link) */
.btn-info-ctat {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-info-main);
}

    .btn-info-ctat:hover {
        text-decoration: underline;
    }

    .btn-info-ctat:focus {
        outline: none;
        box-shadow: none;
    }

    .btn-info-ctat.disabled,
    .btn-info-ctat:disabled {
        color: lightgray;
        text-decoration: none;
        cursor: default;
    }


/* ======================= */
/* DANGER (rosso)          */
/* ======================= */

/* Pieno */
.btn-danger-ctap {
    background-color: var(--color-danger-soft);
    border-color: var(--color-danger-soft);
    color: #fff;
}

    .btn-danger-ctap:hover {
        background-color: var(--color-danger-soft);
        border-color: var(--color-danger-soft);
        color: #fff;
    }

    .btn-danger-ctap:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(200, 70, 48, 0.4);
    }

    .btn-danger-ctap.disabled,
    .btn-danger-ctap:disabled {
        background-color: var(--color-danger);
        border-color: var(--color-danger);
        color: lightgray;
        opacity: .7;
    }

/* Outline */
.btn-danger-ctas {
    background-color: #fff;
    border-color: var(--color-danger);
    color: var(--color-danger);
}

    .btn-danger-ctas:hover {
        background-color: var(--color-danger);
        border-color: var(--color-danger);
        color: #fff;
    }

    .btn-danger-ctas:focus {
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(200, 70, 48, 0.4);
    }

    .btn-danger-ctas.disabled,
    .btn-danger-ctas:disabled {
        background-color: #fff;
        border-color: var(--color-danger);
        color: lightgray;
        opacity: .7;
    }

/* Testo (link) */
.btn-danger-ctat {
    background-color: transparent;
    border-color: transparent;
    color: var(--color-danger);
}

    .btn-danger-ctat:hover {
        text-decoration: underline;
    }

    .btn-danger-ctat:focus {
        outline: none;
        box-shadow: none;
    }

    .btn-danger-ctat.disabled,
    .btn-danger-ctat:disabled {
        color: lightgray;
        text-decoration: none;
        cursor: default;
    }


/*Titoli dei box*/
.titoloCard {
    color: #fd7e14;
    font-size: 16px;
    text-transform: uppercase;
    /*padding-left:10px;*/
}

.card {
    border-radius: 3px !important;
    background-color: #f9f9f9 !important;
}

.cardTab {
    position: relative;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-top: none;
}


/*Lampeggia l'icona'*/
.blink {
    animation: blink 2s steps(2, start) infinite;
    -webkit-animation: blink 2s steps(2, start) infinite;
}

@keyframes blink {
    to {
        visibility: hidden;
    }
}

@-webkit-keyframes blink {
    to {
        visibility: hidden;
    }
}

/*Toglie label Trasparenza ai Messaggi Toast*/
.toast {
    opacity: 1 !important;
}

#toast-container > div {
    opacity: 1 !important;
}
/*-----*/

.background-form {
    /*background-color: #fafafa !important;*/
}

/*Personalizzazione dei PopUp Modal*/

.modal {
    padding: 0 !important;
    /*background-color: #fafafa !important;*/
    /*override inline padding-right added from js*/
}

    .modal .modal-header {
        padding-top: 0px;
        color: #FF8D00;
        text-transform: uppercase;
    }

    .modal .modal-dialog {
        width: 90%;
        height: 80%;
        max-width: none;
        top: 15%;
    }

    .modal .modal-content {
        background-color: #f7f8fc !important;
        border-radius: 3px !important;
    }

/*Stile logo*/
.u-header-logo {
    width: 100%;
    height: 100%;
}

.cls-1 {
    fill: #f28b1a;
}

/* Checkbox allineamento */
.admCheckbox label,
.checkbox-inline label {
    text-align: right;
    padding-left: 0.5em;
    line-height: 1.6em;
    height: 1.6em;
    margin: 0px 0px;
    padding: 0px;
    font-size: inherit;
    white-space: nowrap;
    color: #999;
}

.admCheckbox input[type="checkbox"] {
    float: none;
    clear: left;
}

.btn-group-sm > .btn,
.btn-sm {
    border-radius: 3px !important;
    font-size: 12px !important;
}


/*Utilizzata su tutti i controlli delle forms*/
.etichetta-input-box {
    margin-left: 3px !important;
    margin-bottom: 2px;
    margin-top: 0px;
    display: inline-block;
    color: #3C3B39 !important;
    /*text-transform: uppercase;*/
    font-size: 12px;
}

/* Select2: hover e stile */
.select2-container:hover .select2-selection--single:hover {
    border-color: #FF8D00 !important;
}

.select2-search--dropdown:hover .select2-search--dropdown.active {
    border-color: #FF8D00 !important;
}


.select2-search--dropdown .select2-search__field {
    padding: 6px;
    width: 100%;
    border: none !important;
    /*box-sizing: unset !important;*/
}

.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #eaecef;
    height: 30px !important;
    border-radius: 3px;
}

.select2-container {
    width: 100% !important;
    padding-top: 0 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 3px !important;
}

.combo-select {
    /*-webkit-appearance: none;*/
    border-color: #eaecef !important;
    border-style: solid;
    border-width: thin;
    font-weight: 500 !important;
    color: #3A3B3C; /*gRIGIO sCURO*/
    padding-top: 1px !important;
    border-radius: 3px !important;
    border: 1px solid #ced4da;
    height: 28px !important;
    padding: .275rem .375rem !important;
    background: white !important;
}

    .combo-select:hover,
    .combo-select.active {
        border-color: #FF8D00 !important;
    }

/* Form control unificato */
.form-control {
    height: 32px;
    padding: .300rem .71rem !important;
    border-radius: 3px !important;
    border: 1px solid #e5e5e5 !important;
    font-family: inherit !important;
    font-weight: 380 !important;
    /*font-size: 12px !important;*/
}

    .form-control:hover,
    .form-control.active {
        border-color: #FF8D00 !important;
    }

    /* Mette tutti i place holder in un colore più tenue*/
    .form-control::placeholder,
    .form-control::-moz-placeholder {
        opacity: .5 !important;
    }

    /*Focus su tutti i form control*/
    .form-control:focus {
        border-color: #FF8D00 !important;
        box-shadow: none !important;
    }

/*NavBar*/
/* change the link color and padding  */
.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, .5);
    padding: .75rem 1rem;
}

/* change the color and background color of active links */
.navbar-custom .nav-item.active .nav-link,
.navbar-custom .nav-item:hover .nav-link {
    color: #ffffff;
    background-color: #333;
}

/** Risolve il problema dell'allineamento a destra per le colonne delle griglie perche non funziona*/
.gridHeaderAllignRight {
    text-align: right !important;
}

/************ ADM Table Small SOLO PER LE VECCHIE GRIDVIEW ************/

/* 1) Celle più compatte + bordo grigio chiaro forzato */
.admTableSmallGridView td,
.admTableSmallGridView th {
    padding: 3px 6px;
    font-size: 11px !important;
    line-height: 1.2;
    border: 1px solid #dcdcdc !important; /* FORZATO */
}

/* 2) Righe adattive */
.admTableSmallGridView tr {
    height: auto;
}

/* 3) Header grigio chiaro + font più grande + bordo uniforme */
.admTableSmallGridView th {
    font-weight: 600;
    color: #000;
    background: #f2f2f2;
    font-size: 12px !important;
    border: 1px solid #dcdcdc !important; /* FORZATO */
}

/* 4) Forza anche sugli header Telerik (che altrimenti sovrascrivono) */
.admTableSmallGridView .rgHeader,
.admTableSmallGridView .rgHeader th,
.admTableSmallGridView .rgHeader a,
.admTableSmallGridView .rgHeaderDiv thead th,
.admTableSmallGridView .rgMasterTable thead th {
    font-weight: 700 !important;
    font-size: 12px !important;
    background: #f2f2f2 !important;
    color: #000 !important;
    border-color: #dcdcdc !important; /* FORZATO */
    border: 1px solid #dcdcdc !important;
}

/* 5) Righe alternate */
.admTableSmallGridView tr:nth-child(even) td {
    background: #fafafa;
}

.admTableSmallGridView tr:nth-child(odd) td {
    background: #ffffff;
}

.admTableSmallGridView .alt-row td {
    background: #fafafa !important;
}

/* 6) Input compatti */
.admTableSmallGridView .form-control {
    height: auto;
    padding: 2px 4px;
    font-size: 10px;
    line-height: 1.1;
    box-sizing: border-box;
}

/* 7) Paginazione */
/*.admTableSmallGridView .pagination .current {
    background: #26B;
    color: #3A3B3C;
    border: 1px solid #AAE;
}
*/

/************ ADM Table Small – Fix + Font Size ************/

/* 1) Correzioni sintassi e selettori */
.admTableSmall td,
.admTableSmall th {
    padding: 10px 14px; /* no virgola */
    font-size: 11px !important; /* +1 punto rispetto a prima */
}

/*.admTableSmall .pagination .current {
    background: #26B;
    color: #3A3B3C;
    border: 1px solid #AAE;
}
*/
/* 2) Header base (niente !important sul peso per non bloccare override) */
.admTableSmall th {
    font-weight: 500;
    color: black;
    border: 1px solid #eaecef;
    background: white;
    font-size: 11px !important; /* +1 punto */
}

/* 3) Forza il grassetto sugli header Telerik */
.admTableSmall .rgHeader,
.admTableSmall .rgHeader th,
.admTableSmall .rgHeader a,
.admTableSmall .rgHeaderDiv thead th,
.admTableSmall .rgMasterTable thead th {
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* 4) Celle in grassetto (per colonne con ItemStyle-CssClass="cell-bold") */
.cell-bold {
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* Header specifici se vuoi richiamare .header-bold */
.header-bold {
    font-weight: 700 !important;
    font-size: 11px !important;
}

/* 5) Footer (totali) in bold e leggermente più grande */
.admTableSmall .rgFooter td {
    font-weight: 700;
    font-size: 11px !important;
}


/************ ADM Table ************/

.admTable {
    /*Adatta la griglia alla dimensione dello schermo*/
    border-collapse: collapse;
    border-style: none none none none;
    width: 100%;
}

    .admTable th {
        font-weight: 500 !important;
        color: black;
        /*font-size: 0.78429rem !important;*/
        border: 1px solid #ddd;
        border-bottom: 3px solid #ddd;
        background: white;
        border-color: #eaecef !important;
    }

    .admTable pagination .current {
        background: #26B;
        color: #3A3B3C; /*gRIGIO sCURO*/
        border: solid 1px #AAE;
    }

    .admTable tbody {
        /*font-size: 0.72429rem !important;*/
        /*font-size: 12px !important;*/
    }

        .admTable tbody tr {
            background: #fff;
            border: 1px solid #ddd;
            padding: 20px;
        }

        .admTable tbody th {
            background: #fff;
            color: black;
            border: 1px solid #ddd;
        }

    .admTable tr:hover {
        background: #cecece;
        padding: 20px;
    }

    .admTable tr.alt-row {
        background: #f3f3f3;
        padding: 20px;
    }

        .admTable tr.alt-row:hover {
            background: #cecece;
        }

    .admTable td,
    .admTable th {
        padding: 8px;
        padding-top: 10px;
        padding-bottom: 10px;
        line-height: 1.3em;
        border-left: 1px solid #f3f3f3;
        border: 1px solid #f3f3f3;
        border-color: #eaecef !important;
    }

    .admTable tfoot td .bulk-actions {
        padding: 12px 0 5px 0;
    }

        .admTable tfoot td .bulk-actions select {
            padding: 4px;
            border: 1px solid #ccc;
        }

    .admTable tr.SelectedRow {
        background: #007da6;
        color: #fff;
    }

        .admTable tr.SelectedRow a {
            color: #fff;
        }

    .admTable .SelectedRow tr:hover a,
    table tr.SelectedRow table tr.SelectedRow a {
        color: #fff;
    }

    .admTable .SelectedRow a:hover {
        color: #fff;
    }

    .admTable .pgr td {
        font-size: smaller;
    }

    .admTable .pgr a:hover {
        font-weight: 500 !important;
    }

/* Definisce la prima riga Pager delle tabelle Settare per la griglia <PagerStyle CssClass="pager-row" /> */

tr.pager-row td a {
    /*color: #5a90ce;*/
}

    .pager a.command:hover,
    tr.pager-row td a:hover {
        background-color: white;
        text-decoration: none;
    }

.pager span.current,
tr.pager-row td span {
    background-color: white;
}

tr.pager-row td {
    border-top: none;
    background-color: white;
}

/*-------------------------------------------------------------------------------------------------------*/

/************ ADM Table Medium – Fix ************/

.admTableMedium {
    width: 100%;
    border-collapse: collapse;
    border-style: none;
    font-size: 12px;
}

    /* Header base: niente !important sul peso */
    .admTableMedium th {
        font-weight: 500;
        font-size: 12px;
        border: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        background: #cecece;
    }

    /* Correzione selettore paginazione */
    /*.admTableMedium .pagination .current {
        background: #26B;
        color: #fff;
        border: 1px solid #AAE;
    }*/

    /* Body */
    .admTableMedium tbody {
        font-size: 12px;
    }

        .admTableMedium tbody tr {
            background: #fff;
            border: 1px solid #ddd;
        }

    /* Hover */
    .admTableMedium tr:hover {
        background: #cecece;
    }

    /* --- Override specifico per RadGrid header (vince sulla skin) --- */
    .admTableMedium .rgHeader,
    .admTableMedium .rgHeader th,
    .admTableMedium .rgHeader a,
    .admTableMedium .rgHeaderDiv thead th,
    .admTableMedium .rgMasterTable thead th {
        font-weight: 600 !important;
    }

    /*-------------------------------------------------------------------------------------------------------*/

    /* COMUNE A TUTTE LE TABELLE */

    .admTableSmallGridView .pagination .current,
    .admTableSmall .pagination .current,
    .admTableMedium .pagination .current,
    .admTable .pagination .current {
        background: #26B;
        color: #3A3B3C;
        border: 1px solid #AAE;
    }


/* Celle/gruppi in grassetto a richiesta */
.cell-bold {
    font-weight: 700 !important;
}

.header-bold {
    font-weight: 600 !important;
}

/* Base typography extra: evita faux bold su alcuni elementi */
.btn,
label,
.navbar-custom .nav-link,
.titoloCard {
    font-weight: 400 !important;
}

/* RadGrid stile base */
.RadGrid,
.RadGrid_Bootstrap {
    border-width: 0;
    border-style: none;
    border-radius: 0;
}

    /* Tables / grids – font weight uniforme */
    .RadGrid thead th,
    .admTable th,
    .admTableSmallGridView th,
    .admTableBig th,
    .admTableMedium th {
        font-weight: 380 !important;
        color: #374151 !important; /* gray-700 */
    }

    .RadGrid td,
    .admTable td,
    .admTableSmallGridView td,
    .admTableBig td,
    .admTableMedium td {
        font-weight: 380 !important;
    }

        /* Numeric utility: right aligned, tabular digits */
        .num,
        .text-num,
        td[data-num],
        th[data-num],
        input[type="number"],
        input.numeric,
        .k-numerictextbox input,
        .RadGrid td.num,
        .RadGrid .rgNumericCell {
            text-align: right !important;
            font-variant-numeric: tabular-nums lining-nums;
            font-feature-settings: "tnum" 1, "lnum" 1;
        }
