﻿/* KUI */

.k-color-primary {
    color: white;
}

.k-bg-primary {
    background-color: #094AB1;
}

.k-bg-secondary {
    background-color: #000000;
}

.k-loading-image {
    display: none;
    /* disattivo l'icona di default di caricamento della kendo */
}

/* k-grid */

.k-pager-info {
    display: inline !important;
    /* visualizzo il messaggio in basso a destra */
}

.k-table-thead th.k-header .k-cell-inner {
    display: inline-flex !important;
    /* permette l'allineamento dell'intestazione di colonna */
}

/* k-dropdownlist */

.k-picker-solid,
.k-picker-solid:hover {
    background-color: white;
}

/* --------- */
* {
    outline: none;
}

body {
    font-family: "Segoe UI Web Semibold", "Segoe UI Web Regular", "Segoe UI", "Segoe UI Symbol", "Helvetica Neue", Arial;
    font-size: 14px;
    color: black;
    background-color: white;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /*min-width: 800px;*/
}

.btn:hover {
    cursor: pointer;
}

img {
    user-select: none;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clear {
    clear: both;
}

.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.required {
    color: red;
    margin: 0 0 0 2px;
}

input:read-only {
    color: gray;
}

.lbl {
    display: block;
}

.tag-incompleto {
    box-sizing: border-box;
    border: 1px solid red;
    border-radius: 5px;
    margin: 8px 0 0 0;
    padding: 0 8px 8px 8px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.box-titolo {
    color: #094AB1;
    border-bottom: 1px solid #094AB1;
    /*	cursor: pointer;*/
    margin: 0 0 8px 0;
}

/* LOADING */

#loading {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 99000;
    top: 0;
    left: 0;
}

#loadingSpinner {
    position: absolute;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 4px solid #00A8FF;
    border-top-color: transparent;
    border-radius: 50px;
    left: 50%;
    top: 30%;
    margin-top: -25px;
    margin-left: -25px;
    animation: spinner 1s linear infinite;
}

.miniSpinner {
    width: 100%;
    height: 100%;
    background: transparent;
    border: 4px solid #00A8FF;
    border-top-color: #FFFFFF;
    border-radius: 100%;
    animation: spinner 1s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* HEADER */

#header {
    height: 40px;
}

/* menu */

#header .menu-item {
    color: black;
    font-size: 16px;
    padding: 8px;
    cursor: pointer;
}

#header .menu-item:hover {
    background-color: #EEEEEE;
}

#header .menu-sep {
    border-bottom: 1px solid lightgray;
}

/* menu 2 */

#header .menu-item-2 {
    font-size: 16px;
    cursor: pointer;
    line-height: 32px;
}

#header .sub-menu {
    display: none;
    position: absolute;
    right: 8px;
    top: 43px;
    background-color: white;
    text-align: right;
    border: 1px solid lightgray;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    min-width: 200px;
    border-radius: 5px;
    z-index: 100;
}

#header .sub-menu .menu-item a {
    text-decoration: none;
    color: black;
}

/* BREADCRUMB */
#breadcrumb {
    background-color: white;
    height: 40px;
    padding: 0 0 0 32px;
    line-height: 40px;
    font-size: 14px;
    overflow: auto;
    border: none;
}

#breadcrumb .bc-item {
    color: #094AB1;
}

#breadcrumb .bc-item:not(.is-last):hover {
    cursor: pointer;
    text-decoration: underline;
}

#breadcrumb .bc-item.is-last {
    color: gray;
}

#breadcrumb .bc-sep {
    color: gray;
    padding: 0 8px;
}

#breadcrumb .bc-ico {
    display: inline-block;
    vertical-align: bottom;
    margin: 0 0 8px 0;
}

/* LOGO */
#boxHeaderLogoConsorzio {
    height: 40px;
    overflow: hidden;
}

#boxHeaderLogoConsorzio > img {
    height: 40px;
}

