/* Common */

body.body-hidden {
	overflow-y: scroll !important;
}


/* Navigation */

@media (max-width: 979px) {
	
	.navbar-fixed-top .navbar-inner {
	    padding: 0px;
	}
	
}

.navbar .nav .nav-login {
	float: right;
}

.navbar .nav .nav-login > a {
	padding: 14px 15px;
}

.navbar .nav .nav-user-menu {
	float: right;
}

.navbar .nav .nav-user-menu > a {
	padding: 14px 15px;
}


/* Page */

#page {
    padding-top: 75px;
    padding-bottom: 50px;
}

@media (max-width: 979px) {
	
	#page {
	    padding-top: 6px;
	    padding-bottom: 50px;
	}
	
}


/* Portlet */

.portlet {
	margin-bottom: 20px;
	border: 1px solid rgba(0,0,0,0.07);
	box-shadow: 0 0 4px 0 #e7e7e7;
}

.portlet:last-child {
	margin-bottom: 0px;
}

.portlet-decoration {
	padding: 10px;
	border-bottom: 0px solid rgba(0,0,0,0.25);
	background-color: #073674;
	color: #FFF;
}

.portlet-content {
	padding: 15px;
}

.portlet-content .row-fluid h4,
.portlet-content .row-fluid h5 {
	margin-top: 0px;
}

.portlet-content .form-horizontal .form-actions,
.portlet-content .form-vertical .form-actions {
	margin-bottom: 0px;
}


/* Common Structure */

.width-40 {
	width: 40%;
}

.margin-left-0 {
	margin-left: 0px !important;
}

.margin-left-5 {
	margin-left: 5px;
}

.margin-left-10 {
	margin-left: 10px;
}

.margin-left-15 {
	margin-left: 15px;
}

.margin-left-20 {
	margin-left: 20px;
}

.margin-left-25 {
	margin-left: 25px;
}

.margin-left-30 {
	margin-left: 30px;
}

.margin-right-0 {
	margin-right: 0px !important;
}

.margin-right-5 {
	margin-right: 5px;
}

.margin-right-10 {
	margin-right: 10px;
}

.margin-right-15 {
	margin-right: 15px;
}

.margin-right-20 {
	margin-right: 20px;
}

.margin-right-25 {
	margin-right: 25px;
}

.margin-right-30 {
	margin-right: 30px;
}

.margin-top-0 {
	margin-top: 0px !important;
}

.margin-top-5 {
	margin-top: 5px;
}

.margin-top-10 {
	margin-top: 10px;
}

.margin-top-15 {
	margin-top: 15px;
}

.margin-top-20 {
	margin-top: 20px;
}

.margin-top-25 {
	margin-top: 25px;
}

.margin-top-30 {
	margin-top: 30px;
}

.margin-bottom-0 {
	margin-bottom: 0px !important;
}

.margin-bottom-5 {
	margin-bottom: 5px;
}

.margin-bottom-10 {
	margin-bottom: 10px;
}

.margin-bottom-15 {
	margin-bottom: 15px;
}

.margin-bottom-20 {
	margin-bottom: 20px;
}

.margin-bottom-25 {
	margin-bottom: 25px;
}

.margin-bottom-30 {
	margin-bottom: 30px;
}


/* Common */

.datepicker-input-field {
	width: auto;
	background-color: #ffffff !important;
	cursor: pointer !important;
}

.indent-input-button {
	cursor: pointer;
}

.indent-input-field {
	width: 15px;
	background-color: #ffffff !important;
	text-align: center;
	cursor: default !important;
}

.ui-widget-content a.btn-primary {
	color: #ffffff;
}


/* Bootstrap */

.navbar .brand {
	margin: 0px 20px 0px 0px;
	padding: 0px;
}

.navbar .brand img{width:46%;height:auto;}

.navbar .nav {
	float: none;
	margin: 0px;
}

.dropdown .caret {
	margin-left: 5px;
}

.navbar .nav .dropdown .navi-administration .caret {
	margin-top: 12px;
}

.navbar .nav > li > .dropdown-menu:before {
	left: auto;
	right: 11px;
}

.navbar .nav > li > .dropdown-menu:after {
	left: auto;
	right: 12px;
}

.dropdown-menu {
	left: auto;
	right: 0px;
	top: 96%;
	min-width: 120px;
	padding: 0px;
	border-radius: 0px;
}

.dropdown-menu > li > a {
	padding: 10px;
}

form {
	margin: 0px;
}

.form-horizontal .form-actions {
	padding-left: 20px;
}

.nav.nav-tabs {
	margin: 0px;
}

.tab-content {
	padding: 20px;
	border: 1px solid #dddddd;
	border-top: none;
}

.tab-content .form-horizontal .form-actions {
	margin-bottom: 0px;
}


/* Redactor */

.saarikoski .redactor-box {
	margin-bottom: 0px;
}

