/*

 Copyright (c) 2016 Kite Labs s.r.l. 
 All rights reserved.

 $Id$

*/
/* 
    Created on : 17-nov-2016, 11.58.17
    Author     : Riccardo Ghiglianovich <riccardo.ghiglianovich@kitelabs.it>
*/

input.ng-touched.ng-invalid:focus {
	box-shadow:0 2px 0 #e67a7a !important;
}
.has-error > input, input.ng-touched.ng-invalid {
	box-shadow:0 2px 0 rgba(226, 124, 124, 0.49) !important;
}

.pratica-label {
    color: Navy;
}

.editable {
    color: seagreen;
}


.percent-input-container {
    display: flex;
    align-items: center;
}
.percent-input {
    width: 100px; /* adjust the width as needed */
    text-align: left;
}
.percent-sign {
    margin-left: 5px; /* adjust the margin as needed */
}


/*elimina gli spinner dai campi numerici */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
		text-align: right;

}

 /*per andare a capo dentro una td tramite neline*/
.multiline { white-space: pre-line; }
/*per gestire i fieldset in readonly e presentarli normali, ovvero senza singrigirli*/
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
	background-color:inherit;
	opacity: 1;
}
.form-control[disabled], fieldset[disabled] .form-control {
	cursor:default;
	 box-shadow:none;
	 border:0 !important;
}

/*TEST finto fieldset */
.fieldset {
    /*border: 2px groove threedface;*/
    border: 1px solid silver !important;
    border-top: none!important;
    padding: 0.5em!important;
    margin: 1em 2px!important;
}

.fieldset>p {
    font: 1em normal;
    margin: -1em -0.5em 0;
}

.fieldset>p>span {
    float: left;
    font-family: arial;
    font-size: 12px;
    font-weight: 300;
    font-style: italic;
}

.fieldset>p:before {
    border-top:  1px solid silver !important;
    content: ' ';
    float: left;
    margin: 0.5em 2px 0 -1px;
    width: 0.75em;
}

.fieldset>p:after {
    border-top:  1px solid silver !important;
    content: ' ';
    display: block;
    height: 1.5em;
    left: 2px;
    margin: 0 1px 0 0;
    overflow: hidden;
    position: relative;
    top: 0.5em;
}

select[disabled] {
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	text-indent: 1px !important;
	text-overflow: '' !important;
}

.klNumber {
	text-align: right !important;
}

/*cursore a manina in tutti gli elementi ng-click*/
[ng-click],
[data-ng-click],
[x-ng-click] {
    cursor: pointer;
}
/*personalizzazioni dei blocchi */
.kl-block-header {
  background-color: #f9f9f9;
}
.form-material > label {
  font-size: 12px;
  font-weight: 300;
  font-style: italic;
}
.popover-400 {
    max-width: 400px;
}
.popover-900 {
    max-width: 900px;
}
.nav-main .nav-main-heading {
  font-weight: 300;
}

.table > thead > tr > th,
.table > tbody > tr > th,
.table > tfoot > tr > th {
  font-size: 14px;
  font-weight: 600;
}

.content {
  margin: 0 auto;
  padding: 10px 30px 1px;
  max-width: 100%;
  overflow-x: visible;
}
.content .items-push > div {
  margin-bottom: 10px;
}

.mjs-nestedSortable-error {
	background: #fbe3e4;
	border-color: transparent;
}
.sortable li.mjs-nestedSortable-collapsed > ol {
	display: none;
}
ol.wbs,.list-group-item > ol {
	margin-top: 10px;
}

.mini-form {
	margin: 0;
}
.mini-form > .form-control {
	padding: 0;
	height: inherit;
}

.list-group-item {
	position: relative;
}

/*
se sta < 1042 in certi casi alcune finestre modali vengono bloccate
 */
.block.block-opt-fullscreen {
     z-index: 1042;
}

.block-hover:hover {
	background-color: #F9F9F9;
	cursor: pointer;
}

.calendar table.month tr td .day-content {
	border-radius: 0px;
}

.holidays {
	background-color: rgba(255, 10, 10, 0.55);
    color: white;
    /*border-radius: 0px !important;*/
}

.disabledDays {
	/*background-color: rgba(100, 100, 100, 0.55);*/
	background-color: rgb(220, 220, 220);
    color: white;
    /*border-radius: 0px !important;*/
}

