/* HTML */
html, body {
	padding: 0px;
	margin: 0px;
	height: 100%;
	width: 100%;
	font-family: Arial, sans-serif !important;
	font-size: small !important;
	color: #4B4A4A !important;
}

input, textarea {
	margin: 0px;
	padding: 4px;
	border: 1px solid #CFD8DC;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	font-family: Arial, sans-serif;
}

input:focus, select:focus, textarea:focus, input[type="checkbox"]:focus {
	outline-offset: -2px;
	outline-width: 5px;
	outline-color: #90A4AE;
	border: 1px solid #90A4AE;
}

select {
	margin: 0px;
	padding: 2px;
	border: 1px solid #CFD8DC;
	background: #FFFFFF;
	cursor: pointer;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
}

select[disabled] {
	opacity: 0.4;
}

button {
	margin: 16px;
	border: none;
	box-shadow: 4px 4px 4px #CFD8DC;
	padding: 8px 16px 8px 16px;
	background: #ECEFF1;
	transition: all 0.3s;
}

button:hover {
	-box-shadow: 0 0 8px 8px #90A4AE, 0 0 8px 8px rgba(0, 0, 0, 0.12), 0 0 8px 8px rgba(0, 0, 0, 0.4);
	box-shadow: 4px 4px 4px #90A4AE;
	color: #90A4AE;
	cursor: pointer;
}

button[disabled] {
	opacity: 0.4;
}

div {
	font-family: Arial, sans-serif;
	-webkit-user-select: text; /* Chrome all / Safari all */
	-moz-user-select: text; /* Firefox all */
	-ms-user-select: text; /* IE 10+ */

	/* No support for these yet, use at own risk */
	-o-user-select: text;
	user-select: text;
}

/* Window */
.window {
    border: 2px solid #CFD8DC;
    border-radius: 4px;
    position: absolute;
    background: #ECEFF1;
    padding: 2px;
    -webkit-box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
	-moz-box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
	box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
}

.window .windowHeader td img {
    display: none;
}

.window .windowHeader {
    background: #90A4AE;
    padding: 16px;
    border-radius: 4px;
    font-size: medium;
    color: white;
    font-weight: bold;
    display: none;
}

.window .windowFooter {
	display: none;
}

.window .windowInactive .windowHeader {
	opacity: 0.6
}

.window .windowBody {
    height: 100%;
    overflow: auto;
}

/* win */
.window.win .windowHeader {
    display: table;
    padding: inherit;
    background: initial;
}

.window.win .windowHeader td .img-close {
    display: block;
    width: 16px;
    height: 16px;
}

.window.win .windowHeader .gwt-Label {
    display: none;
}

/* fab */
.icon-fab {
    position: absolute;
    right: 16px;
    bottom: 16px;
    cursor: pointer;
    box-shadow: 2px 2px 8px 1px rgba(238,238,238, 1);
    border-radius: 50%;
    background: rgba(144,164,174, 0.6);
    padding: 8px;
    z-index: 1;
    visibility: visible;
	opacity: 1;
    transition: all 0.5s;
}

.icon-fab.hide {
	visibility: hidden;
	opacity: 0;
}

.icon-fab:hover {
	box-shadow: 2px 2px 8px 1px #bbb;
}

.icon-fab img {
    width: 20px;
    height: 20px;
}

