/*
  XPages Boostrap specific styles
  This defines the missing styles and overrides some that lead to a bad rendering.
*/


/***********************************************************************	
	Bootstrap styles used by core XPages controls
***********************************************************************/
/*
>>begin>>TMG>>IBM Date, Time, DateTime Picker widget overrides>>
*/
.xspInputFieldEditBox[role="combobox"]{
	overflow: hidden;
	position: relative;
	height:28px !important;
	width: 218px;
}

.xspInputFieldDateTimePickerIcon{
	/* XPages classic icons
		background:url(/xsp/.ibmxspres/global/theme/oneui/images/iconDateTimePicker.png) no-repeat left center;
		height: 16px !important;
		width: 16px !important;
	*/
	background-image: url("/xsp/.ibmxspres/.extlib/bootstrap/bootstrap232/img/glyphicons-halflings.png");
	background-position: -192px -120px;
	height: 14px;
    width: 14px;
	border: none !important;
	box-shadow: none !important;
	padding: 0px !important;
	cursor: pointer !important;
	background-color: rgba(0, 0, 0, 0);
	margin-top: 5px;
	margin-left: 4px;
}
.xspInputFieldDatePickerIcon{
	/* XPages classic icons
		background:url(/xsp/.ibmxspres/global/theme/oneui/images/iconDatePicker.gif) no-repeat left center;
		height: 16px !important;
		width: 16px !important;
	*/
	background-image: url("/xsp/.ibmxspres/.extlib/bootstrap/bootstrap232/img/glyphicons-halflings.png");
	background-position: -192px -120px;
	height: 14px;
    width: 14px;
	border: none !important;
	box-shadow: none !important;
	padding: 0px !important;
	cursor: pointer !important;
	background-color: rgba(0, 0, 0, 0);
	margin-top: 5px;
	margin-left: 4px;
}
.xspInputFieldTimePickerIcon{
	/* XPages classic icons
		background:url(/xsp/.ibmxspres/global/theme/oneui/images/iconTimePicker.png) no-repeat left center;
		height: 16px !important;
		width: 16px !important;
	*/
	background-image: url("/xsp/.ibmxspres/.extlib/bootstrap/bootstrap232/img/glyphicons-halflings.png");
	background-position: -48px -24px;
	height: 14px;
    width: 14px;
	border: none !important;
	box-shadow: none !important;
	padding: 0px !important;
	cursor: pointer !important;
	background-color: rgba(0, 0, 0, 0);
	margin-top: 5px;
	margin-left: 4px;
}

/* styling of icons in date/ time pickers */
.dijitDateTextBox > div.dijitButtonNode {
	margin-top: 0;
	margin-right: 0;
	width: 25px;
	height: 26px;	
}

/* fix for combo boxes in RT editor in Bootstrap 3 */
.cke_editor * {
        box-sizing:content-box;
   -moz-box-sizing:content-box;
    -ms-box-sizing:content-box;
-webkit-box-sizing:content-box;
}

/*normal font weight for checkboxes in pickers */
label.xspPickerSpan {
	font-weight: normal;
}

/***********************************************************************	
	Bootstrap styles used by extlib XPages controls
***********************************************************************/

/* Application Layout*/
.applayout-main {	
}
.applayout-content {
	padding: 10px;
}
.applayout-column-left {
	padding: 10px 0 10px 0;
}
.applayout-column-right {
	padding: 10px 0 10px 0;
}
.applayout-footer {
	display: table; margin-left: auto; margin-right: auto; text-align: center;
}
.applayout-legal {
}
.applayout-searchbar {	
	margin-top: 5px;
	margin-bottom: 5px;
}
.applayout-searchbar select {
	margin-right: 7px;
}
.applayout-titlebar {	
	z-index: 998;
	margin-bottom: 0;
}
.applayout-titlebar-tabs {	
	margin: 4px 0 0 0;
	padding-top: 3px;
}
.applayout-titlebar-name {
	margin: 0 30px 0 0;
	padding-top: 10px;
	float: left;
}
.applayout-titlebar-inner ul:nth-child(2) > li {
	margin-left: 12px;
}
.applayout-titlebar-inner h4:nth-child(2) {
	margin-left: 12px;
}
.applayout-banner {	
	margin-bottom: 0px;
  	min-height: 20px;
}
.applayout-placebar {
	vertical-align: middle;
	margin-bottom: 0px;
  	min-height: 20px;
  	z-index: 999;
 }
.applayout-placebar-title {
	float: left;
	margin-top: 5px;
	margin-bottom: 5px;
}
.applayout-placebar-title h3 {
	margin: 0 0 0 15px;
}
.applayout-placebar-actions {
	/*float: right;*/
}