.orgEvents {
	background-color: rgb(120, 240, 120);
	/*background-color: rgba(10, 255, 10, 0.55);*/
	color: white;
	/*border-radius: 0px !important;*/
}

.weekend {
	background-color: rgba(255, 10, 10, 0.25);
	color: white;
	/*border-radius: 0px !important;*/
}

.current {
	outline: 2px solid #70b9eb;
	outline-radius: 4px;
}
.current2 {
	background-color: rgba(112, 185, 251, 0.25);
}

textarea.note {
	height: 120px;
}

.legend .type_color {
	width: 20px;
	height: 20px;
	border-radius: 4px;
	margin-right: 10px;
	float: left;
}

.legend .legend-item {
	padding: 10px;
}

.notifications-list {
	list-style-type: none;
}

.notifications-list li {
	border-bottom: 1px solid #EEE;
	margin-bottom: 10px;
	padding-bottom: 5px
}

.notifications-list li .actions{
	margin-top: 10px;
}

.notifications-list li a{
	padding: 8px 0px;
}

.font-s14 {
	font-size: 14px;
}

.notification-read {
	opacity: 0.66;
}

.square {
	display: block;
    width: 20px;
    height: 20px;
    float: left;
    border-radius: 4px;
    margin-right: 10px;
}

.js-select2.ng-invalid + span {
	box-shadow: 0 2px 0 rgba(226, 124, 124, 0.49) !important;
}

table.vertical-centered > tbody > tr > td {
	vertical-align: middle;
}

.tree-expand {
	font-weight: normal;
}

.tree-buttons div{
	min-width: 65px;
}

/*classi custom per allineare e rendere a stessa altezza dei block dentro una row*/
.row-eq-height {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display:         flex;
}


.row.row-deck > div {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: stretch;
      align-items: stretch;
}

.row.row-deck > div > .block {
  min-width: 100%;
}

/*attivare questa classe per visualizzare i bordi dei blocchi (debug mode)*/

/*.row > div { min-height:100px; border:1px solid red;}
*/


.gantt li {
        line-height: 0px;
}


/* Su Richiesta marcello abbiamo compattato le viste */
.content p, .content .push, .content .block, .content .items-push > div {
    margin-bottom: 10px;
}

.block-header {
    padding: 8px 20px;
}

.form-group {
    margin-bottom: 5px;
}

.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th {
    font-size: 12px;
}

.page-heading {
    font-size: 20px;
}

.content .items-push > div {
    margin-bottom: 5px;
}

.img-avatar.img-avatar40 {
  width: 40px;
  height: 40px;
}

.text-italic {
	font-style: italic;
}

.text-italic-bold {
  font-style: italic;
  font-weight: bold;
}

.text-danger-lighter {
	color: #ea8a8a;
}

.bg-info-lighter {
	background-color: #ebf1f4;
}

.text-smaller {
	font-size: 10px;
}

.d-lPadding {
	padding: 30px;
}

.d-lItem {
	/*padding: 15%;*/
	background-color: #efefef;
	border-color: #c6c6c6;
	padding-top: 50px;
	padding-bottom: 50px;
}

/*.d-hoverable:hover {
	box-shadow: 0px 0px 8px 7px #e1ede7;
}*/

.d-lItem-selected {
	box-shadow: 0px 0px 12px 5px #98b9e3;
}

.text-black {
	color: black;
}

.switch-label {
  background: #fff;
  border: 1px solid #dfdfdf;
  position: relative;
  display: inline-block;
  box-sizing: content-box;
  overflow: visible;
  width: 52px;
  height: 25px;
  padding: 0px;
  margin: 0px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: rgb(223, 223, 223) 0px 0px 0px 0px inset;
  transition: 0.3s ease-out all;
  -webkit-transition: 0.3s ease-out all;
  top: -1px;
}
/*adding a wide width for larger switch text*/
.switch-label.wide {
  width:80px;
}
.switch-label small {
  background: #fff;
  border-radius: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  width: 25px;
  height: 25px;
  position: absolute;
  top: 0px;
  left: 0px;
  transition: 0.3s ease-out all;
  -webkit-transition: 0.3s ease-out all;
}
.switch-label.checked {
  background: rgb(100, 189, 99);
  border-color: rgb(100, 189, 99);
}
.switch-label.checked small {
  left: 28px;
}
/*wider switch text moves small further to the right*/
.switch-label.wide.checked small {
  left:52px;
}
/*styles for switch-text*/
.switch-label .switch-text {
  font-family:Arial, Helvetica, sans-serif;
  font-size:12px;
}

