/*
 * Basic
 */
html {
	padding: 0;
}

html,
body {
	overflow: hidden;
	margin: 0;
	height: 100%
}

body {
	display: flex;
	flex-direction: column;
}

iframe {
	border: none;
}

#vncContainer {
	height: 32px;
	border-bottom: 1px solid #dddddd;
}

#contents {
	flex: 1;
	padding: 10px;
}

/*
 * Tables
 */
table.display td {
	white-space: nowrap;
}

table.display tr:hover td {
	background-color: #dddddd;
}

table.display tr.selected td {
	font-weight: bold;
	background-color: #dddddd !important;
}

table.display thead th {
	white-space: no-wrap;
}

table.display {}

.dataTables_processing {
	padding-top: 20px;
	border: 2px solid #666666;
	background-color: #dddddd;
	color: #666666;
	/* background-image: url(../images/loopback.png);
	background-repeat: no-repeat;
	background-position: 8px 16px;*/
	padding-left: 48px;
	padding-right: 8px;
	width: auto;
}

deviceTable {
	/* nasce nascosta per motivi estetici, viene visualizzata alla fine */
	visibility: hidden;
}

.dataTables_filter input {
	width: 300px;
}

.dataTables_wrapper .dataTables_filter {
	float: left;
	text-align: left;
	width: calc(100% - 12px);
}

.dataTables_scrollBody {
	border-left: 1px solid #cccccc;
	position: relative;
	background-image: url(../images/table_scrollBody_border.png);
	background-repeat: repeat-y;
	background-position: 100% 0px;
}

div.dt-buttons {
	/*! position: relative; */
	float: right;
}

.ColVis_MasterButton {
	float: right;
	width: 20px;
	border: 0px !important;
	background: url('../images/table-columns.png') no-repeat top left !important;
	margin-top: 9px;
}

div.ColVis_collection {
	position: absolute !important;
	top: 44px !important;
	left: inherit !important;
	right: 24px !important;
	width: 150px !important;
}

.dataTables_processing {
	top: 50px;
	font-weight: bold;
	z-index: 1;
	vertical-align: middle;
}

/*
 * Dialogo per la selezione del gruppo
 */
#currentGroupBar {
	border-bottom: 1px solid #dddddd;
	padding-bottom: 2px;
}

#currentGroupName {
	font-weight: bold;
}

#groupTree {
	margin-top: 8px;
	height: 360px;
}

.jstree-current {
	background: #beebff !important;
}

/*
 * Selezione
 */
/*
.rowSelected td {
	font-weight: bold;
	background-color: #cccccc !important;
}
*/

/*
 * Impostazioni di pagina
 */
* {
	font-family: arial, sans-serif;
	font-size: 12px;
}

#logoRoom {
	width: 100px;
}

#navigation {
	padding-top: 10px;
	background-repeat: no-repeat;
	background-position: right top;
	background-image: url(../images/logotm.png);

	/* nasce nascosto per motivi estetici, viene visualizzata alla fine */
	visibility: hidden;
}

#tabHome {
	float: left;
}

#tabSelection {
	float: left;
}

#searchImage {
	position: relative;
	top: +4px;
}

.thDeviceIcon {
	width: 24px;
}

.toolbarButtons {
	cursor: pointer;
	position: relative;
	top: +4px;
	margin-left: 6px;
}

#tablePreferenceSets {
	margin-left: 4px;
}

#groupBtnLabel {
	cursor: pointer;
	font-weight: bold;
	margin-left: 4px;
}

#groupBtnLabel:hover {
	text-decoration: underline;
}

.toolbarSeparator {
	border-right: 1px solid #cccccc;
	border-left: 1px solid #aaaaaa;
	margin-left: 6px;
}

#groupDialog {
	display: none;
}


/*
 * Menu home
 */
#tabPanelHome {
	padding: 8px;
	background-image: none;
}

#userInfoPanel {
	width: 100%;
	background-color: #dddddd;
	background-image: none;
	border: 1px solid #dddddd;
	margin-top: 0px;
	margin-bottom: 20px;
	cursor: default;
	height: 40px;
}

