﻿:root {
    --primary: #256EB3;
    --primary-bg: #F3FBFE;
    --secondary: #E1ECF2;
}

/* ************************** */
/* *** OVERLOAD STILI KUI *** */
/* ************************** */

.k-button-flat-primary {
    color: var(--primary);
}

.k-overlay {
    opacity: 0.75 !important;
}

.k-searchbox,
.k-searchbox:hover,
.k-searchbox:focus,
.k-searchbox:focus-within {
    box-shadow: none;
    font-family: "Inter-Regular";
    color: black;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid black;
}

/* *************** */
/* *** TEXTBOX *** */
/* *************** */

/* rimozione bordi/hover e ombre */
.k-textbox,
.k-textbox:focus,
.k-textbox:focus-within {
    border-style: none;
    box-shadow: none;
    height: 40px;
    font-family: "Inter-Regular";
}

.k-textbox > input {
    font-size: 14px;
    color: black;
    font-weight: 400;
    padding: 0 12px !important;
}

.k-textbox > input::placeholder {
    color: black;
}

.k-textbox.k-disabled {
    background-color: #A1A1A1;
    color: white;
    opacity: 1;
}

/* *********************** */
/* *** NUMERIC TEXTBOX *** */
/* *********************** */

/* rimozione bordi/hover e ombre */
.k-numerictextbox,
.k-numerictextbox:focus,
.k-numerictextbox:focus-within {
    border-style: none;
    box-shadow: none;
    height: 40px;
    font-family: "Inter-Regular";
}

.k-numerictextbox > input {
    font-size: 14px;
    color: black;
    font-weight: 400;
    padding: 0 12px !important;
}

.k-numerictextbox > input::placeholder {
    color: black;
}

/* ****************** */
/* *** DATEPICKER *** */
/* ****************** */

/* rimozione bordi/hover e ombre */
.k-datepicker,
.k-datepicker:focus,
.k-datepicker:focus-within {
    border-style: none;
    box-shadow: none;
    color: black;
    height: 40px; /* +2 bordo = 42 */
    font-family: "Inter-Regular";
}

.k-datepicker .k-input-button {
    background-color: white;
    border: none;
}

/* se il controllo è in sola lettura, nascondo l'icona */
.k-datepicker > input[aria-readonly="true"] ~ button.k-button {
    display: none;
}

/* giorno selezionato */
.k-calendar .k-calendar-td.k-selected .k-link {
    background-color: var(--primary-bg);
    color: var(--primary);
}

/* hover giorno selezionato */
.k-calendar .k-calendar-td.k-selected:hover .k-link {
    background-color: var(--primary-bg);
    color: var(--primary);
}

/* hover altro giorno */
.k-calendar .k-calendar-td:hover .k-link {
    background-color: var(--primary-bg);
}

/* oggi */
.k-calendar .k-calendar-view .k-today {
    color: var(--primary);
}

/* ****************** */
/* *** TIMEPICKER *** */
/* ****************** */
.k-timepicker,
.k-timepicker:focus,
.k-timepicker:focus-within {
    border-style: none;
    box-shadow: none;
    color: black;
    height: 40px; /* +2 bordo = 42 */
    font-family: "Inter-Regular";
}


/* elementi della lista */
[id$="_timeview"] .k-list-item {
    padding: 10px !important;
    margin: 5px 0;
    height: 10px;
    color: black;
    font-family: "Inter-Regular";
    font-size: 14px;
    box-shadow: none;
    box-sizing: content-box;
}

/* hover */
[id$="_timeview"] .k-list-item:hover {
    background-color: var(--primary-bg);
}

/* selezionato */
[id$="_timeview"] .k-list-item.k-selected {
    background-color: var(--primary-bg);
    color: var(--primary);
}

/* ***************** */
/* *** COMBO BOX *** */
/* ***************** */

/* rimozione bordi/hover e ombre */

.k-combobox {
    height: 40px; /* +2 bordo = 42 */
}

.k-combobox,
.k-combobox:focus,
.k-combobox:focus-within,
.k-combobox.k-focus,
.k-combobox:hover {
    border-style: none;
    box-shadow: none;
    background-color: white;
    color: black;
}

/* bottone popup */
.k-combobox .k-button {
    background-color: white;
    border: none;
}

/* testo */
.k-combobox input.k-input-inner {
    font-family: "Inter-Regular";
    font-size: 14px;
    font-weight: 400;
}