.switch-label .off {
  display:block;
  position: absolute;
  right: 10%;
  top: 25%;
  z-index: 0;
  color:#A9A9A9;
}

.switch-label .on {
  display:none;
   z-index: 0;
  color:#fff;
  position: absolute;
  top: 25%;
  left: 9%;
}

.switch-label.checked .off {
  display:none;
}

.switch-label.checked .on {
  display:block;

}

.switch-label.disabled {
  opacity: .50;
  cursor: not-allowed;
}
.switch-label.disable {
  opacity: .50;
  cursor: not-allowed;
}
.ui-resizable-se {
    cursor: se-resize;
    width: 12px;
    height: 12px;
    right: 1px;
    bottom: 1px;
}
.ui-resizable-handle {
    position: absolute;
    font-size: 0.1px;
    display: block;
    -ms-touch-action: none;
    touch-action: none;
}

.ng-table-pagination {
    margin-top: 0;
    float: right;
}

.ng-table th.text-right {
    text-align: right !important;
}
.ng-table th.text-left {
    text-align: left !important;
}
.ng-table tr.selected{
    background-color: #5c90d2 !important;
    color: #FFFFFF !important;
}
.ng-table tr.selected a {
    color: #FFFFFF !important;

}
.ng-table tr.row-active{
    background-color: #def6ec !important;
    color: #000000 !important;
}
.ng-table tr.row-active a {
    color: #5c90d2 !important;

}
/*.d-lItem-clicked {
	box-shadow: 0px 0px 8px 4px #ede1e1;
}*/


.noaccapo {
    white-space:nowrap !important;
}

.fa-stack[data-count]:after{
    position:absolute;
    right:10%;
    top:20%;
    content: attr(data-count);
    font-size:40%;
    padding:.2em;
    border-radius:999px;
    line-height:.75em;
    color: white;
    background:rgba(0,0,255,.85);
    text-align:center;
    min-width:2em;
    margin-right: 15px;
    font-weight:bold;
}

/*classe per colorare la barra del titolo della modal; va aggiunto a fianco del modal-header*/
.modal-blu {
    background-color: #18456b;
    color: white;
}
.modal-smallheader {

    height: 30px;
    padding: 20px;

}
.modal-smallheader .modal-title {
    margin-top: -10px;
    font-size: 16px;
}

.modal-smallheader .close {
    margin-top: -20px;
    color: #fff;
    opacity: 60% ;
}
 /*Classi per gestione fullscreen delle popup modal*/

.modal-fullscreen {
    padding: 0 !important;
}

.modal-fullscreen .modal-dialog {
    /*width: 100%;*/
    /*height:100vh;*/
    /*margin: 0;*/
    /*padding: 0;*/

    position: relative;
    width: auto;
    margin: 10px;
}

/*.modal-fullscreen .modal-content {*/
/*    height: auto;*/
/*    height:500px;*/
/*    border: 0 none;*/
/*    border-radius: 0;*/
/* }*/

.iframe-container {
    overflow: hidden;
     padding-top: 135%;
    position: relative;
}
.modal-fullscreen .iframe-container {
    overflow: hidden;
    height:available;
    position: relative;
}

.iframe-container iframe {
    border: 0;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


.nav-header .header-search {
	width: 200px;
}

.bootstrap-datetimepicker-widget {
    z-index:8800 !important;
}

/*stili per  pagine   a pannelli (es configurazione fatture , con_config.html,  )*/


.db-activity {
    padding: 10px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 7px;
    text-align: center;
	height: 160px;
	background-color: #fff;
}

.db-activity-link {
    color: #444;

}

.db-activity-link:hover {
    color: black;
    background-color: #fafafa;
    box-shadow: 4px 4px 15px 1px;

}

.db-activity:hover {
    background-color: #fafafa;
    box-shadow: 4px 4px 15px 1px;
}

.db-activity>.db-activity-icon {
    font-size: 40px;
}

db-activity>.db-activity-title {
    font-size: 14px;
}

db-activity>.db-activity-description {
    font-size: 10px;
}

/*stili per gestione delle timbrature */
.entrata {
    color: green;
}
.uscita {
    color: red;
}


.attenzione1 {
    background-color: rgba(241, 204, 200, 0.30);
    color: white;
 
}


.table-nowrap td  {
    white-space: nowrap;
}
.accapo   {
    white-space: normal !important;
}

.circle-color:before {
  content: ' \25CF';
  font-size: 50px;
  line-height: 25px;
}

/*Stili per gestione campi pratiche */

.testo-pratica {
    background-color:  rgba(102, 175, 233, 0.10) !important;
    /*color: white;*/
 }


.onlyprint {
    display:none !important;
}

@media print {
    @page {
        size: 210mm 297mm;
        margin: 10mm;
    }
    .noprint {
        display:none !important;
    }
    button, .dropzone, footer,ui-datepicker, #ui-datepicker-div , .swal2-container{
        display:none !important;
    }

    .onlyprint {
        display:inherit !important;
    }
}

