/*
 * Copyright 2006-2012 ICEsoft Technologies Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the
 * License. You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS
 * IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */


/* 
.pdf-viewer-portlet html, body, div, table, img, fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    font-size: 11px;
}

.pdf-viewer-portlet html {
    overflow: scroll;

}

.pdf-viewer-portlet body, pre, span, pre {
    font-family: Tahoma, Helvetica, sans-serif;
    font-size: 11px;
    color: #484848;
    background-color: #ffffff;
} */

/* wider layout for pdf viewer pages - override of layout styles in themes */
body #wrapper  {
    min-width:1000px;
    width:96%;
	}
.portlet-layout {
	table-layout:fixed !important;
	}	

/* for some reson IE things a form should have dimensions, */
.pdf-viewer-portlet form {
    padding: 0;
    margin: 0;
}

.pdf-viewer-portlet table {
    font-size: 11px;
}

.pdf-viewer-portlet ul {
    margin-left: 15px;
    padding: 0;
}

.pdf-viewer-portlet h2 {
    font: 18px tahoma;
    color: #646464;
}

.pdf-viewer-portlet .commandSpacer {
    float: left;
    width: 10px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #333;
}

.pdf-viewer-portlet .floatLeft {
    float: left;
}

.pdf-viewer-portlet .floatright {
    float: right;
}

.pdf-viewer-portlet div.clearer {
    clear: both;
    height: 0px;
    visibility: hidden;
    line-height: .01em;
    padding: 0;
    margin: 0;
}

/* header begin */
.pdf-viewer-portlet div.icepdf-header {
    background: url("../images/demo-header-bacground.png") no-repeat scroll 0 0 transparent;
    height: 123px;
    width: 100%;
}
.pdf-viewer-portlet div.icepdf-logo {
    background: url("../images/icepdf-viewer-portlet.png") no-repeat scroll 0 0 transparent;
    height: 116px;
    left: -12px;
    position: relative;
    width: 600px;
}
/* header end */

/* body start */

/* provides a continer to center a child div in */
.pdf-viewer-portlet div.body_container {
    /*float: left;*/
    margin-top: -30px;
    width: 100%;
}

/* centers in parent as long as parent is larger then child*/
.pdf-viewer-portlet div.body_content {
    margin: 0 auto;
	padding-left:10px;
}

.pdf-viewer-portlet div.body_content div {
/*height: 100px;*/
}

.pdf-viewer-portlet div.navigationContainer {
    border: none;
    float: left;
}

.pdf-viewer-portlet div.docSearch {
    border: none;
    float: left;
    width: 100%;
}
.pdf-viewer-portlet div.docNotes {
    border: none;
    float: left;
    width: 100%;
}
.pdf-viewer-portlet div.docSearch input {
	margin:5px 10px 10px 0;
    width:90%;
	vertical-align:middle;
	}
.pdf-viewer-portlet div.docSearch input {
	margin:5px 10px 10px 0;
    width:90%;
	}
	

.pdf-viewer-portlet .navigationContainer a {
	white-space: normal;
    word-wrap: break-word;
	}
	
.pdf-viewer-portlet .navigationContainer .navPnlClpsblCnt {
	max-height:550px;
    overflow-y:auto;
	}	

.pdf-viewer-portlet .commandBarContainer {
    height: 35px;
	border-bottom:1px solid #ccc;
	margin-bottom:15px;
	background:#fff;
}
.pdf-viewer-portlet .commandBarContainer.scroll-to-fixed-fixed {
	padding-top:10px;
	}

.pdf-viewer-portlet .commandBarContainer .iceSelInpTxtTxt {
	margin:0;
	}
	
.pdf-viewer-portlet .commandBarContainer .iceInpTxt	{
	margin:0 5px 0 0;
	}

/* margin-left should be updated along with the relative position of */
.pdf-viewer-portlet div.contentContainer {
    background: none;
    border: none;
    padding-left: 10px;
    margin-left:550px;
}
.pdf-viewer-portlet div.contentContainerMax {
    background: none;
    border: none;
    padding-left: 10px;
}

.pdf-viewer-portlet table.componentTabSetContainer {
    width: 99%;
}