/* se il controllo è in sola lettura, nascondo l'icona */
.k-combobox input.k-input-inner[aria-readonly="true"] + button > span.k-button-icon {
    display: none;
}

/* **************************** */
/* *** popup lista elementi *** */
/* **************************** */

/* popup */
.k-combobox-popup {
    background-color: white;
    padding: 5px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    border: none;
}

/* elementi della lista */
.k-combobox-popup .k-list-item {
    padding: 10px;
    margin: 5px 0;
    height: 10px;
    color: black;
    font-family: "Inter-Regular";
    font-size: 14px;
    box-shadow: none;
    box-sizing: content-box;
}

/* hover */
.k-combobox-popup .k-list-item:hover {
    background-color: var(--primary-bg);
}

/* selezionato */
.k-combobox-popup .k-list-item.k-selected {
    background-color: var(--primary-bg);
    color: var(--primary);
}

/* lista vuota */
.k-combobox-popup .k-no-data {
    font-family: "Inter-Regular";
    font-size: 14px;
    color: black;
}

/* ***************** */
/* *** DROP DOWN *** */
/* ***************** */

/* rimozione bordi/hover e ombre */

.k-dropdownlist {
    height: 40px; /* +2 bordo = 42 */
}

.k-dropdownlist,
.k-dropdownlist:focus,
.k-dropdownlist:focus-within,
.k-dropdownlist.k-focus,
.k-dropdownlist:hover {
    border-style: none;
    box-shadow: none;
    background-color: white;
    color: black;
}

/* variante blu */

.input-container-blu .k-dropdownlist {
    background-color: var(--primary);
}

.input-container-blu .k-dropdownlist,
.input-container-blu .k-dropdownlist:focus,
.input-container-blu .k-dropdownlist:focus-within,
.input-container-blu .k-dropdownlist.k-focus,
.input-container-blu .k-dropdownlist:hover {
    background-color: var(--primary);
    color: white;
}

/* valore selezionato */
.k-dropdownlist .k-input-value-text {
    font-family: "Inter-Regular";
}

/* se il controllo è in sola lettura, nascondo l'icona */
.k-dropdownlist[aria-readonly="true"] button.k-button span.k-icon {
    display: none;
}

/* se il controllo è disabilitato, imposto il cursore di default */
.k-dropdownlist[aria-readonly="true"] {
    cursor: default;
}

/* disabilitata */

.k-dropdownlist.k-disabled {
    background-color: #A1A1A1;
    color: white;
    opacity: 1;
}

.k-dropdownlist-popup .k-list-item-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* **************************** */
/* *** popup lista elementi *** */
/* **************************** */

/* popup */
.k-dropdownlist-popup {
    background-color: white;
    padding: 5px 0;
    border-radius: 5px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
    border: none;
}

/* elementi della lista */
.k-dropdownlist-popup .k-list-item {
    padding: 10px;
    margin: 5px 0;
    height: 10px;
    color: black;
    font-family: "Inter-Regular";
    font-size: 14px;
    box-shadow: none;
    box-sizing: content-box;
}

/* hover */
.k-dropdownlist-popup .k-list-item:hover {
    background-color: var(--primary-bg);
}

/* selezionato */
.k-dropdownlist-popup .k-list-item.k-selected {
    background-color: var(--primary-bg);
    color: var(--primary);
}

/* lista vuota */
.k-dropdownlist-popup .k-no-data {
    font-family: "Inter-Regular";
    font-size: 14px;
    color: black;
}

/* ************** */
/* *** DIALOG *** */
/* ************** */

/* nascondo la barra del titolo */
.k-window .k-window-titlebar {
    display: none;
}

/* azzero il padding al contenuto del dialog */
.k-window .k-window-content {
    padding: 0;
    background-color: #E1ECF2;
}

/* modalità "light" */

.k-window.light {
    border-radius: 10px;
    overflow: hidden;
    color: black;
}

.k-window.light .k-window-content {
    background-color: #FFFFFF;
}

/* ******************** */
/* *** CONTEXT MENU *** */
/* ******************** */
.k-popup {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
}

.k-menu {
    padding: 10px 0;
}

.k-menu .k-menu-item {
    margin: 5px 0;
}

.k-menu.k-context-menu .k-item > .k-link:hover {
    background-color: var(--secondary);
}

.k-menu.k-context-menu .k-item > .k-link:active {
    background-color: white;
}