.bell{
  /*display:block;*/
  width: 20px;
  height: 20px;
  font-size: 20px;
  margin:0px auto 0;
  color: #9e9e9e;
  -webkit-animation: ring 4s .7s ease-in-out infinite;
  -webkit-transform-origin: 50% 4px;
  -moz-animation: ring 4s .7s ease-in-out infinite;
  -moz-transform-origin: 50% 4px;
  animation: ring 4s .7s ease-in-out infinite;
  transform-origin: 50% 4px;
}

@-webkit-keyframes ring {
  0% { -webkit-transform: rotateZ(0); }
  1% { -webkit-transform: rotateZ(30deg); }
  3% { -webkit-transform: rotateZ(-28deg); }
  5% { -webkit-transform: rotateZ(34deg); }
  7% { -webkit-transform: rotateZ(-32deg); }
  9% { -webkit-transform: rotateZ(30deg); }
  11% { -webkit-transform: rotateZ(-28deg); }
  13% { -webkit-transform: rotateZ(26deg); }
  15% { -webkit-transform: rotateZ(-24deg); }
  17% { -webkit-transform: rotateZ(22deg); }
  19% { -webkit-transform: rotateZ(-20deg); }
  21% { -webkit-transform: rotateZ(18deg); }
  23% { -webkit-transform: rotateZ(-16deg); }
  25% { -webkit-transform: rotateZ(14deg); }
  27% { -webkit-transform: rotateZ(-12deg); }
  29% { -webkit-transform: rotateZ(10deg); }
  31% { -webkit-transform: rotateZ(-8deg); }
  33% { -webkit-transform: rotateZ(6deg); }
  35% { -webkit-transform: rotateZ(-4deg); }
  37% { -webkit-transform: rotateZ(2deg); }
  39% { -webkit-transform: rotateZ(-1deg); }
  41% { -webkit-transform: rotateZ(1deg); }

  43% { -webkit-transform: rotateZ(0); }
  100% { -webkit-transform: rotateZ(0); }
}

@-moz-keyframes ring {
  0% { -moz-transform: rotate(0); }
  1% { -moz-transform: rotate(30deg); }
  3% { -moz-transform: rotate(-28deg); }
  5% { -moz-transform: rotate(34deg); }
  7% { -moz-transform: rotate(-32deg); }
  9% { -moz-transform: rotate(30deg); }
  11% { -moz-transform: rotate(-28deg); }
  13% { -moz-transform: rotate(26deg); }
  15% { -moz-transform: rotate(-24deg); }
  17% { -moz-transform: rotate(22deg); }
  19% { -moz-transform: rotate(-20deg); }
  21% { -moz-transform: rotate(18deg); }
  23% { -moz-transform: rotate(-16deg); }
  25% { -moz-transform: rotate(14deg); }
  27% { -moz-transform: rotate(-12deg); }
  29% { -moz-transform: rotate(10deg); }
  31% { -moz-transform: rotate(-8deg); }
  33% { -moz-transform: rotate(6deg); }
  35% { -moz-transform: rotate(-4deg); }
  37% { -moz-transform: rotate(2deg); }
  39% { -moz-transform: rotate(-1deg); }
  41% { -moz-transform: rotate(1deg); }

  43% { -moz-transform: rotate(0); }
  100% { -moz-transform: rotate(0); }
}