/* controls the appearance of links throughout the application */
.pdf-viewer-portlet a:link, .pdf-viewer-portlet a:hover, .pdf-viewer-portlet a:visited, .pdf-viewer-portlet a:active {
    font-family: Tahoma, Helvetica, sans-serif;
    font-weight: normal;
    text-decoration: none;
    color: #1E5F89;
}
	
.pdf-viewer-portlet a:hover {
    color: #E50000;
    text-decoration: underline
}

.pdf-viewer-portlet a:visited {
/*color: #104e5b;*/
}

.pdf-viewer-portlet a:active {
    color: #318496;
}

.pdf-viewer-portlet a.downloadUploadLink, .pdf-viewer-portlet a.downloadUploadLink:hover{
    color:#484848;
    font-weight:bold;
}

.pdf-viewer-portlet li.fileLink {
    list-style: none;
    background: url('../images/icepdf-bullet.gif') no-repeat 0 4px;
    padding-left: 15px;
    padding-bottom: 3px;
    line-height: 16px;
}

/* expanble menu */


.pdf-viewer-portlet .icePnlClpsblCnt {
    background-color: white;
}

.pdf-viewer-portlet .icePnlClpsblCnt, .pdf-viewer-portlet .icePnlClpsblCnt-dis {
    line-height: 16px;
}

/* connection status style for tabbed template */
.pdf-viewer-portlet .navConnectionStatus {
    left: 97%;
    position: relative;
    top: 27px;
}

.pdf-viewer-portlet .documentPageView {
    float: left;
    overflow: auto;
    border: 1px solid #999999;
    text-align: center;
    vertical-align: middle;
	max-width:100%;
}

.pdf-viewer-portlet .documentOutlineContainer {
    overflow: auto;
    /* height: 284px; */
}

/* download link in bottom */
.pdf-viewer-portlet .downloadContainer {
	height:40px;
	clear:both;
	}
	
.pdf-viewer-portlet .documentUpload {
/*width:400px;*/
    height: 150px;
}

.pdf-viewer-portlet .popupHeaderWrapper {
    text-align: center;
    vertical-align: middle;
}

.pdf-viewer-portlet .popupHeaderImage {
    float: right;
    margin-right: 2px;
    margin-top: 2px;
}

.pdf-viewer-portlet .popupHeaderText {
    float: left;
}

.pdf-viewer-portlet .selectedFile {
    background-color: #cccccc;
}

.pdf-viewer-portlet .icePnlPopHdr {
    background-image: url('../images/table_col_header.gif');
    background-repeat: repeat-x;
    background-position: top right;
    background-color: transparent;
    height:30px;
}

.pdf-viewer-portlet .icePnlPop {
    background-color: white; /*border: 1px solid */
}

/* rollover commands */
.pdf-viewer-portlet a.command {
    background-position: top;
    display: block;
	height:25px;
}

.pdf-viewer-portlet a.currentPagePrint {
    color:black;
    float:left;
    margin-left:150px;
    width: 150px;
    height: 20px;
    text-align: center;
    font-weight: bold;
    background: #FFF url(../images/table_col_header.gif) repeat-x top left;
    border: 1px solid #d9d9d9;
    padding: 5px 0px 0px 0px;
}

.pdf-viewer-portlet .selectPrints {
    width:80%;
    margin:15px 0px;
}

.pdf-viewer-portlet a.commandUtilityPane {
    background-position: top;
    display: inlie;
	height:25px;
}

.pdf-viewer-portlet .withPadding  {
	padding:0 5px;
	}

.pdf-viewer-portlet a.openCommand {
    background-image: url('../images/open-standard.gif');
}

.pdf-viewer-portlet a.openCommand:hover {
    background-image: url('../images/open-rollover.gif');
}

.pdf-viewer-portlet a.previousCommand {
    background-image: url('../images/back-standard.gif');
}

.pdf-viewer-portlet a.previousCommand:hover {
    background-image: url('../images/back-rollover.gif');
}

.pdf-viewer-portlet a.forwardCommand {
    background-image: url('../images/forward-standard.gif');
}

.pdf-viewer-portlet a.forwardCommand:hover {
    background-image: url('../images/forward-rollover.gif');
}

.pdf-viewer-portlet a.leftCommand {
    background-image: url('../images/rotate-ccw-standard.gif');
}

.pdf-viewer-portlet a.leftCommand:hover {
    background-image: url('../images/rotate-ccw-rollover.gif');
}

