@media print{
    .page {
        width: 700px;
        height: 700px;
        page-break-inside: avoid !important;
        page-break-after: always !important;
        position: relative;
    }

    .page .n2-ss-slide {
        left: 0 !important;

    }

    .print.cliente {
        font-size: 11px;
    }

    .print.cliente .sedi {
        font-size: 9px;
        margin-top: 20px;
    }

    .print.cliente .sede {
        margin-top: 20px;
    }


}


html body, body * {
    border-spacing: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-touch-callout:none;
    -webkit-user-select:none;
    -khtml-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    -o-user-select:none;
}

html {
    height: 100%;
    letter-spacing: 1px;
}

body {
    height: 100%;
}

img { 
    border: 0;
    display: block;
}

input, textarea {
    font-family: Verdana, Arial, Helvetica; 
    letter-spacing: 1px;
    -webkit-user-select:auto;
    -khtml-user-select:auto;
    -moz-user-select:auto;
    -ms-user-select:auto;
    -o-user-select:auto;
}

ul {
    list-style-type: none;
}

.center {
    text-align: center !important;
    vertical-align: middle !important;
}

.pointer div {
    cursor: pointer;
}

.pointer div .inactive {
    cursor: default;
}

#layout {
    width: 100%;
    height: 100%;
    min-height: 100px;
}

.kke-box-lock {
    background:#000;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index:1010;
    cursor:pointer; 
    opacity: .6; 
    filter: alpha(opacity=60);
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
}