/* AVVISI */
#boxAvvisi {
    position: fixed;
    top: 50px;
    right: 0;
    width: 200px;
    overflow: hidden;
    padding: 8px 16px 16px 36px;
    z-index: 1000;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    background: rgb(195, 96, 34);
    background: linear-gradient(0deg, rgba(195, 96, 34, 1) 0%, rgba(253, 45, 45, 1) 100%);
    color: white;
    cursor: pointer;
    min-height: 40px;
}

#boxAvvisiTitolo {
    transform: rotate(-90deg);
    position: absolute;
    top: 22px;
    left: 0;
    font-weight: bold;
}

/* MAIN */
#main {
    display: none;
    height: calc(100vh - 130px);
    overflow: auto;
    background-color: white;
}

#main #ContentMain_boxContent {
    padding: 0 40px;
}

/* FOOTER */

#footer {
    background-color: #EEEEEE;
    font-size: 12px;
    color: black;
    height: 50px;
    width: 100%;
    overflow: auto;
    text-shadow: 2px 1px 2px rgba(150, 150, 150, 1);
}

#footer .f-item {
    float: right;
    line-height: 50px;
    padding: 0 32px 0 0;
}

#footer .f-item,
#footer .f-item a {
    color: #094AB1;
    text-decoration: none;
}

#footer .f-item:hover,
#footer .f-item a:hover {
    color: #032F75;
    text-decoration: underline;
}

.footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: black;
    height: 50px;
    text-shadow: 2px 1px 2px rgba(150, 150, 150, 1);
    background-color: #EEEEEE;

    & img {
        margin-right: 10px;
    }

    & a {
        color: #094AB1;
        text-decoration: none;

        &:hover {
            color: #032F75;
            text-decoration: underline;
        }
    }
}

/* DIALOG */

.k-grid .k-grouping-header > .k-grouping-drop-container {
    overflow: hidden;
    text-wrap: nowrap;
    text-overflow: ellipsis;
}

.kdlg-footer {
    position: absolute;
    bottom: 16px;
    width: calc(100% - 25px);
}

.kdlg-footer .k-button {
    padding: 8px;
}

/* ICONE */

.ico-kui {
    cursor: pointer;
    text-align: center;
    padding: 0 8px 0px 34px;
    background-repeat: no-repeat;
    background-position: 8px 3px;
}

.ico-kui-excel {
    background-image: url("../images/grid/excel16.png");
}

.ico-kui-add {
    background-image: url("../images/grid/add.png");
}

.ico-kui-upload {
    background-image: url("../images/grid/upload.png");
}

/* STATI DOMANDA */

.domanda-annullata {
    color: red;
}

.generaLinkPwd,
.generaLinkReg {
    text-decoration: underline;
}

.generaLinkPwd:hover,
.generaLinkReg :hover {
    cursor: pointer
}

.boxCdi {
    height: 70px;
    border: 1px dashed #CACACA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boxCdi:hover {
    cursor: pointer
}

