/* ------------------------------------------------------------------------------
 *
 *  # Components add-on
 *  Rewrite base rules (components.css)
 *
 * ---------------------------------------------------------------------------- */
 

 /* COLORS PALETTE
----------------------------------
 * Additional colorset palette - set colori non compresi in color.css
 * (Ref.: https://material.io/guidelines/style/color.htm)
 * ---------------------------------------------------------------------------- */
.bg-slate-100 {background-color: #CFD8DC; border-color: #CFD8DC;}
.bg-slate-200 {background-color: #B0BEC5; border-color: #B0BEC5;}
.bg-teal-100 {background-color: #B2DFDB; border-color: #B2DFDB;}
.bg-teal-200 {background-color: #80CBC4; border-color: #80CBC4;}
/* ---------------------------------------------------------------------------- */


/* PACE LOADER
----------------------------------*/
.pace .pace-progress {
	background: #fff;
	height: 2px;
}


/* NAVBAR
----------------------------------*/
.navbar {
	/* under modal and over block-ui panel */
	z-index: 1020; 
}
.navbar-brand {
	font-size: 16px;
	padding: 14px 0 0 18px;
}
.navbar-brand > img {
    display: inline;
	height: 22px;
	margin: 0 10px 0 0;
}


/* LOGIN PAGE
----------------------------------*/
.login-container .page-container {
	padding-top: 6%;
}
.login-container .page-container .login-form {
	width: 350px;
	margin-bottom: 5px;
}
.login-container .page-container .login-form .form-group {
    margin: 10px 0 0 0;
}
.page-title {
	padding: 25px 36px 25px 0;
}


/* SIDEBAR
----------------------------------*/
/* ToDo  - Effetto chiusura/apertura menu laterale
.sidebar {
	-webkit-transition: -webkit-transform .2s ease-in-out,width .2s ease-in-out;
	-moz-transition: -moz-transform .2s ease-in-out,width .2s ease-in-out;
	-o-transition: -o-transform .2s ease-in-out,width .2s ease-in-out;
	transition: transform .2s ease-in-out,width .2s ease-in-out;
} */
.sidebar-user-brand > img {
	max-height: 50px;
}
.sidebar-user {
	padding: 6px; 
}
.sidebar-xs .sidebar-user {
	display: none;
}
.sidebar-user-brand {
	margin: 0px; 
	padding: 8px 4px; 
	border-radius: 3px;
	background-color: #fff; 
	text-align: center;	
}
.sidebar-category {
	/* Necessario per mantenere il colore di sfondo del menù 
		anche in caso di utilizzo di un'immagine di sfondo */
	background-color: #263238;
	opacity: 0.9;
	filter: alpha(opacity=90);
}


/* SIDEBAR SECONDARY (DETACHED)
----------------------------------*/
.sidebar-detached.affix {top: 70px;}


/* MAIN MENU'
----------------------------------*/
.navigation li a:hover,
.navigation li a:focus {
	background-color: rgba(0, 0, 0, 0.2);
}
.navigation > li.active > a,
.navigation > li.active > a:hover,
.navigation > li.active > a:focus {
	/*background-color: rgba(0, 0, 0, 0.5);*/
	background-color: rgba(255, 255, 255, 0.2);
}
.navigation li > .has-ul {
	text-transform: uppercase;
}


/* PAGE HEADER
----------------------------------*/
.panel-heading {
	padding: 12px 20px;
}
.panel-heading-xs {
	padding: 3px 8px;
}
.panel-heading-xs h6.panel-title, 
.panel-heading-xs .h6.panel-title {
	font-size: 12px;
	font-weight: bold;
}
.heading-btn-group .btn-float > span {
	padding-top: 8px;
}
.heading-btn-group .btn-float.btn-link {
    padding: 14px 10px;
	/*max-width: 110px;*/
}
.heading-btn-group .text-size-small {
	font-size: 11px;
}
/* TEST
.heading-btn-group .icon-object {
	margin: 0px;
	border-width: 1px;
	padding: 5px;
	width: 32px;
	height: 32px;
}
.heading-btn-group .icon-object > i {
	font-size: 16px;
}
.heading-btn-group .btn-float > i {
	font-size: 20px;
}
*/


/* FORM CONTROL
----------------------------------*/
.form-sm .form-group {
	margin-bottom: 8px;
}
.form-control,
.bootstrap-select .btn-default,
.select2-selection--single:not([class*=bg-]):not([class*=border-]) {
	border-bottom-color: #949494;
	font-size: 16px;
}
.has-error .select2-selection--single:not([class*=bg-]):not([class*=border-]){
    border-bottom-color: #D84315;
}
.has-error .select2-container--focus .select2-selection--single:not([class*="bg-"]):not([class*="border-"]), 
.has-error .select2-container--open .select2-selection--single:not([class*="bg-"]):not([class*="border-"]) {
	box-shadow: 0 1px 0 #D84315;
}
.form-control::-moz-placeholder ,
.select2-selection--single .select2-selection__placeholder {
    color: #aaa;
}
.form-control:-ms-input-placeholder {
  color: #aaa;
}
.form-control::-webkit-input-placeholder {
  color: #aaa;
}
.control-label {
	color: #1565C0; /* primary-800 */
	margin-bottom: 0;
}
textarea {
	/* enable only vertical resize */
	resize: vertical;
}

/* ALERT
----------------------------------*/
.alert-danger {
    background-color: #FBE9E7; /* alpha-danger */
	border-color: #D32F2F;  /* danger-700 */
}
.alert-info {
    background-color: #E3F2FD; /* alpha-primary */
    border-color: #1E88E5; /* primary-600 */
}

/* alert danger with triangle as warning */
.alert[class*=alert-styled-].alert-styled-danger:after {
    content: "\e9bd";
}

/* FOOTER
----------------------------------*/
.content {
    padding-bottom: 100px;
}
.footer {
	bottom: 20px;
	color: #888;
}
.footer img {
    opacity: 0.8;
    filter: alpha(opacity=80); /* For IE8 and earlier */
}
.footer-boxed {
	margin-top: 50px;
	border-top-width: 1pt;
	border-top-style: dotted;
	padding-top: 10px;
	padding-left: 5px;
	padding-right: 5px;
	color: #666;
	font-size: 12px;
}


/* MODALS
----------------------------------*/
.modal-header,
.modal-header[class*="bg-"] {
	padding: 12px 20px;
}
.modal-body {
	min-height: 200px !important;
}
.modal-footer {
	padding: 10px;
}


/* TABLE
----------------------------------*/
.table > thead > tr > th, 
.table > tbody > tr > th, 
.table > tfoot > tr > th, 
.table > thead > tr > td, 
.table > tbody > tr > td, 
.table > tfoot > tr > td {
	/* white-space: nowrap; */
    padding: 12px 5px;  /*originale bootstrap: 12px 20px;*/
	/* sperimentale
	max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
	*/
}

.table-xxs > thead > tr > th,
.table-xxs > tbody > tr > th,
.table-xxs > tfoot > tr > th {
	padding: 3px 5px;
}

.table-xxs > thead > tr > td,
.table-xxs > tbody > tr > td,
.table-xxs > tfoot > tr > td {
	padding: 5px;
}

/* Dropdown menù inside table row */
table .dropdown-menu {padding: 3px 0;}
table .dropdown-menu > li > a {padding: 4px 8px;}
table .dropdown-menu > li > a > i {margin: 3px 3px 0 0;}
			

/* Per riga dettagli a scomparsa */
td.details-control {
	cursor: pointer;
	text-align: center;
	width: 20px;
}
tr td div.row-details-panel {
	border: 1px solid #ccc; 
	border-radius: 3px; 
	padding: 2px; 
	min-height: 90px;
	text-align: left;
	margin: 1px 0;
}

/* VARIE
----------------------------------*/
.pre-scrollable {
	/* rewrite bootstrap rule */
	height: 340px;
	max-height: 340px;
    overflow-y: auto;
}

.label-rounded > i {
	margin: 3pt
}

.label-sdi {
	padding: 1px 1px 0px 1px;
	font-weight: bold;
	width: 16pt
}

.panel-reloadable {
	min-height: 100px;
	width: 100%;
	padding: 2px;
}

/* alternative .dropzone style (uploader) */
.drop-zone {
    border: 2px dashed #ccc;
    border-radius: 5px;
    background-color: #f4f4f4;
    padding: 5px 20px;
}

/* rewrite bootstrap.css rule */
.has-error .help-block {
	color: #999;
}

/* rewrite core.css rule */
.badge {
    padding-top: 0px;
}
.badge-danger {
    background-color: #F44336 !important;
    border-color: #F44336 !important;
	color: #fff !important;
}

/* using fa icon as button */
i.fa-btn {
	font-size: 22px;
	cursor: pointer; 
	margin: 2px;
}

/* datepicker component */
.ui-datepicker {
	z-index: 10000 !important;
	padding: 10px;
}
.ui-datepicker .ui-datepicker-title {
	padding-top: 10px;
	padding-bottom: 12px;
}
.ui-datepicker .ui-datepicker-title .ui-datepicker-year {
	font-size: 17px;
	color: #000;
}
.ui-datepicker-calendar tbody tr td:first-child a:not([class*=ui-state-active]):not([class*=ui-state-highlight]),
.ui-datepicker-calendar thead tr th:first-child {
	color: red !important
}
.ui-datepicker-calendar thead tr th {
	text-transform: uppercase;
}
.ui-datepicker table td a.ui-priority-secondary {
	opacity: 0.4;
}
.ui-datepicker table th {
	padding-top: 0px;
	padding-bottom: 5px;
}


/* form-search panel */
.panel-search {
	min-height: 250px
}

/* data-list */
dt {
	margin-top: 14px;
	margin-bottom: 0px;
	font-weight: normal;
	color: #1565C0;
}

dd {
	font-weight: bold;
	font-size: 16px;
}

/* item row selection */
tr.item:hover {
	background-color: #f4f4f4;
}
tr.itemSelected,
tr.itemSelected:hover {
	background-color: #E3F2FD !important;
}

/* nav-tab */
.nav-tabs:before {
	content: '';
	margin-top: 0px;
	margin-left: 0px;
	margin-bottom: 0px;
}

/* pagination */
.pagination-sm > li > a, 
.pagination-sm > li > span {
	min-width: 35px;
}