.k-menu.k-context-menu .k-item > .k-link,
.k-menu.k-context-menu .k-item:focus > .k-link {
    box-shadow: none !important;
    height: 30px;
    line-height: 30px;
}

.k-menu .k-menu-item .k-menu-link-text {
    color: black;
    font-family: "Inter-Regular";
    font-size: 14px;
    font-weight: 400;
}

/* ***************** */
/* *** SCHEDULER *** */
/* ***************** */

.k-scheduler {
    font-family: "Inter-Regular";
}

.k-scheduler .k-event {
    background-color: var(--primary);
    font-size: 12px;
}

.k-scheduler .k-scheduler-views .k-button.k-selected {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* *************** */
/* *** GRIGLIA *** */
/* *************** */

/* loading*/
.k-loading-mask {
    display: none;
}

.k-grid {
    font-family: "Inter-Regular";
}

/* separazione righe */
.k-grid-table {
    border-collapse: separate !important;
    border-spacing: 0 2px !important; /* 2025-01-24: 5px */
}

/* colore cella */
.k-grid .k-table,
.k-table-thead,
.k-grouping-header {
    color: black;
}

/* eliminazione sfondo */
.k-grid,
.k-grid .k-grid-content {
    background-color: transparent;
    border: none;
}

.k-grid .k-table-td {
    border-right: none;
    font-variant-numeric: tabular-nums lining-nums; /* rende il font a spaziatura fissa */
    height: 26px; /* altezza complessiva = 42 (28 altezza + 8 margin top + 8 margin bottom)  */
}

.k-grid .k-table-row {
    background-color: white;
}

/* rimozione righe alternate */
.k-grid .k-table-row.k-table-alt-row {
    background-color: white;
}

/* hover riga */
.k-grid .k-table-tbody > .k-table-row:not(.k-detail-row):hover {
    background-color: var(--primary-bg) !important;
}

/* riga selezionata */
.k-grid .k-table-row.k-selected > .k-table-td {
    background-color: var(--primary-bg) !important;
    color: var(--primary);
}

/* intestazioni di colonna */
.k-grid .k-table-thead th.k-header .k-cell-inner {
    /*display: inline-flex !important; */ /* permette l'allineamento dell'intestazione di colonna */
    font-family: "TitiliumWeb-Light";
    font-weight: 600;
    font-size: 16px;
}

.k-grid .k-header {
    background-color: var(--primary-bg);
    height: 26px; /* altezza complessiva = 42 (26 altezza + 8 margin top + 8 margin bottom)  */
    vertical-align: middle !important;
}

.k-grid .k-table-thead {
    background-color: #E7F0F5;
}

/* raggruppamento */
.k-grid .k-grouping-header {
    background-color: #E7F0F5;
    font-size: 12px;
    border: none;
    height: 42px;
    padding-block: unset;
}

/* icona destinazione raggruppamento */
.k-grid .k-grouping-header .k-grouping-dropclue {
    margin: 2px 0 0 0;
}

/* colonne raggruppate */
.k-grid .k-grouping-header .k-chip-solid-base {
    background-color: var(--primary);
    color: white;
    height: 18px; /* 28px altezza totale (5px padding top + 5 px padding bottom)*/
}

/* icona di ordinamento */
.k-grid .k-grid-header .k-sort-icon {
    color: black;
}

/* numero ordinamento */
.k-grid .k-grid-header .k-sort-order {
    color: black;
    height: 15px;
    line-height: 15px;
    font-size: 14px;
    font-family: "Inter-Regular";
    font-weight: 300;
}

.k-grid .k-grid-footer {
    margin: 4px 0 0 0;
}

.k-grid-footer .k-table-td {
    font-family: "TitiliumWeb-Light";
    font-weight: 600;
    font-size: 16px;
    color: black;
}

/* formattazione condizionale */

.k-grid .k-table-row.disabled-row {
    color: #A1A1A1;
    opacity: 0.8;
}

/* check */

.k-grid .checkbox-cell {
    text-align: center;
}

.k-grid .checkbox-cell .row-checkbox {
    width: 16px;
    height: 16px;
}

/* trascinamento colonna */
.k-drag-clue {
    background-color: var(--primary-bg);
    height: 42px;
    vertical-align: middle !important;
    font-family: "TitiliumWeb-Light";
    font-weight: 600;
    font-size: 16px;
    color: black;
}