/* dl- */
.dl-body {
	/* IE10 Consumer Preview */ 
	background-image: -ms-linear-gradient(top, #ECEFF1 50%, #90A4AE 100%);

	/* Mozilla Firefox */ 
	background-image: -moz-linear-gradient(top, #ECEFF1 50%, #90A4AE 100%);

	/* Opera */ 
	background-image: -o-linear-gradient(top, #ECEFF1 50%, #90A4AE 100%);

	/* Webkit (Safari/Chrome 10) */ 
	background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.5, #ECEFF1), color-stop(1, #90A4AE));

	/* Webkit (Chrome 11+) */ 
	background: -webkit-linear-gradient(top, #ECEFF1 50%, #90A4AE 100%);

	/* W3C Markup, IE10 Release Preview */ 
	background-image: linear-gradient(to bottom, #ECEFF1 50%, #90A4AE 100%);
}

.dl-tile {
	box-shadow: 0px 0px 8px 2px #90A4AE;
	border-radius: 16px;
	font-size: medium;
}

.dl-row {
	
}

.dl-modify {
    color: red;
}

.dl-tableheader, .dl-tablebody, .dl-tablefooter {
	padding-right: 14px;
}

.dl-cellheader {
	padding: 8px;
	cursor: pointer;
	border-bottom: 2px solid #90A4AE;
	text-shadow: #CFD8DC 1px 1px 0;
	white-space: nowrap;
	overflow: hidden;
}

.dl-cellheader .cell_filter .caption {
	flex: none !important;
}

.dl-cellheader .cell_filter .img-filter {
	visibility: hidden;
}

.dl-cellheader .cell_filter:hover .img-filter, .dl-cellheader .cell_filter .img-filter.full {
	visibility: inherit;
}

.dl-cellfooter {
	padding: 8px;
	cursor: pointer;
	border-top: 2px solid #90A4AE;
	text-shadow: #CFD8DC 1px 1px 0;
	white-space: nowrap;
	overflow: hidden;
}

.dl-cell {
	padding: 8px !important;
	border: none !important;
}

.dl-center {
	text-align: center;
}

.dl-link {
	text-decoration: underline;
	color: blue;
	cursor: pointer;
}

input.dl-link {
    background: none;
    border: none;
}

.dl-link:hover {
	color: red;
}

.dl-invisible {
	visibility: hidden;
}

.dl-select {
	background: #90A4AE !important;
}

.dl-space {
	white-space: pre-wrap;
}

.dl-menubar {
    background: #CFD8DC;
}

.dl-error {
	background: #FFA6A6;
}

.dl-item {
	cursor: pointer;
	font-weight: bold;
	margin: 4px;
	padding: 4px;
	transition: all 0.3s;
	/*-webkit-box-shadow: 2px 2px 2px 2px rgba(144,164,174, 0.8);
	-moz-box-shadow: 2px 2px 2px 2px rgba(144,164,174, 0.8);
	box-shadow: 2px 2px 2px 2px rgba(144,164,174, 0.8);*/
}

.dl-item:hover {
	background: #90A4AE;
}

.dl-item.push {
    box-shadow: 2px 2px 2px 1px #CFD8DC;
}

.dl-image {
	padding: 2px;
	zoom: 0.5;
	-moz-transform: scale(0.5);
	vertical-align: middle;
}

.dl-disable, span.gwt-CheckBox.gwt-CheckBox-disabled {
	cursor: initial;
	filter: alpha(opacity=50);
	opacity: 0.5;
}

.dl-disable:hover {
	background: initial;
}

.dl-baixa {
	color: red;
}

option.dl-baixa {
    display: none;
}

.dl-buttonBase {
	border: 1px solid #CFD8DC;
	border-radius: 4px;
	padding: 4px;
	display: inline-flex;
	font-weight: bold;
	margin: 2px;
	background: #CFD8DC;
	transition: all 0.3s;
}

.dl-buttonBase img {
	margin: auto;
}

.dl-buttonBase.dl-active {
    background: #90A4AE;
}

.dl-buttonBase img {
	cursor: pointer;
	padding-left: 8px;
}

.dl-buttonBase div {
	opacity: 0.8;
	cursor: pointer;
	position: relative;
	margin: auto;
}

.dl-buttonBase .label-subtitle {
    height: 12px;
    font-size: 11px;
}

.dl-buttonBase.dl-active div {
	opacity: 1;
	font-weight: bold;
}

.com-google-gwt-user-cellview-client-DataGrid-Style-dataGridSelectedRow.dl-select {
    background: #628cd5 !important;
}

/* controlPanel */
.controlPanel {
    height: 100%;
    position: relative;
}

.controlPanel .controlPanelHeader {
	padding: 16px;
}

.controlPanel .controlPanelContent {
    padding: 4px;
    border: 1px solid #CFD8DC;
    border-radius: 4px;
    width: 100%;
    height: 100%;
}

.controlPanel .controlPanelBody {
	height: 100%;
	-padding: 16px; /* Dona problemes amb ms edge a la paginació */
}

/* gwt-DecoratedStackPanel */
.gwt-DecoratedStackPanel .gwt-StackPanelItem {
    padding: 16px;
}

.gwt-DecoratedStackPanel .stackItemMiddleCenterInner {
    padding: 16px;
    border-radius: 4px;
    background: #CFD8DC;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.gwt-DecoratedStackPanel .gwt-StackPanelItem-selected .stackItemMiddleCenterInner {
    background: #90A4AE;
}

.gwt-DecoratedStackPanel .gwt-StackPanelContent {
    padding-left: 16px;
    padding-right: 16px;
}

.gwt-DecoratedStackPanel .my-tree .dl-menutree {
    cursor: pointer;
    transition: all 0.3s;
    white-space: normal;
}

.gwt-DecoratedStackPanel .my-tree .dl-menutree:hover {
    font-weight: bold;
}

.gwt-StackPanelContent .my-tree td:nth-child(2) {
	width: 100%;
}

/* .panelHeader */
.panelHeader {
	background: #ECEFF1;
}

.panelHeader .panelHeaderUser {
	border-bottom-left-radius: 16px;
	background: #CFD8DC;
	width: 400px !important;
	float: right;
	padding: 16px 16px 16px 32px;
}

.panelHeader .panelHeaderSubtitle {
	padding: 16px;
	background: #CFD8DC;
	white-space: nowrap;
}

.panelMenuLeft {
    background: #ECEFF1;
    border: 2px solid #CFD8DC;
	display: flex;
	flex-direction: column;
}

/* Others */
.suggest {
	background-image: url("images/suggest.png");
	background-position: right;
	background-repeat: no-repeat;
	background-size: contain;
}

.suggest-list {
	margin-top: 2px;
	background: white;
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border: 1px solid #CFD8DC;
	/* box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2), 0 0 0 rgba(0, 0, 0, 0.2) inset; */
}

.suggest-list .item {
	border: 1px solid #CFD8DC;
	padding: 2px;
	cursor: pointer;
	border-radius: 4px;
}

.suggest-list .item.active {
	font-weight: bold;
}

.suggest-list .item:hover {
	background: #CFD8DC;
}

.calendar {
	background-image: url("images/date.png");
	background-position: right;
	background-repeat: no-repeat;
	background-size: contain;
}

.clock {
	background-image: url("images/clock.png");
	background-position: right;
	background-repeat: no-repeat;
	background-size: contain;
}

.loading {
	background-color: transparent;
	z-index: 999999;
}

.show-menu {
	transform: translate(0, 0);
	-webkit-transform: translate(0, 0); /** Chrome & Safari **/
	-o-transform: translate(0, 0); /** Opera **/
	-moz-transform: translate(0, 0); /** Firefox **/
	transition: 1s;
	--right: calc(100% - 100px);
}

.hide-menu {
	transform: translate(-300px, 0);
	-webkit-transform: translate(-300px, 0); /** Chrome & Safari **/
	-o-transform: translate(-300px, 0); /** Opera **/
	-moz-transform: translate(-300px, 0); /** Firefox **/
	transition: 1s;
	--right: calc(100% - 100px);
	overflow: hidden;
}

/* my-dialog */
.my-dialog > div:first-child {
    background: white;
    margin: 16px;
    padding: 2px;
    border: 2px solid #CFD8DC;
	border-radius: 4px;
	min-width: 300px;
	-webkit-box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
	-moz-box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
	box-shadow: 0px 0px 8px 4px rgba(207,216,220, 0.8);
	clip: auto !important;
}

.my-dialog .Caption {
    padding: 16px;
    font-size: large;
}

.my-dialog .my-content {
    overflow: auto;
    white-space: pre-line;
    padding: 16px;
    height: 100%;
}

.my-dialog .my-buttons {
    text-align: center;
}

.my-dialog .my-accept {
    background: #81C784;
    box-shadow: 4px 4px 4px #C8E6C9;
    color: black;
    width: 100px;
}

.my-dialog .my-accept:hover {
    background: green;
    box-shadow: 4px 4px 4px #81C784;
    color: white;
}

.my-dialog .my-cancel {
    background: #E57373;
    box-shadow: 4px 4px 4px #FFCDD2;
    color: black;
    width: 100px;
}

.my-dialog .my-cancel:hover {
    background: red;
    box-shadow: 4px 4px 4px #E57373;
    color: white;
}

.my-dialog .my-caption {
    padding: 16px;
}

.my-dialog .my-caption img {
    float: left;
    width: 24px;
    height: auto;
}

.my-dialog .my-caption div {
    vertical-align: middle;
    text-align: center;
}

.my-dialog .my-close {
	padding: 16px;
}

.my-dialog .my-close img {
	cursor: pointer;
	height: 24px;
}

.my-glass {
	background: #CFD8DC;
	opacity: 0.4;
}

.my-dialog.maximize {
	width: 100%;
	height: 100%;
}

.my-dialog.maximize .my-dialogContainer {
	-height: 100%;
}

.my-dialog.maximize .my-dialogTable {
	-height: 100%;
}

.my-dialog .dialogTopCenterInner {
	text-align: center;
	font-size: medium;
	font-weight: bold;
	cursor: move;
}

.my-dialog .dialogMiddle {
	height: 100%;
}

.my-dialog .my-panel {
	position: relative;
}

.my-dialog .my-panel .panel-loading {
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 8px;
    background: #EEEEEE50;
}

.gwt-PopupPanelGlass {
	opacity: 0.4;
	background: #CFD8DC;
}

/* Tab */
.gwt-TabBar {
	background: #ECEFF1;
    font-weight: bold;
}

.gwt-TabBarFirst {
	display: none;
}

.gwt-TabBarItem {
    padding: 4px;
    cursor: pointer;
    border-top-left-radius: 8px;
    border-top: 2px solid #CFD8DC;
    border-right: 2px solid #CFD8DC;
    border-left: 2px solid #CFD8DC;
    width: 120px;
    margin-right: 2px;
    transition: all 0.3s;
}

.gwt-TabBarItem:hover {
    background: #CFD8DC; 
}

.gwt-TabBarItem-selected, .gwt-TabBarItem-selected:hover {
	background: #90A4AE;
}

/* Pager */
.pager {
	width: 100%;
	display: flex;
	position: relative;
}

.pager .bar {
	background: #ECEFF1;
	border-radius: 8px;
	height: 24px;
	flex: 1;
}

.pager .pointer {
	height: 100%;
	position: absolute;
	background: #CFD8DC;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
}

.pager .pointer:hover {
	background: #90A4AE;
}

.pager .text {
	font-weight;
	bold;
	font-size: small;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

.pager img {
	background-position: center;
	cursor: pointer;
}

.pager .glass {
	position: absolute;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	background: white;
	opacity: 0.5;
}

/* ProgressBar */
.gwt-ProgressBar-shell {
    background: #CFD8DC;
    height: 24px;
    border-radius: 4px;
}

.gwt-ProgressBar-bar {
    background: #90A4AE;
}

.gwt-ProgressBar-text.gwt-ProgressBar-text-firstHalf {
    text-align: center;
    width: 100%;
    height: 100%;
}

/* sii */
.sii .dl-select {
	background: inherit !important;
	font-weight: bold;
}

.sii .GN300ARCOH.dl-select {
    background: #628cd5 !important;
    color: white !important;
}

.sii .com-google-gwt-user-cellview-client-DataGrid-Style-dataGridSelectedRow.dl-select {
    background: #628cd5 !important;
}

.sii .no-flgconta {
    color: red !important;
}

.sii .list-pagination {
    float: right;
    margin: 6px;
}

.sii .list-pagination label {
    padding-right: 6px;
}

.sii .list-pagination label:after {
    content: ":";
}

/* calendar */
.calendar-year .annual-cal-month {
	border: 1px solid #EEE;
	border-radius: 4px;
	padding: 8px;
}

.annual-cal-day.annual-cal-day-svg.select rect {
    stroke: yellow;
    stroke-width: 4px;
}

/* slider */
.slider {
    border: 1px solid #CCC;
    border-radius: 8px;
    padding: 4px;
    margin: 2px;
    flex: 1;
}

.slider .body {
	transition-property: all;
	transition-duration: 0.5s;
	transition-timing-function: cubic-bezier(0, 1, 0.5, 1);
	max-height: 300px;
	overflow: hidden;
	padding-top: 16px;
}

.slider .body.close {
	max-height: 0px;
	padding-top: initial;
}

/* panel-settings */
.panel-settings {
    max-height: 500px;
    max-width: 600px;
    overflow: auto;
}

.panel-settings .panel-settings-childs {
    margin: 8px
}

.panel-settings .panel-settings-childs div:first-child {
    font-size: x-small;
    font-weight: bold;
}

.panel-settings .gwt-Label {
	padding: 0px;
}

/* panel-mail */
.panel-mail {
    -max-width: 600px;
    max-height: 600px;
}

.panel-mail .label-subject {
    font-size: x-small;
}

.panel-mail .subject {
    
}

.panel-mail .label-body {
    font-size: x-small;
    margin-top: 16px;
}

.panel-mail .body {
    
}

/* panel-list */
.panel-list {
    
}

.panel-list .label-caption {
    border-bottom: 1px solid #0E3F24;
    text-align: left;
    color: #0E3F24;
    font-size: medium;
    font-weight: bold;
    display: none;
}

.panel-list .input-search {
    margin-bottom: 8px;
}

.panel-list .panel-body {
    max-height: 200px;
    overflow: auto;
}

.panel-list .panel-body .panel-item {
	padding: 8px;
    background: #eee;
    margin-bottom: 2px;
    border-radius: 4px;
    cursor: pointer;
}

.panel-list .panel-body .panel-item:hover {
    color: black;
}

.panel-list .panel-body .panel-item .label-title {
    
}

.panel-list .panel-body .panel-item .label-description {
    font-size: smaller;
}

/* panel-msg */
.panel-msg {
	padding: 8px;
	display: flex;
	flex: 1;
	border: 1px solid #CFD8DC;
	border-radius: 4px;
	margin-left: 4px;
	margin-right: 4px;
	flex-direction: column;
	margin: 4px;
}

.panel-date .label-date, .panel-msg .label-from, .panel-msg .label-to, .panel-msg .label-subject, .panel-msg .label-message {
	font-size: x-small;
    margin-top: 8px;
	line-height: 20px;
	border-bottom: 1px solid #eee;
}

.panel-msg .message {
	white-space: pre;
}

/* panel-error */
.panel-error {
    max-height: 200px;
    overflow: auto;
}

.panel-error .label-error:not(:last-child) {
    padding-bottom: 4px;
}

/* panel-error */
.panel-error {
    max-height: 200px;
    overflow: auto;
}

.panel-error .label-error:not(:last-child) {
    padding-bottom: 4px;
}

/* mozilla */
@-moz-document url-prefix() {
	.dl-item {
		margin: 0;
		padding: 0;
	}

	.controlPanel .controlPanelBody {
		padding: initial;
	}

	.dl-image {
		padding: initial;
	}

	.dl-buttonBase {
		padding: 0 0 0 4px;
		margin: 0;
	}

	.dl-buttonBase img {
		padding-left: 4px;
	}
}

/* image-annotation */
.image-annotation {
    display: -webkit-box;	/* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;		/* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;	/* TWEENER - IE 10 */
	display: -webkit-flex;	/* NEW - Chrome */
	display: flex;
    float: right;
}

.image-annotation-icon:hover {
	background: #90A4AE;
}

.image-annotation .label-text {
    margin: auto auto 4px auto;
    padding: 2px;
    border-radius: 2px;
}

.image-annotation .image-annotation-icon {
	position: relative;
	text-align: center;
	vertical-align: middle;
	padding: 4px;
	cursor: pointer;
	margin: 4px;
}

.image-annotation .image-annotation-icon .label {
	position: absolute;
	bottom: 0;
	right: -8px;
	background: white;
	width: 16px;
	height: 16px;
	border-radius: 16px;
	color: black;
}

@keyframes blink {  
	0% { background: red; color: white; }
	100% { background: transparent; color: inherit; }
}

@-webkit-keyframes blink {
	0% { background: red; color: white; }
	100% { background: transparent; color: inherit; }
}

.image-annotation .image-annotation-icon .label {
	-webkit-animation: blink 1s linear infinite;
	-moz-animation: blink 1s linear infinite;
	animation: blink 1s linear infinite;
}