.box { 
    width:90%;
    height:80%; 
    background-color:#FFF; 
    display:none; 
    z-index:1015; 
    position:fixed; 
    left:5%;
    top:10%; 
    -moz-border-radius: 15px;  
    -webkit-border-radius: 15px;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

.box.note {
    width: 600px;
    left: 50%;
    margin-left: -300px;
}

.box.note .header {
    height: 28px;
    line-height: 28px;
    position: absolute;
    top: 0;
    width: 100%;
    border-bottom: 1px solid #99bbe8!important;
    overflow: hidden;
    color: #444;
    font-size: 13px;
    background-image: -webkit-linear-gradient(#dae6f3,#c2d5ed);
    background-image: -moz-linear-gradient(#dae6f3,#c2d5ed);
    background-image: -ms-linear-gradient(#dae6f3,#c2d5ed);
    background-image: -o-linear-gradient(#dae6f3,#c2d5ed);
    background-image: linear-gradient(#dae6f3,#c2d5ed);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffdae6f3', endColorstr='#ffc2d5ed', GradientType=0);
}

.box.note .body {
    top: 28px;
    bottom: 24px;
    overflow: hidden;
    text-align: left;
    font-size: 0.7em;
    position: absolute;
    width: 100%;
}

.box.note .body textarea {
    width: 100%;
    height: 100%;
    padding: 10px;
    border: 0;
    outline: 0;
    resize: none;
}

.box.note .body textarea[readonly] {
    background: #fff !important;
    color: #222 !important;
}

.box.note .footer {
    height: 24px;
    line-height: 24px;
    position: absolute;
    bottom: 0;
    width: 100%;
    overflow: hidden;
    color: #444;
    font-size: 13px;
    box-shadow: 0 -1px 4px #eee;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
}

.box .close {
      position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  line-height: 20px;
  cursor: pointer;
}

.box .close:hover {
    font-size: 1.3em;
}

#version {
    position: fixed;
    color: #000;
    z-index: 1002;
    left: 20px;
    padding: 5px;
    font-size: 0.6em;
    display: table;
    height: 70px;
}

#version ul {
    vertical-align: middle;
    text-align: center;
    display: table-cell;
}

#user {
    position: fixed;
    color: #000;
    z-index: 1002;
    right: 20px;
    padding: 10px;
    font-size: 0.7em;
    display: table;
    height: 70px;
}

#user ul {
    vertical-align: middle;
    display: table-cell;
}

#user .nome {
    text-align: center;
    color:#fff;
}

#user .logout {
    display: table;
    background: #e7e7e7;
    background-image: -webkit-linear-gradient(#fff 0,#e7e7e7 100%);
    background-image: -moz-linear-gradient(#fff 0,#e7e7e7 100%);
    background-image: -ms-linear-gradient(#fff 0,#e7e7e7 100%);
    background-image: -o-linear-gradient(#fff 0,#e7e7e7 100%);
    background-image: linear-gradient(#fff 0,#e7e7e7 100%);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffe7e7e7', endColorstr='#ffffffff', GradientType=0);
    box-shadow: 0px 0px 2px #222;
    color: #222;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    padding-left: 10px;
    padding-right: 10px;
    margin: 5px auto;
    white-space: nowrap;
    border-radius: 5px;
}

#user .logout:hover {
    color: #fff;
    background: #832;
    background-image: -webkit-linear-gradient(#f64 0,#832 100%);
    background-image: -moz-linear-gradient(#f64 0,#832 100%);
    background-image: -ms-linear-gradient(#f64 0,#832 100%);
    background-image: -o-linear-gradient(#f64 0,#832 100%);
    background-image: linear-gradient(#f64 0,#832 100%);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffff6644', endColorstr='#ff883322', GradientType=0);
}

#top {
        background: #e5e5e5;
        width: 100%;
}

#header {
	height: 35px;
        line-height: 35px;
        text-align: center;
        position: fixed;
        z-index: 1000;
        width: 100%;
        top: 0px;
}

#menu {
    background: #e5e5e5;
        text-align: center;  
        vertical-align: top;
        width: 100%;
        height: 35px;
        line-height: 34px;
        max-height: 35px;
        position: fixed;
        z-index: 1001;
            top: 35px;
            border-bottom: 1px silver solid;
}


#menu .container {
    margin: auto;
    padding:0;
    display: table;
}   
 
#menu .container .menu {
    float:left;
    display:table;
    width:120px;
    max-width: 150px;
    background: #e7e7e7;
  background-image: -webkit-linear-gradient(#fff 0,#e7e7e7 100%);
  background-image: -moz-linear-gradient(#fff 0,#e7e7e7 100%);
  background-image: -ms-linear-gradient(#fff 0,#e7e7e7 100%);
  background-image: -o-linear-gradient(#fff 0,#e7e7e7 100%);
  background-image: linear-gradient(#fff 0,#e7e7e7 100%);
  filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffe7e7e7', endColorstr='#ffffffff', GradientType=0);
  box-shadow: 0px 0px 2px #222;
    position:relative;
    top: 2px;
    margin:0 2px;
    color: #222;
    font-size: 0.8rem;
    cursor: pointer;
    height: 20px;
    line-height: 20px;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}
#menu .container>.menu.first {
    -moz-border-top-left-radius: 5px;
    -moz-border-bottom-left-radius: 5px;
    -o-border-top-left-radius: 5px;
    -o-border-bottom-left-radius: 5px;
    -webkit-border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

#menu .container>.menu.last {
    -moz-border-top-right-radius: 5px;
    -moz-border-bottom-right-radius: 5px;
    -o-border-top-right-radius: 5px;
    -o-border-bottom-right-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
#menu .container .menu div {
    height: 100%;
}
#menu .container .menu:hover, #menu .container .menu.active {
    color: #fff;
    background: #832;
    background-image: -webkit-linear-gradient(#f64 0,#832 100%);
    background-image: -moz-linear-gradient(#f64 0,#832 100%);
    background-image: -ms-linear-gradient(#f64 0,#832 100%);
    background-image: -o-linear-gradient(#f64 0,#832 100%);
    background-image: linear-gradient(#f64 0,#832 100%);
    filter: progid:dximagetransform.microsoft.gradient(startColorstr='#ffff6644', endColorstr='#ff883322', GradientType=0);
}

#menu .container .menu.has-sub ul {
    position:absolute;
    width: 114px;
    left: 50%;
    display:none;
    margin-left: -57px;
}
#menu .container .menu.has-sub .sub {
    display: block;
    width: 110px;
    margin-top: 2px;
    font-size: 0.6rem;
    height: 17px;
    line-height: 17px;
    text-overflow: ellipsis;
    overflow-x: hidden;
}

#menu .container .menu.has-sub .sub.last {
        -webkit-border-radius:0 0 5px 5px;
    -moz-border-radius:0 0 5px 5px;
        border-radius:0 0 5px 5px;
    }
    
#menu .container .menu.has-sub .sub div {
    height: 26px;
    padding-left: 10px;
    padding-right: 10px;
}

#body {
    background: none;
    margin: auto;
    height: 100%;
    text-align:left;
    vertical-align: top;
    color: #fff;
}

#body img {
    max-width: 100%;
}

#body div.page {
    display: none;
    vertical-align: top;
    color:  #111;
    text-align: center;
    font-size: 1em;
    background: none;
    height: 100%;
}

#body div.page .kke-grid {
    height: 100%;
    min-height: 250px;
}

#body div.page .kke-calendar {
    min-height: 300px;
    height: 100%;
    font-size: 14px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

.kke-grid .expanded {
    padding: 10px;
    text-align: left;
}

#bottom {
    height: 20px;
    padding: 5px;
    background: none;
    color: #222;
    text-align: center;
    font-size: 0.6em;
    font-weight: bold;
    line-height: 10px;
}

.box .w2ui-grid {
    height: 100%;
}

.w2ui-input {
    font-size: 1em;
}

.w2ui-overlay .menu {
    overflow-x: hidden !important;
}

.w2ui-overlay table.w2ui-drop-menu {
    background: none;
}

.w2ui-overlay .image {
    max-width: 100%;
}

.w2ui-grid .w2ui-grid .w2ui-grid-body .w2ui-grid-records {
    overflow: hidden !important;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.bold {
    font-weight: bold !important;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.center {
    text-align: center !important;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.right {
    text-align: right;
}

.w2ui-grid:not(.not-edit) .w2ui-grid-body .w2ui-grid-records tr:not(.not-edit) td.edit {
    color: #00a;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.edit.forced {
    color: #00a !important;
}

.w2ui-grid:not(.not-calc) .w2ui-grid-body .w2ui-grid-records tr:not(.not-calc) td.calc {
    color: #0a0;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.calc.forced {
    color: #0a0 !important;
}

.w2ui-grid:not(.not-red) .w2ui-grid-body .w2ui-grid-records tr:not(.not-red) td.red {
    color: #a00;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.red.forced {
    color: #a00 !important;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.multiline div {
    white-space: normal;
    text-overflow: ellipsis;
    line-height: 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    font-size: 0.9em;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records td.foto img {
    border: 1px #999 solid;
}

.w2ui-grid-header .arrow {
    cursor: pointer;
    padding: 10px;
}

.w2ui-grid-header .arrow.disabled {
    color:  #aaa;
    cursor: initial;
}

.w2ui-popup {
    min-height: 200px;
    max-height: 90%;
}

#w2ui-popup .login ul {
    width: 200px;
    margin: auto;
}

#w2ui-popup .login li {
    padding-top: 20px;
        list-style-type: none;
}

#w2ui-popup .login li:first-child {
    padding-top: 0px;
}

#w2ui-popup .login li select, #w2ui-popup .login li input {
    width: 200px;
}

select {
  color: gray;
}

option {
  color: black;
}

option[disabled] {
  display: none;
}

button:focus {
    border-color: #72b2ff !important;
}

#w2ui-overlay {
    border-radius: 10px;
}

#kkegrid-overlay {
    overflow: hidden !important;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records i.icon {
    color:#000;
    font-size: 1.3em;
}

.w2ui-grid .w2ui-grid-body .w2ui-grid-records i.icon.inactive {
    color:#bbb;
}

.dragover {
    -webkit-filter: sepia(100%);
}

#trash {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    
    text-align: right;
    z-index: 2000;
    display: none;
}

#trash i {
    color: #a00;
    font-size: 40px;
}