.saarikoski .redactor-toolbar,
.saarikoski .redactor-dropdown {
	z-index: 1023 !important;
}

.saarikoski .redactor-editor,
.saarikoski .redactor-editor:focus {
	padding: 10px;
	line-height: inherit;
	word-break: break-all;
}

.saarikoski .redactor-editor table {
	margin-bottom: 0px;
	display: inline-table;
	table-layout: fixed;
}


/* Administration */

#administration-users-table {
	padding-top: 0px;
}


/* Documents */

.stateful-button {
	min-width: 155px;
}

.document-date-range-separator {
	margin: 5px;
	vertical-align: top;
	display: inline-block;
}


/* Invoice */

#invoice-form #products-table .controls {
	margin-left: 0px;
}

.invoice-vat-select-field {
	width: auto;
}

.grid-view .filters input.datepicker-input-field.input-small {
	width: 80px;
}


/* Scenario */

.scenario input, .scenario .uneditable-input, .scenario .input-append {
	margin-bottom: 0;
}

.popover-container {
	line-height: 28px;
}

.popover-content textarea {
	margin-bottom: 0px;
	resize: vertical;
}

.editable-data-column-popover-trigger {
	cursor:pointer;
}

.documenttable tr {
	cursor:pointer;
}


/* Structure */

.structure-component {
	padding: 5px;
	border: 1px solid #dddddd;
	border-radius: 6px;
}

.structure-component:hover {
	cursor:pointer;
	box-shadow: 0px 0px 5px #aaaaaa;
}

#structure-edit .add-new-component-checkbox-container {
	float: left;
	width: 20px;
	line-height: 30px;
}

#structure-edit .add-new-component-checkbox {
	margin: 0px;
}

#structure-edit .add-new-component-button-container {
	margin-left: 25px;
}

#structure-edit .component-add {
	width: 100%;
}


/* Structure Module - Common */

.structure-module-view-content-wrapper {
	
}

.structure-module-view-content-wrapper h5 {
	margin-top: 0px;
}

.structure-module-view-content {
	
}

.structure-module-view-content ul {
	margin-left: 20px;
}

.structure-module-view-content table {
	width: 100%;
	table-layout: fixed;
	word-break: break-all;
}

.structure-module-view-content table td {
	padding: 2px 5px;
	vertical-align: top;
}

.structure-module-view-content table.text-table {
	display: inline-table;
}

.structure-module-view-content table.text-table td {
	padding: 0px;
	padding-right: 5px;
}

.structure-module-view-content .list-view {
	padding: 0px;
}

.structure-module-view-content .thumbnails {
	min-height: 20px;
	margin-bottom: -20px;
	overflow: hidden;
}

.structure-module-view-content-empty {
	font-style: italic;
}

.structure-module-edit-content-wrapper {
	
}

.structure-module-edit-content-container {
	position: relative;
}

.structure-module-edit-content-container-curtain {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0.2;
	z-index: 1025;
}

.structure-module-edit-content-wrapper .list-view {
	padding: 0px;
}

.structure-module-edit-content-wrapper .thumbnails {
	min-height: 20px;
	margin-bottom: -20px;
	overflow: hidden;
}

.structure-module-edit-template-action {
	min-width: 185px;
}

#structure-module-edit-compare-contents-modal {
	width: 1000px;
	margin-left: -500px;
}

.structure-module-edit-compare-contents-content {
	height: 200px;
	padding: 2px;
	border: 1px solid #cccccc;
	word-wrap: break-word;
	overflow-y: auto;
}

.structure-module-edit-scenarios-select-row {
	overflow: hidden;
}

.structure-module-edit-scenarios-select-row input {
	float: left;
}

.structure-module-edit-scenarios-select-row label {
	float: left;
	margin: 0px 0px 0px 5px;
}

.structure-module-edit-editor {
	position: relative;
}


/* Structure Module - Template Editor */

.structure-module-template-edit-editor-wrapper .list-view {
	padding: 0px;
}

.structure-module-template-edit-editor-wrapper .thumbnails {
	min-height: 20px;
	margin-bottom: -20px;
	overflow: hidden;
}


/* Editor - Common */

.editor-curtain {
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	background-color: #000000;
	opacity: 0.2;
	z-index: 1025;
}


/* Editor - Text */

.text-editor-text-area {
	height: 200px;
	resize: vertical;
}


/* Editor - RichText */

.rich-text-editor-text-area {
	height: 200px;
	resize: vertical;
}


/* Editor - List */

.list-editor-list {
	margin-bottom: -10px;
}

.list-editor-list-main {
	margin-bottom: 0px;
}

.list-editor-list-item {
	position: relative;
	margin-bottom: 10px;
	overflow: hidden;
}

.list-editor-list-item .list-editor-list {
	margin-top: 10px;
	margin-left: 15px;
}