#infoLoggedUserName {
	font-weight: bold;
}

#userInfoIcon {
	padding-top: 4px;
	float: left;
	padding-left: 4px;
}

#userInfoInfo {
	float: left;
	padding-top: 4px;
	padding-left: 4px;
}

#userInfoLogout {
	float: right;
	padding-top: 4px;
	padding-right: 4px;
	cursor: pointer;
}

.linkIcon {
	width: 100%;
	margin-top: 4px;
	margin-bottom: 4px;
	background-color: #ffffff;
	border: 1px solid #ffffff;
	cursor: pointer;
}

.linkIcon:hover {
	background-color: #eeeeee;
	border: 1px solid #eeeeee;
}

.linkIcon img {
	border: 0px;
}

.linkTitle {
	font-weight: bold;
}

.linkDescription {
	font-style: italic;
	font-size: smaller;
}

/*
 * Loading
 */
#loadingIcon {}

/*
 * Form
 */
label.error {
	color: red;
	margin-left: 10px;
}

input.error {}

/*
 * Remote control sessions page
 */
#remoteControlSessionTable {
	border: 1px solid #eeeeee;
}

#remoteControlSessionTable th {
	background-color: #eeeeee;
	font-weight: bold;
}

/*
 * Vnc
 */
#vncContainerLogo {
	padding-top: 4px;
	float: left;
	margin-right: 4px;
}

#vncCloseAllBtn {
	float: left;
}

#vncCloseAllBtn .ui-button-text {
	font-size: 10px !important;
}

#vncContainerLogoutBtn .ui-button-text {
	font-size: 10px !important;
}

#vncContainerLogoutBtn {
	float: right;
}

#vncContainerLogoutBtn img {
	padding-top: 4px;
	border: 0px;
}


/*
 * Settings dialog
 */
.settingsDialog {
	display: none;
}

/*
#settingsBtn {
	float: right;
	margin-top: 8px;
	margin-right: 4px;
}

#settingsBtn .ui-button-text {
	font-size: 10px !important;	
}
*/

.homeToolbarButtons {
	cursor: pointer;
	position: relative;
	top: +14px;
	margin-left: 6px;
}

#prefPollForChangesBtn {
	float: right;
	margin-right: 8px;
}

#prefLocaleBtn {
	float: right;
}

#prefAddBtn {
	float: right;
}

#prefRemoveBtn {
	float: right;
}

#prefRenameBtn {
	float: right;
}

#currentPrefHomeDiv {
	float: right;
	position: relative;
	top: +10px;
}

.settingsSeparator {
	clear: both;
	height: 4px;
	overflow: hidden;
	border-top: 1px solid #cccccc;
	margin-top: 4px;
}

/*
 * Contenuto del pannello informativo
 */
.infoPanel_ajaxResponse {
	border-spacing: 0px;
}

.infoTitle {
	font-weight: bold;
	margin-right: 4px;
	width: 100px;
	text-align: right;
	white-space: nowrap;
}

.infoValue {
	white-space: nowrap;
}


.infoSeparatorRow {
	height: 2px;
	overflow: hidden;
	margin-bottom: 0px;
}

.infoSeparatorRow td {
	font-size: 2px;
	padding-bottom: 2px;
}

.infoSeparator {
	border-bottom: 1px solid #cccccc;
}

/*
 * Remote operation dialog
 */

#remoteOperationDialog {
	display: none;
}

.remoteMessage {
	display: none;
}

.remoteDevice {
	font-weight: bold;
}

/*
 * Remote credentials dialog
 */
#remoteCredentialsDialog {
	display: none;
}

.credentialDisabled {
	background-color: #cccccc !important;
}

#remoteCredentialsErrorMessage {
	color: #ff0000;
}

#rc_pass {
	-webkit-text-security: disc;
}

/*
 * Send message dialog
 */
#remoteSendMessageDialog {
	display: none;
}

#remoteSendMessageDialog td {
	white-space: nowrap;
}

.sm_line {
	width: 500px;
}

/*
 * Export dialog
 */
#exportDialog {
	display: none;
}

/*
 * Ombra per i dialoghi
 */
