/* Copyright (C) 2010-2017 Pedro Miguel Carvalho <PedroMC@pmc.com.pt> */

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #72f6df;
    overflow: hidden;
    font-size: 90%;
    color: black;
}

.mceEditor {
    width: 100%;
}

.mceEditor iframe {
    min-height: 100px;
}

.clearlooks2 > .mceAlert > .mceMiddle > span,
.clearlooks2 > .mceConfirm > .mceMiddle > span {
    top: 35px !important;
}

.jnotify-container {
    width: 800px;
    z-index: 9999;
    height: auto;
    max-height: 100%;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

.jnotify-container .jnotify-notification .jnotify-message {
    padding: 10px;
    font-size: 110%;
}

.jnotify-background {
    border: 1px solid rgba(0,0,0,0.5);
}

.AeroWindow .title {
    font-size: 110%;
}

.AeroWindow .table-mm-container {
    position: relative;
    overflow: hidden;
}

.paging_full_numbers {
    width: auto !important;
}

.dataTables_info,
.dataTables_length {
    width: auto;
    margin-right: 10px;
}

.dataTables_filter{
    width: auto;
}

.dataTables_filter input {
    width: 200px !important;
}

.ui-tabs .ui-tabs-panel {
    padding: 5px 0px 0px 0px;
}

button {
    cursor: pointer;
}

/* Wallpaper */

#wallpaper {
    top: 0;
    left: 0;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* logotipo */

#logotipo {
    top: 20px;
    left: 20px;
    position: fixed;
}

/* No javascript message */

noscript {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

noscript div {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 220px;
    margin-left: -160px;
    margin-top: -110px;
    text-align: center;
    color: white;
    font-weight: bolder;
    background-color: rgba(255,0,0,0.5);
    border-color: rgba(255,0,0,0.3);
    border-style: inset;
    border-width: 5px;
    border-radius: 20px;
}

/* Panel */

#panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding-top: 10px;
    padding-bottom: 0px;
    background: rgb(150,150,200) left top repeat url( ../images/toolbar-background.png );
    z-index: 1000000;
}

#panel:hover {
    height: auto;
}

#panel .toolbar_primary {
    float: left;
}

#panel .toolbar_secundary {
    float: right;
}

.icon {
	display: inline-block;
    margin-right: 5px;
    opacity: 0.5;
	vertical-align: middle;
	cursor: pointer;
}

.icon:hover {
    opacity: 1.0;
}

.control {
    width: 24px;
    height: 24px;
}

/* Window's content */

.content {
    margin: 5px;
}

.content p {
    text-align: justify;
}

.content label,
.content input,
.content textarea,
.content select {
    width: 100%;
    margin: 5px 0px 5px 0px;
}

.content .checkbox {
    width: auto;
}

.content label {
    display: block;
}

.content button {
	/*TODO*/
    /*min-width: 200px;*/
    /*margin: 10px 5px 5px 5px;*/
}

.content input,
.content textarea,
.content select {
    border: 2px solid #ddd;
	color: black;
    background-color: #eee;
}

.content input:focus,
.content textarea:focus {
    border-color: black;
}

.content input.error {
    border-color: red;
    background-color: #fee;
}

.content label.error {
    color: red;
}

/* Center buttons - needed for Chrome/Chromium */

.button_wrapper {
    text-align: center;
}

/* Users blocked/permited icons in users table */

.access_blocked,
.access_permited {
    position: relative;
    padding-left: 26px;
    min-height: 24px;
}

.access_blocked {
    background: left center no-repeat transparent scroll url( ../images/icon_blocked.png );
    color: red;
}

.access_permited {
    background: left center no-repeat transparent scroll url( ../images/icon_permited.png );
    color: green;
}

/* Data Tables */

.table_extras {
    float: left;
    font-weight: bolder;
    font-size: 120%;
    margin: auto;
}

.dataTables_wrapper {
    min-height: 0px;
}

.table_title {
    padding: 5px;
    margin-right: 5px;
}

.table_extras > img {
    vertical-align: text-top;
}

/* Anomaly Resolution Window */

.toolbar {
    padding: 5px;
    margin-bottom: 5px;
}

.toolbar > .icon {
    margin-right: 5px;
}

.anomaly_bad_state {
    color: red;
    font-weight: bold;
}

.anomaly_good_state {
}

.posts {
    margin: 0px;
    padding: 5px;
}

.anomaly_post {
    background-repeat: repeat;
}

.anomaly_post:hover {
    background-color: #E2E4FF;
}

.post_summary {
    margin: 0px;
    padding: 5px;
}

.post_content {
    margin: 5px;
}

.post_author {
    margin: 5px 0px 5px 0px;
    padding: 3px;
}

.post_subposts {
    margin-left: 30px;
    margin-top: 5px;
}

.post_timely_limit {
    padding: 3px;
    margin: 5px 0px 5px 0px;
    font-size: 140%;
}