.nav-search-panel {
	margin-left: 8px;
}
	
/* Widgets */
.widget-section-scroll {
	text-align: center;
}
.widget-section-arrow {
	margin: auto;
}

/* Make a black icon lighter, ex: toggle icons */
.icon-lighter {
    opacity: 0.25;
}

/* Navigator */
.navigator-twisty {
	padding: 0;
	border: 0;
}

/* Dialog */
.modal form{
	margin: 0;
}
.xspmodal {
  position: fixed;
  top: 10%;
  left: 50%;
  z-index: 1050 !important;
  width: 560px;
  margin-left: -280px;
  overflow: none;
}
.dijitDialogUnderlayWrapper {
	z-index: 1049 !important;
}

/*disabled navigation links*/
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus {
	color: #666;
}

/*Bootstrap relies on the href attribute on a's to show the correct cursos: fix for XPage pagination that by default doesn't have that*/
.nav, .pagination, .carousel a {
	cursor: pointer;
}

/* Submenu don't exist any more in BS 3 - adding them here - Also need some custome JS (see xpagesxxx.js*/
.dropdown-submenu{position:relative;}
.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#ffffff;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}

/*margin between icons and text in buttons*/
.btn .glyphicon {
	margin-right: 4px;
}
 
/*class to use for icon-only buttons*/
.btn.btn-icon .glyphicon {
	margin-right: 0;
}

/*hide the tooltip when not hovered*/
.tooltip {
	top: -10000px;	
}

/*correct layout of select2 picker within form-horizontal*/
.form-horizontal .select2-container {
	margin-top: 3px;
}

/***********************************************************************	
	OneUI like specific styles used by XPages controls
	-> Ideally, these classes should be renamed and the rendered adapted
	   to the new names.
***********************************************************************/

/* Common utilities coming from OneUI */
.lotusAltText {
    display: none;
}
.lotusNowrap {
    white-space: nowrap;
}
.lotusMeta {
	color:#666;
}
.lotusTable .lotusMeta {
    font-size: 0.9em;
}
.lotusLeft {
    float: left;
    text-align: left;
}
.lotusRight {
    float: right;
    text-align: right;
}

/* General table */
.table h4, .lotusForum h4 {
    font-size: 1.1em; /* For DataView main topic, ForumView main topic */
}


/*table-based form - use the div one moving forward*/
.form-table{margin:0;padding:0;zoom:1}
.form-table .form-title h2{font-size:1.3em;}
.form-table .form-footer{padding:10px 25px !important;}
.form-table legend {padding-bottom:5px !important;}
.form-table .form-footer{padding:10px 25px !important;}


/* list of names */
.lotusFilters {
    font-size: 0.9em;
    line-height: 1.8em;
    margin-top: 5px;
}
.lotusFilters a.lotusFilter {
    background-color: #FAFAFA;
    border: 1px solid #DDDDDD;
    border-radius: 4px 4px 4px 4px;
    padding: 1px 3px;
    text-decoration: none;
}
.lotusFilters a .lotusClose {
    color: #AAAAAA;
    padding: 0 4px;
}


/* Links */
.lotusInlinelist {
    list-style-type: none;
    margin: 0;
    padding: 0;
}
.lotusInlinelist li {
    border-left: 1px solid #CCCCCC;
    display: inline;
    margin: 0;
    padding: 0 7px;
}
.lotusInlinelist li.lotusFirst, .lotusInlinelist li.lotusLast {
    border-left-width: 0;
    padding-left: 0;
}

.btn + .btn {
	margin-left: 5px;
}


/***********************************************************************	
	Additions to bootstrap
***********************************************************************/

.container-full {
	margin: 0 auto;
	width: 100%;
}

.container-full > .row {
	margin-left: 5px;
    margin-right: 5px;
}

/*fix for #54: right margin in full width layout*/
@media (min-width: 768px) {
  .applayout-banner .navbar-nav.navbar-right:last-child {
    margin-right: 0 !important;
  }
}

/***********************************************************************	
	Dojo 1.8.1 fixes for DBootstrap
***********************************************************************/

/* Spinner button */
.dijitSpinner .dijitArrowButtonInner .dijitInputField {
    margin: 0;
	padding: 0;
	border: 0 none;
	box-shadow: none;	
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	transition: none;
	-moz-transition: none;
    -webkit-transition: none;
    -o-transition: color 0 ease-in;        		
}
.dijitSpinnerButtonContainer {
    height: 20px;        		
}