.ui-dialog {
	box-shadow: 4px 4px 5px #666666;
}

/*
  * Miglioramento lista colonne visibili nelle tabelle
  */
.ColVis_title {
	left: 4px;
	position: relative;
	top: -2px;
	margin-right: 4px;
}

.ColVis_Button span {
	white-space: nowrap;
}

.ColVis_collection {
	overflow-y: auto;
	max-height: 80%;
}

#vncContainer div {
	display: none !important;
}

#vncContainer div.active {
	display: block !important;
}

#slider {
	justify-content: center;
	margin: 10px 20px;
}

#slider a.vnc-session-min {
	padding: 0px 10px;
	display: block;
	text-align: center;
}

#slider a img {
	height: 100px;
	border: 2px solid #B6B6B6;
	border-radius: 2px;
}

#slider a span {
	display: block;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.slick-prev::before,
.slick-next::before {
	color: black !important;
}

.lightbox .lb-outerContainer {
	border: 4px solid white;
	border-radius: 3px;
	overflow: hidden;
}

#vncSessionsList {
	display: flex;
	flex-direction: wrap;
	gap: 8px;
	padding: 10px;
	background-color: #f5f5f5;
	border-bottom: 1px solid #ddd;
	max-height: 110px;
}

.vnc-session-tab {
	flex-shrink: 0;
	padding: 6px 10px;
	background-color: #fff;
	border: 2px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 80px;
	text-align: center;
	font-size: 11px;
	color: #333;
	white-space: nowrap;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.session-thumbnail {
	width: 80px;
	height: 60px;
	object-fit: contain;
	background-color: #000;
	margin-bottom: 5px;
	border-radius: 2px;
}

.vnc-session-tab:hover {
	background-color: #e8f4f8;
	border-color: #4a9fd8;
}

.vnc-session-tab.active {
	background-color: #4a9fd8;
	color: #fff;
	border-color: #2c7ba9;
	font-weight: bold;
}

.vnc-session-tab .close-session {
	margin-left: 5px;
	cursor: pointer;
	font-weight: bold;
}

/* Fallback Fullscreen for Lightbox VNC Canvas */
.lb-fullscreen-mode {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
}

.lb-fullscreen-mode .lb-outerContainer {
	width: 100vw !important;
	height: calc(100vh - 45px) !important;
	border: none !important;
	border-radius: 0 !important;
	background-color: #000 !important;
}

.lb-fullscreen-mode .lb-dataContainer {
	width: 100vw !important;
	background-color: #000 !important;
}

ul.ui-contextmenu {
	z-index: 2;
	background-color: #f4f4f4;
	border: 1px solid #f4f4f4;
	border-right: 2px solid rgba(0,0,0,.2);
	border-bottom: 2px solid rgba(0,0,0,.2);
	padding: 4px;
	z-index: 9999;
}

.ui-menu-divider {
	font-size: 0px;
	border-top: 1px solid #C5C5C5;
	border-bottom: 1px solid #F5F5F5;
	float: left;
	width: 100%;
}

.ui-icon.ui-icon-starplus {
	background-image: url(../images/contextmenu-icons/selectionAdd.png);
}

.ui-icon.ui-icon-starminus {
	background-image: url(../images/contextmenu-icons/selectionDel.png);
}

.ui-icon.ui-icon-wgt-poweron {
	background-image: url('../images/contextmenu-icons/powerOn.png');
}

.ui-icon.ui-icon-wgt-poweroff {
	background-image: url('../images/contextmenu-icons/powerOff.png');
}

.ui-icon.ui-icon-wgt-reboot {
	background-image: url('../images/contextmenu-icons/reboot.png');
}

.ui-icon.ui-icon-wgt-raccess {
	background-image: url('../images/contextmenu-icons/RemoteAssistance.png');
}

.ui-icon.ui-icon-wgt-message {
	background-image: url('../images/contextmenu-icons/SendMessage.png');
}

.ui-menu .ui-menu-item-wrapper {
	padding: .5em;
}

.ui-menu .ui-menu-item-wrapper span.ui-icon {
	float: left;
	margin-top: 0px;
	margin-right: .5em;
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
	font-weight: normal;
}