.list-editor-list-item-label {
	margin-right: 65px;
}

.list-editor-list-item-label-input-container {
	margin-right: 14px;
}

.list-editor-list-item-label-input-container input[type="text"] {
	width: 100%;
	margin: 0px;
}

.list-editor-list-item-actions {
	position: absolute;
	right: 0px;
	top: 0px;
	font-size: 1.2em;
}

.list-editor-list-item-action {
	float: left;
	margin-left: 5px;
	cursor: pointer;
}

.list-editor-list-item-action-hidden {
	visibility: hidden;
}

.list-editor-list-actions {
	margin-top: 10px;
}


/* Editor - Table */

.table-editor-table {
	width: 100%;
	margin: -2px;
	margin-bottom: 10px;
	display: table;
}

.table-editor-table-row {
	display: table-row;
}

.table-editor-table-cell {
	padding: 2px;
	display: table-cell;
}

.table-editor-table-column-actions {
	font-size: 1.2em;
	overflow: hidden;
}

.table-editor-table-column-action {
	float: left;
	margin-right: 5px;
	cursor: pointer;
}

.table-editor-table-column-action-hidden {
	visibility: hidden;
}

.table-editor-table-cell-text-input-container {
	margin-right: 14px;
}

.table-editor-table-cell-text-input {
	width: 100%;
	margin: 0px;
}

.table-editor-table-row-actions {
	width: 40px;
	font-size: 1.2em;
	overflow: hidden;
}

.table-editor-table-row-action {
	float: left;
	margin-left: 5px;
	cursor: pointer;
}

.table-editor-table-row-action-hidden {
	visibility: hidden;
}

.table-editor-table-action {
	width: 115px;
}


/* Editor - RichTable */

.rich-table-editor-redactor-toolbars {
	height: 34px;
	background-color: #f5f5f5;
}

.rich-table-editor-table {
	width: 100%;
	margin: -2px;
	margin-bottom: 10px;
	display: table;
	table-layout: fixed;
}

.rich-table-editor-table-row {
	display: table-row;
}

.rich-table-editor-table-cell {
	padding: 2px;
	vertical-align: top;
	display: table-cell;
}

.rich-table-editor-table-cell.rich-table-editor-table-cell-row-actions {
	width: 40px;
}

.rich-table-editor-table-column-actions {
	font-size: 1.2em;
	overflow: hidden;
}

.rich-table-editor-table-column-action {
	
}

.rich-table-editor-table-column-action-delete {
	float: left;
	margin-right: 5px;
	cursor: pointer;
}

.rich-table-editor-table-column-action-resize {
	float: right;
	margin-left: 5px;
	cursor: e-resize;
}

.rich-table-editor-table-column-action-resize.ui-resizable-handle.ui-resizable-e.ui-resizable-w {
	position: static;
	left: auto;
	right: auto;
	top: auto;
	width: auto;
	height: auto;
	font-size: inherit;
}

.rich-table-editor-table-column-action-hidden {
	visibility: hidden;
}

.rich-table-editor-table-cell-text-area-container {
	
}

.rich-table-editor-table-cell-text-area-container .redactor-editor,
.rich-table-editor-table-cell-text-area-container .redactor-editor:focus {
	padding: 4px 6px;
}

.rich-table-editor-table-cell-text-area {
	width: 100%;
	margin: 0px;
	resize: none;
}

.rich-table-editor-table-row-actions {
	width: 40px;
	font-size: 1.2em;
	overflow: hidden;
}

.rich-table-editor-table-row-action {
	float: left;
	margin-left: 5px;
	cursor: pointer;
}

.rich-table-editor-table-row-action-hidden {
	visibility: hidden;
}

.rich-table-editor-table-action {
	width: 115px;
}


/* Dropzone */

#selectImageContainer .dropzone .dz-default.dz-message {
	top: 0px;
	left: 0px;
	width: 100%;
	height: auto;
	margin: 0px;
	margin-top: 110px;
	background-image: none;
	text-align: center;
}

#selectImageContainer .dropzone .dz-default.dz-message span {
	display: inline;
	font-weight: bold;
}

#selectImageContainer .dropzone {
	border: 1px solid rgba(0,0,0,0.03);
	min-height: 250px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	background: rgba(0,0,0,0.1);
	padding: 25px;
}

.dialog.gallery {
	width: 80%; /* respsonsive width */
    margin-left: -40%; /* width/2) */
}


/* Gallery */

.galleryImage {
	height: 100px; 
	line-height: 100px;	
	position: relative;
	text-align: center;	
}

.galleryImage img {
	max-height: 100px;
}

.galleryImage .deleteAction {
	color: #ff0000;
	position: absolute;
	right: 0;
	cursor: pointer;
	font-size: 16px;
	border: 1px solid #c0c0c0;
	border-radius: 3px;
	background-color: #e0e0e0;
}