span.post_need_answer_timely,
.post_need_answer_timely > .post_summary,
.post_need_answer_timely > .post_timely_limit {
    color: black;
}

span.post_need_answer_soon,
.post_need_answer_soon > .post_summary,
.post_need_answer_soon > .post_timely_limit {
    color: orange;
    font-weight: bold;
}

span.post_need_answer_late,
.post_need_answer_late > .post_summary,
.post_need_answer_late > .post_timely_limit {
    color: red;
    font-weight: bolder;
}

.post_controls {
    text-align: center;
    margin-bottom: 5px;
}

.post_title {
    text-decoration: underline;
}

.post_value {
    color: lime;
    padding: 3px;
    margin: 5px 0px 5px 0px;
    font-size: 120%;
}

/* Equipment Manager */

.equipments_tab {
    padding-left: 32px !important;
    background: no-repeat top left scroll;
}

.equipments_tab {
    background-image: url(../images/icon_equipments_tab.png);
}

.equipment_important {
    color: green;
}

.equipment_normal {

}

.equipment_active {

}

.equipment_inactive {
    color: red;
}

.equipment_selected.odd {
    background-color: #aea !important;
}

.equipment_selected.even {
    background-color: #9d9 !important;
}

.equipment_selected.odd .sorting_1 {
    background-color: #7b7 !important;
}

.equipment_selected.even .sorting_1 {
    background-color: #6a6 !important;
}

.equipment_selected:hover,
.equipment_selected:hover .sorting_1 {
    background-color: #ecff83 !important;
}

.unselect {
    display: none !important;
}

.select {
    display: inline-block !important;
}

.equipment_selected .unselect {
    display: inline-block !important;
}

.equipment_selected .select {
    display: none !important;
}

/* Data Store  */

.data_store_edit {
    float: right;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 10px;
    margin-bottom: 10px;
}

.data_store_wrapper_focus {
    background-color: #eee;
}

/* Users & Groups Manager */

.sessions_tab,
.users_tab,
.groups_tab {
    padding-left: 32px !important;
    background: no-repeat top left scroll;
}

.users_tab {
    background-image: url(../images/icon_users_tab.png);
}

.groups_tab {
    background-image: url(../images/icon_groups_tab.png)
}

.sessions_tab {
    background-image: url(../images/icon_sessions_tab.png)
}

select {
    max-height: 10em;
}

/* Login window */

#login_window p {
    text-align: center;
}

#login_window label {
    text-align: right;
}

#login_window input {
    width: 260px;
}

/* External sites */

.external {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    top: 0;
    right: 0;
    border: 0px none;
}

/* Permissions */

.permission_name {
    color: graytext;
    margin-left: 100px;
    margin-bottom: 5px;
}

.permission_description {
}

/* Anomaly Report Window */

.report_content > div {
    margin: 10px 0px 10px 0px;
}

.report_content hr {
    margin: 2px 0px 2px 0px;
    background-color: black;
    height: 4px;
}

/* Equipment hierarchy. */

.equipment-hierarchy {
	display: block;
}
.equipment-hierarchy .equipment-hierarchy {
	padding-left: 10px;
}

.icon_mini_equipment {
	vertical-align: middle;
}

/* Files Manager */

.files_tab {
    padding-left: 32px !important;
    background: no-repeat top left scroll;
    background-image: url(../images/icon_files_tab.png);
}

#files_tab_content .file-thumbnail {
	max-width: 100px;
	max-height: 100px;
}

.plupload_wrapper label.plupload_button {
	width: 2.2em;
	display: inline-block;
}

.plupload_container {
	min-height: 335px;
}

#files_manager_window .overlay {
	z-index: 1;
}

/* Budgets report. */

.budget_pending {
	color: orange;
}

.budget_approved {
	color: green;
}

.budget_rejected {
	color: red;
}

.order_with_invoice {
	color: green;
}

.order_without_invoice {
	color: red;
}

/* Export Manager */

#export_manager_window a.download {
    text-decoration: none; 
	font: menu;
    display: inline-block; 
	padding: 2px 8px;
    background: ButtonFace; 
	color: ButtonText;
    border-style: outset;
	border-width: 2px;
	border-radius: 8px;
    border-color: ButtonHighlight ButtonShadow ButtonShadow ButtonHighlight;
}

#export_manager_window a.download:active {
    border-style: solid;
    border-color: ButtonShadow ButtonHighlight ButtonHighlight ButtonShadow;
}

#export_manager_window a.download:focus {
    border-color: ButtonHighlight ButtonHighlight ButtonHighlight ButtonHighlight;
}

/* Export notice */

#export-notice {
	position: absolute;
	color: white;
	background-color: rgba(1.0,1.0,1.0,0.7);
	padding: 10px;
	margin: 5px;
	border-radius: 10px;
	font-size: 120%;
	font-weight: bold;
	text-shadow: 0px 0px 15px black;
}

#export-notice a {
	color: lightcyan;
	text-decoration: none;
}

#export-notice a:hover,
#export-notice a:focus {
	text-decoration: underline;
}