.w2ui-lock {
    z-index: 900;
}

.w2ui-lock-msg {
    z-index: 900;
}

.w2ui-tag {
    display: none;
}

/* BUG scroll toolbar: elementi in position absolute rimangono fermi */
.w2ui-grid .w2ui-grid-toolbar .w2ui-scroll-wrapper {
    position: relative;
}

.w2ui-reset {
    font-size: 10px;
}

.w2ui-reset table tr th, .w2ui-reset table tr td {
    font-size: 10px;
}

#layout_layout_panel_top {
    z-index: 130;
}

#left {
    display: none;
    position: relative;
    width: 100%;
    height: 100%;
        border: 1px solid silver;
            border-radius: 3px;
    
}

#left .content {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 0.6em;
    text-align: center;
    right: 20px;
    padding: 20px 0px 20px 20px;
    overflow: hidden;
}

#left .arrow {
    position: absolute;
    width: 20px;
    height: 100%;
    text-align: center;
    right: 0;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAABOElEQVRIS8WVTUrFMBSF701Du4EHTtSBLkN56gL6d6E4cSSOH+5E1LG4gELaHTydiKuQKm6igySSgVCKbX4exYyT891z7k2CsPDChfXh/wFFUVwh4iMAdFrrsm3bzsf1rIOyLE+VUq+MMWZElVKfiHjuA7EBNgBwP6zYFzILSNN0xTl/B4DjUIi1yUS0r7V+CYVYAabyPM8PGGPbEIgT4BdinERRdOQTlzPABonjeF3X9dd4hL0A5nBVVYd932/HTgDguWma68UAiPgkhLjZCTBVvZTyg3N+JoT4DgbMiSdJcvFX/gbm1INQcSfALuJWQJZlewDwNp4Yk/lcLMM+zEZERLda67vhAR9xqwMiOpFSmuc6Mpt9xa0As4GILqWUD4yxjnNeTU3L1CfkNEU+P1jwPQiFLO7gB08DvhnK6JNpAAAAAElFTkSuQmCC') center no-repeat;
}