.pdf-viewer-portlet a.rightCommand {
    background-image: url('../images/rotate-cw-standard.gif');
}

.pdf-viewer-portlet a.rightCommand:hover {
    background-image: url('../images/rotate-cw-rollover.gif');
}

.pdf-viewer-portlet a.utilityPane:hover {
    background-image: url('../images/utility-pane-hover.gif');
}

.pdf-viewer-portlet a.utilityPane {
    background-image: url('../images/utility-pane-normal.gif');
}

.pdf-viewer-portlet a.printPane {
    background-image: url('../images/print.png');
    background-repeat: no-repeat;
}

.pdf-viewer-portlet a.currentPageTextSelection {
    background-image: url('../images/select_text.png');
    background-repeat: no-repeat;
}

.pdf-viewer-portlet a.currentPageNotes {
    background-image: url('../images/notes.png');
    background-repeat: no-repeat;
}

.pdf-viewer-portlet a.fittoWidth {
    background-image: url('../images/fit_width_standard.gif');
}

.pdf-viewer-portlet a.fittoWidth:hover {
    background-image: url('../images/fit_width_rollover.gif');
}

.pdf-viewer-portlet a.fittoPage {
    background-image: url('../images/fit_page_standard.gif');
}

.pdf-viewer-portlet a.fittoPage:hover {
    background-image: url('../images/fit_page_rollover.gif');
}

/* Fix for section titles moving on next line */
.documentOutline-icon {
	display:inline-block; 
	vertical-align:top !important;
	}
.documentOutline-title {
	display:inline-block; 
	vertical-align:top !important; 
	width:300px;
	}	
	.documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] {
		background:url("/pdf-viewer-portlet/xmlhttp/css/xp/css-images/tree_line_vertical.gif") repeat-y 0 0 transparent; 
		}	
		.documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"] div[name="nd"] {
			background-position:19px 0;
			}
			.documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"] div[name="c"] div[name="nd"] {
				background-position:38px 0;
				}			
	.documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"]:last-child {
		background:none;
		}
	.documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] > a:first-child {
		display:inline-block;
		}	
	.ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] img[src="/pdf-viewer-portlet/xmlhttp/css/xp/css-images/tree_line_last_node.gif"], .ie8 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] img[src="/pdf-viewer-portlet/xmlhttp/css/xp/css-images/tree_line_last_node.gif"] {
		background:#fff;
		padding-bottom:30px;
		}


/* ie7 fixes */
.ie7 .documentOutline-icon, .ie7 .documentOutline-title { 
	display:inline;
	}					
.ie7 .pdf-viewer-portlet .documentOutlineContainer {
    overflow: hidden;
}
.ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] > a:first-child, .ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="nd"] > img  { 
	float:left;
	}	
.ie7 .documentOutline-title {
	line-height:1.5;
	}		
.ie7 .iceTreeRow  {
 	clear:both;
	}	
.ie7 .documentOutlineContainer .iceTreeRow div[name="c"]  {
	background:url("/pdf-viewer-portlet/xmlhttp/css/xp/css-images/tree_line_vertical.gif") repeat-y 0 0 transparent; 
	}
.ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"], .ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"] div[name="nd"] {
	background-position:16px 0;
	}			
.ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"] div[name="c"], .ie7 .documentOutlineContainer .iceTreeRow div[name="c"] div[name="c"] div[name="c"] div[name="nd"] {
	background-position:32px 0;
	}								
		
/* Fixes for Navigation - overrise icefaces elements */		
.icePnlTbOff td, .icePnlTbOn td, .icePnlTbOver td {
	font-size:0;
	}			
.icePnlTbOff .MidMid td, .icePnlTbOn .MidMid td, .icePnlTbOver .MidMid td {
    font-size: 12px;
	}	
.icePnlTbOff .MidMid a, .icePnlTbOn .MidMid a, .icePnlTbOver .MidMid a {
    padding-top:0 !important;
	}		
.icePnlTbSetCnt {
	padding:10px !important;
	background-color:#fff !important;
	}	
.icePnlTbSet table {
	border-collapse:separate;
	}	
.icePnlTbSet { 
	table-layout:fixed; 
	}	