.boxCdiItems {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.boxCdiItems .cdiItem {
    border: 1px solid #CACACA;
    border-radius: 8px;
    padding: 5px;
    width: fit-content;
    margin-top: 4px;
    cursor: pointer;
}

.pointer {
    cursor: pointer;
}

.text-center {
    text-align: center;
}

.pw-requirement {
    margin: 3px 0;
    position: relative;
    padding-left: 20px;
}

.pw-requirement.valid {
    color: #3B9F52;
}

.pw-requirement.invalid {
    color: #E93939;
}

.pw-requirement.valid:before {
    content: "✓";
    position: absolute;
    left: 0;
}

.pw-requirement.invalid:before {
    content: "✗";
    position: absolute;
    left: 0;
}

.pwValidationTooltip {
    margin: 10px 0;
    font-size: 15px;
    color: white;
}

.pwValidationTooltipTitle {
    color: black;
    font-weight: bold;
    margin-bottom: 5px;
}

.k-tooltip {
    background-color: white;
}

.k-callout-w {
    border-right-color: #F5F5F5 !important;
}

.k-callout-e {
    border-left-color: #F5F5F5 !important;
}

.k-callout-n {
    border-bottom-color: #F5F5F5 !important;
}

.k-tooltip-content {
    background-color: white;
}

.box {
    border: 1px solid lightgray;
    padding: 20px;
    border-radius: 5px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 13px 27px -5px, rgba(0, 0, 0, 0.3) 0 8px 16px -8px;
}

.boxTitle {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Default layout for desktop */
.flex-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.login-box {
    width: 300px;
}

.notices-box {
    width: 500px;
    overflow-y: auto;
}

.headerGrid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;

    .leftSide {
        display: flex;
        align-items: center;
        gap: 8px;
        grid-column: 1;
        flex-wrap: nowrap;
        min-width: 350px;
        max-height: 40px;

        .appName {
            font-size: 18px;
        }
    }

    .rightSide {
        display: flex;
        gap: 16px;
        align-items: center;
        justify-content: flex-end;
        grid-column: -1;
        max-height: 40px;
        min-width: 450px;

        .menu {
            display: contents;
            gap: 16px;

            & > div {
                border-radius: 8px;
                padding: 1px;
            }

            & > div:hover {
                background-color: color-mix(in srgb, white 0%, #EEEEEE 40%);
            }

            & [id$=mnuHelpOnLine]:first-child {
                margin-right: 10px;
            }
        }

        .bm {
            display: none;

            &:hover {
                cursor: pointer;
            }
        }


        .menuUtente {
            z-index: 100;
            display: none;
            position: absolute;
            right: 8px;
            top: 48px;
            width: 250px;
            background-color: white;
            border: 1px solid lightgray;
            border-radius: 5px;
            box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
        }

        .menuProfilo {
            overflow: hidden;
            height: 40px;
            margin: 0 8px;
            cursor: pointer;
        }
    }
}

@media only screen and (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        overflow: hidden;
        box-sizing: border-box;
    }

    .login-box,
    .notices-box {
        width: 100%;
        box-sizing: border-box;
        overflow-y: auto;
        max-height: 380px;
        min-width: 500px;
    }

    #lstAvvisi {
        height: 300px !important;
    }

    /*input,
	select,
	textarea,
	button {
		width: 100%;
		padding: 10px;
		margin-bottom: 10px;
		box-sizing: border-box;
	}

	[style*="cursor: pointer"] {
		padding: 8px 0;
		display: inline-block;
	}*/

    .boxTitle {
        margin-top: 10px;
    }

    .headerGrid {
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr 1fr;

        .leftSide {
            min-width: 500px;
        }

        .rightSide {
            justify-content: flex-end;
            min-width: 100px;
            gap: 8px;

            .menu {
                gap: 8px;
                display: none;
                flex-direction: column;
                position: absolute;
                right: 8px;
                top: 48px;
                width: 250px;
                z-index: 200;
                color: black;
                background-color: white;
                border: 1px solid lightgray;
                border-radius: 5px;
                box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
                padding: 5px;
            }

            .bm {
                display: block;
                margin-top: 5px;
            }
        }
    }
}

#dlg-gis-iframe.k-window-content {
    overflow: hidden !important;
}

.k-grid .k-table-row.disabled-row {
    color: #A1A1A1;
    opacity: 0.4;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: gray;
    color: #eee;
    font-size: 12px;
    margin-left: 5px;
    cursor: help;
    font-style: italic;
    font-family: serif;

    &.yellow {
        background: #f9ca1e;
        color: #333;
    }
}

.info-tooltip {
    position: absolute;
    z-index: 99000;
    min-width: 150px;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #333333;
    font-size: 12px;
    text-align: center;
}

.eye-icon {
    width: 16px;
    height: 16px;
    color: grey;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

textarea {
    resize: none;
}