@keyframes ring {
  0% { transform: rotate(0); }
  1% { transform: rotate(30deg); }
  3% { transform: rotate(-28deg); }
  5% { transform: rotate(34deg); }
  7% { transform: rotate(-32deg); }
  9% { transform: rotate(30deg); }
  11% { transform: rotate(-28deg); }
  13% { transform: rotate(26deg); }
  15% { transform: rotate(-24deg); }
  17% { transform: rotate(22deg); }
  19% { transform: rotate(-20deg); }
  21% { transform: rotate(18deg); }
  23% { transform: rotate(-16deg); }
  25% { transform: rotate(14deg); }
  27% { transform: rotate(-12deg); }
  29% { transform: rotate(10deg); }
  31% { transform: rotate(-8deg); }
  33% { transform: rotate(6deg); }
  35% { transform: rotate(-4deg); }
  37% { transform: rotate(2deg); }
  39% { transform: rotate(-1deg); }
  41% { transform: rotate(1deg); }

  43% { transform: rotate(0); }
  100% { transform: rotate(0); }
}

/* -- Codice che implementa lo sticky nell'header di una tabella -- */
/* --- -- - INIZIO - -- --- */

.table-sticky-header {
    overflow: visible;
    background-color: white;
    height: 100px;
}

.table-sticky-header thead th {
    position: sticky;
    top: 59px; /* L'altezza è data dalla barra di stato superiore bianca del template OneUI. */
    z-index: 1;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.4);
    background-color: white;
}

/*  Associare la classe "up" alla riga <th> che si vuole far rimanere in evidenza (nel caso si abbiano più righe <th> nell'header) */
.table-sticky-header thead th.up {
    z-index: 2;
    min-height: 200px;
}

/*  Associare la classe "prima-in-alto" alla cella in alto a sinistra per farla rimanere visibile a tutti gli scrolling */
.table-sticky-header thead th.up.prima-in-alto {
    z-index: 3;
}

.sticky-col {
    position: -webkit-sticky;
    position: sticky;
    background-color: white !important;
    z-index: 2;
}

.first-sticky-col {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    z-index: 2;
    left: 230px; /* La larghezza è data dalla barra laterale sinistra del template OneUI. */
}

.toggle-password {
    cursor: pointer;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: block;
}

.adjust-left {
	left: 0px !important;
}

.table-responsive {
	padding-left: 0px;
}

@media (min-width: 768px) and (max-width: 991px) {
    .first-sticky-col {
        left: 0;
        z-index: 2;
    }
}
@media (max-width: 767px) {
    .first-sticky-col {
        left: 0;
        z-index: 2;
    }
}

/* Questa regola serve per non far andare la prima colonna fuori spazio quando nascondo la barra laterale dei menu */
.sidebar-mini .first-sticky-col {
    left: 0;
    z-index: 2;
}
/* --- -- - FINE - -- --- */

/*classi per le ui-sortable*/

.dragitems {
    width: 20%;
    float: left;
    background: #f1f1f1;
}

.dropitems {
    width: 70%;
    float: left;
    background: #f1f1f1;
    margin-left: 20px;
    padding: 5px 5px 5px 5px;
}

.dragitems ul {
    list-style-type: none;
    padding-left: 5px;
    display: block;
}

.compiled {
    color: green;
}

.container {
    margin-top: 20px;
}

th[draggable] a,
th[draggable=true] {
    cursor: move;
}

th[draggable=false] {
    cursor: not-allowed;
}

th[draggable] a:hover,
th[draggable] a {
    display: block;
    text-decoration: none;
    color: #333333;
}

.drag {
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0.25
}

.dnd-drag {
    opacity: 0.25
}

.over {
    background-color: rgba(0, 0, 255, 0.35);
}

.btn.btn-minw {
    min-width: 20px;
}

.disabled-select {
    background-color: #FFFFFF;
    opacity: 0.2;
    border-radius: 3px;
    cursor: not-allowed;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}
/* Styles go here */
.nomargin {
    margin-top: 0px; margin-bottom: 0px;
}
.minimalList {
    min-height: 100px;
}

.post_it_approvazione {
    background-color: #FFFFCC;
    margin: 6px;
    border-left: 6px solid #FFEB3B;
    border-radius: 3px;
    padding: 6px;
}

.shadow-success {
    box-shadow: 0 0 25px 5px #46C37B !important;
}

.shadow-danger {
    box-shadow: 0 0 25px 5px #D26A5C !important;
}

.shadow-warning {
    box-shadow: 0 0 25px 5px #F3B760 !important;
}