.w2ui-popup .w2ui-popup-title {
    line-height: initial;
}

/* Form centrato nel popup */
.w2ui-popup .w2ui-form-box .w2ui-column {
    margin: auto;
}

.w2ui-form-box .w2ui-field.w2ui-span0, .w2ui-form-box .w2ui-field.w2ui-span100 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.w2ui-form-box .w2ui-field.w2ui-span0>label {
    display: none;
}

.w2ui-form-box .w2ui-field.w2ui-span100>label {
    text-align: center;
    float: none;
    white-space: normal;
    width: 100%;
}

.w2ui-form-box .w2ui-field.w2ui-span0>div, .w2ui-form-box .w2ui-field.w2ui-span100>div {
    margin-left: 0;
    width: 100%;
}

.w2ui-reset .w2ui-form-box .w2ui-field.w2ui-span0 input.w2ui-input, .w2ui-reset .w2ui-form-box .w2ui-field.w2ui-span100 input.w2ui-input {
    width: 100%;
}

.w2ui-form-box textarea.w2ui-input {
    width: 100%;
    min-width: 250px;
    max-width: 300px;
    height: 80px;
    resize: vertical;
}

.w2ui-form-box .w2ui-field .foto {
    position: relative;
    display: table;
}

.w2ui-form-box .w2ui-field .foto img.w2ui-input {
    width: auto;
    min-width: 80px;
    max-width: 300px;
    min-height: 80px;
    border: 1px silver solid;
}

.w2ui-form-box .w2ui-field .foto .remove {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    width: 15px;
    height: 15px;
    border-radius: 15px;
    font-size: 11px;
}
.w2ui-form-box .w2ui-field .foto:hover .remove {
    background-color: rgba(255, 255, 255, 0.4);
}
.w2ui-form-box .w2ui-field .foto .remove:hover {
  background-color: #D77F7F;
  color: white;
}
.w2ui-form-box .w2ui-field .foto .remove:before {
  position: relative;
  top: 0px;
  padding: 0px;
  margin: 0px;
  left: 5px;
  color: inherit;
  opacity: 0.7;
  text-shadow: inherit;
  font-size: inherit;
  font-variant: small-caps;
  content: 'x';
  line-height: 100%;
}

button.w2ui-btn.disabled {
  border: 1px solid #bbb !important;
  background: #f7f7f7 !important;
  color: #bdbcbc !important;
  text-shadow: none !important;
}

/** 
 * iPad with portrait orientation.
 */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:portrait){
  .vh100 {
    height: 1024px;
  }
}

/** 
 * iPad with landscape orientation.
 */
@media all and (device-width: 768px) and (device-height: 1024px) and (orientation:landscape){
  .vh100 {
    height: 768px;
  }
}

/**
 * iPhone 5
 * You can also target devices with aspect ratio.
 */
@media screen and (device-aspect-ratio: 40/71) {
  .vh100 {
    height: 500px;
  }
}