/* http://redmine.qualprojects.ru/issues/66 fix, make 100% on book preview*/
.iceGphImg {
    max-width: 100%;
}

.pack {
    height: 30px;
    width: 75px;
    background: rgb(127, 178, 255);
    border: 0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.pack {
    height: 30px;
    width: 75px;
    background: rgb(127, 178, 255);
    border: 0;
    border-radius: 5px;
    margin-bottom: 10px;
}
.wrapper {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("https://www.transparenttextures.com/patterns/grid-me.png");
    background-size: 10px;
}
.select {
    display: block;
    position: absolute;
    min-width: 100px;
    min-height: 100px;
    transition: 5s;
    border-radius: 5px;
}
.widget {
    display: block;
    position: absolute;
    min-width: 20px;
    min-height: 20px;
    /* transition causes issues with drag stop, you can "toss" the draggable over another draggable, interrupting collision detection. */
    /* 	transition: 0.15s; */
    border-radius: 5px;
}
.widget-inner {
    position: absolute;
    top: 1px;
    right: 1px;
    bottom: 1px;
    left: 1px;
    transition: 0.1s;
    border-radius: 5px;
    cursor: move;
    transition: 0.15s;
}
.widget-helper {
    position: absolute;
    display: none;
    background: green;
    transform: translate(-50%,-50%);
    z-index: 1049;
}

.ui-resizable-se {
    height: 20px;
    width: 20px;
    cursor: se-resize;
    position: absolute;
    right: 5px;
    bottom: 5px;
}
.resize-widget {
    display: none;
    height: 25px;
    width: 25px;
    position: absolute;
    right: 0;
    bottom: 0;
}
.resize-widget::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f054";
    font-weight: 800;
    display: inline-block;
    z-index: 1;
    position: absolute;
    top: 8px;
    right: 5px;
    font-size: 15px;
    color: #eee;
    transform: rotate(45deg);
    pointer-events: none;
}
.remove-widget {
    display: none;
    height: 25px;
    width: 25px;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}
.remove-widget::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f00d";
    font-weight: 800;
    display: inline-block;
    z-index: 1;
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 15px;
    color: #eee;
    pointer-events: none;
}

.copy-button {
    display: none;
    height: 25px;
    width: 25px;
    position: absolute;
    right: 40px;
    top: 0;
    cursor: pointer;
}
.copy-button::after {
    font-family: 'Font Awesome 5 Free';
    content: "\f0c5";
    font-weight: 800;
    display: inline-block;
    z-index: 1;
    position: absolute;
    top: 4px;
    right: 16px;
    font-size: 15px;
    color: #eee;
    pointer-events: none;
}

.rotate {
    position: absolute;
    color: #eee;
    top: 50%;
    right: 0px;
    transform: translate(0, -50%);
    cursor: pointer;
    padding: 5px;
    z-index: 1;
    border-radius: 50%;
}

.handle {
    position: absolute;
    border-radius: 5px;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.collision {
    background: rgba(255, 117, 117, 0.8) !important;
}

.hiddenWidget {
    display: none;
}

@media print {
    html, body, * {
        width: 210mm;
        height: 295mm;
    }

    @page {
        margin: 0;
        width: 210mm;
        height: 297mm;
    }

    #hiddenPrintPage {
        display: inline !important;
        overflow: hidden !important;
        height: 295px !important;
    }

}

.pdf-viewer-portlet .buttonAddNotes {
    width:90%;
    float:left;
}

.pdf-viewer-portlet .notesTextArea {
    width:400px;
    min-height: 150px;
}

.pdf-viewer-portlet a.addNote {
    color:black;
    float:left;
    width: 150px;
    height: 20px;
    text-align: center;
    display: block;
    font-weight: bold;
    background: #FFF url(../images/table_col_header.gif) repeat-x top left;
    border: 1px solid #d9d9d9;
    padding: 5px 0px 0px 0px;
}

.hiddenBtn {
    display: none;
}

.pdf-viewer-portlet a.deleteNote {
    color:black;
    float:left;
    display: block;
    width: 150px;
    height: 20px;
    margin: -28px 0px 0px 180px;
    text-align: center;
    font-weight: bold;
    background: #FFF url(../images/table_col_header.gif) repeat-x top left;
    border: 1px solid #d9d9d9;
    padding: 5px 0px 0px 0px;

}
