// bootstrap.custom.less overrides
// specific tweaks & hacks
// -------------------------------------------------------------


// GENERAL STUFF
// -------------

.transparent						{ opacity: 0 !important; filter: Alpha(opacity=0) !important; }
.o0 								{ opacity: 0 !important; filter: Alpha(Opacity=0) !important; visibility: hidden }
.o10 								{ opacity: .1; filter: Alpha(Opacity=10) }
.o20 								{ opacity: .2; filter: Alpha(Opacity=20) }
.o30 								{ opacity: .3; filter: Alpha(Opacity=30) }
.o40 								{ opacity: .4; filter: Alpha(Opacity=40) }
.o50 								{ opacity: .5; filter: Alpha(Opacity=50) }
.o60 								{ opacity: .6; filter: Alpha(Opacity=60) }
.o70 								{ opacity: .7; filter: Alpha(Opacity=70) }
.o80 								{ opacity: .8; filter: Alpha(Opacity=80) }
.o90 								{ opacity: .9; filter: Alpha(Opacity=90) }
.o100 								{ opacity: 1; filter:  Alpha(Opacity=100) }

.al	                                { text-align: left !important;}
.ac	                                { text-align: center !important;}
.ar	                                { text-align: right !important;}


// NICER PAGE TITLES & TYPO STUFF
// ------------------------------

.ellipsis {
	.text-overflow();
}

.font-inherit() {
	font-family: inherit;
	font-weight: inherit;
	font-style: inherit;
	color: inherit;
	font-size: inherit;
	color: inherit;
	text-decoration: inherit;
}

.title-typo() {
	font-family: @pageTitleFontFamily;
	font-weight: @pageTitleFontWeight;
	color: @pageTitleColor;
}

.page-title {
	margin: 0 0 18px 0;

	h1, h2, h3, h4, h5, h6 {
		.title-typo();
	}

	small { 
		color: inherit;
		font-weight: inherit;
	}
}

.modal-header.page-title {
	margin-bottom: 0;
}

.fa {
	// prevent Chrome ugliness on fonts
	//-webkit-text-stroke: 0.25px;
	-webkit-font-smoothing: subpixel-antialiased;
}

.btn-small .fa {
	vertical-align: text-bottom;
}

// THUMB ZOOMER
// ------------

.zoomable-thumb {
    max-width: 50px;
    max-height: 32px;
}

.zoomable-thumb-clone {
    border: 1px solid #bbb;
}

// MORE RESET
// ------------
::-moz-selection {
	background: #b3d4fc;
    text-shadow: none;
}

::selection {
	background: #b3d4fc;
    text-shadow: none;
}

nav ul, 
nav li {
    margin: 0;
    padding: 0;
    list-style-type: none; 
}


// ALERT STYLES
// ------------

.alert > *:first-child {
	margin-top: 0;
}

.alert > *:last-child {
	margin-bottom: 0;
}

.alert .validation-summary-errors > ul {
	margin-bottom: 0;
}


// FORM STATES
// ------------

span.field-validation-error {
	color: @errorText;
}


// WELL TWEAKS
// ------------
.well {
	background-color: #fafafa;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	.box-shadow(inset 0 0 10px rgba(0,0,0, 0.05));
}

.well-small {
	border-radius: 3px;
}

.well > *:first-child {
	margin-top: 0;
}

.well > *:last-child {
	margin-bottom: 0;
}

.well {
	h2, h3, h4, h5 {
		//.title-typo();
		font-weight: normal;
		color: #bbb;
	}
}

// TOOLTIP TWEAKS
// ---------------
.tooltip-inner {
	white-space: pre-wrap;
}


// BUTTON STYLES
// -------------

.btn {
	text-shadow: none;
}

// fix for tooltip <> btn-group bug in V2.2.1
// see: https://github.com/twitter/bootstrap/issues/5783
.btn-group > .btn + .tooltip + .btn {
	margin-left: -1px;
}

.btn-group-wrapper {
    text-align: center;
}

.btn-group-wrapper > .btn-group {
    margin: 0 auto; 
    text-align: center;
    width: inherit;
    display: inline-block;
}

// add gradient to buttons in ie < 10 with png mask
.iepre10 .btn {
	background-image: url('../images/btn-mask.png');
	background-position: 50% 50%;
	background-repeat: repeat-x;
	outline: 0;
	&:hover,
	&:active {
		background-position: 50% 50%;
	}
	&:active {
		background-image: none;
	}
}

.btn-above {
	margin-bottom: 5px !important;
}
.btn-below {
	margin-top: 5px !important;
}


// FORMS (GENERAL)
// --------------

legend > a {
    text-decoration: none !important;
}


// FORMS (SELECT)
// --------------

select {
	width: auto; // tb sets 220px, not good...
	min-width: 120px; // ...but too small is also bad
}

select, 
input[type="file"] {
    height: 30px;
    line-height: 30px;
}

// FORMS (PROMPTS)
// ---------------

.input-append .add-on .fa, 
.input-prepend .add-on .fa {
	font-size: 16px;
}

// FORMS (CHECKBOX / RADIO)
// ------------------------
input[type="radio"], 
input[type="checkbox"] {
	margin-top: 4px;
	margin-top: 1px \9;
}

th label {
	font-weight: inherit;
	font-size: inherit;
}


// NAV STYLES
// ------------

// remove outline from focussed nav links
.nav > li > a:focus {
	outline: 0;
}

// add icon support to nav tabs and pills
.nav > li > a > img,
.nav > li > a > .fa {
	vertical-align: baseline;
	margin-right: 4px;
    color: #727272;
}

.nav > li > a:hover > .fa, 
.nav > li.active > a > .fa {
    color: @textColor;
}

.tabs-left .nav > li > a > .fa {
    min-width: 16px;
}

// make nav pills look nicer
.nav.nav-pills > li > a {
	.transition(none);
}
.nav-pills > .active > a,
.nav-pills > .active > a:hover {
	border-radius: 2px;
	.box-shadow(~'inset 0 3px 5px rgba(0,0,0,.125)');
}

.tab-content {
	overflow: visible; // was 'auto'. Fixes dropdown problem.
}

.tabs-left .tab-content,
.tab-content .tab-content {
	overflow: auto; // restore in nested panels, buggy otherwise
}

.ie .tabs-left .nav-tabs {
	min-width: 200px;
}

.nav-tabs > li > a > span.tab-caption {
	display: inline-block;
	margin-right: 8px;
	white-space: nowrap;
}
  


// DROPDOWN STYLES
// ---------------

// add 'disabled' style to dropdown-menu items (will be officially implemented in a future bootstrap release)

.nav .disabled > a,	
.dropdown-menu .disabled > a,
.dropdown-menu .disabled > a:hover {	
	color: @dropdownLinkColor;
	.opacity(40);
	pointer-events: none;	
}
	
// Nuke hover effects
.nav .disabled > a:hover,	
.dropdown-menu .disabled > a:hover {
	text-decoration: none;
	background-color: transparent;	
	cursor: default;
}

.dropdown-menu li > a > img {
	// adjust icon alignment a bit.
	vertical-align: -1px;
}

.dropdown-menu li a i {
	display: inline-block;
	min-width: 16px;
}

// LABEL-BADGE ENHANCEMENTS
// -------------------------

.nav.nav-tabs .badge,
.nav.nav-tabs .label {
	// labels & badges within tabs "push" the tab item
	// downwards: kill the ugly solid table line
	vertical-align: text-top;
}

.label-smnet {
	margin-right: 5px;
}
.label-smnet-hide {
	display: none;
}
.label-smnet + span,
.label-smnet + a {
	vertical-align: middle;
}

// JQUERY UI STUFF
// -------------------------

.ui-effects-transfer,
.transfer {
	border: 2px dotted #555 !important;
	background: transparent;
	z-index: 100000;

}

/*.ui-menu {
	padding: 5px 0;
	margin: 2px 0 0; // override default ul
	background-color: @dropdownBackground;
	border: 1px solid #ccc; // Fallback for IE7-8
	border: 1px solid @dropdownBorder;
	*border-right-width: 2px;
	*border-bottom-width: 2px;
	border-top: none;
	.border-radius(6px);
	.box-shadow(0 5px 10px rgba(0,0,0,.2));
	-webkit-background-clip: padding-box;
		-moz-background-clip: padding;
			background-clip: padding-box;
}

.ui-autocomplete {
	border-color: @inputBorder; // goes nice with textboxes
	.box-shadow(0 5px 10px rgba(0,0,0,.12));
	border-top: none !important;
}
.ui-autocomplete.ui-corner-all {
	.border-radius(0 0 @inputBorderRadius @inputBorderRadius);	
}

.ui-autocomplete-loading {
	background-image: url('images/throbber-progress-black-16.gif');
	background-repeat: no-repeat;
	background-position: 98% center;
}

.ui-autocomplete .ui-menu-item a {
	.border-radius(0);
	padding: 3px 16px;
	font-family: @baseFontFamily;
    font-weight: normal;
    color: @dropdownLinkColor;
	.small();

	&:hover,
	&.ui-state-hover {
		color: @dropdownLinkColorHover !important;
		background: @dropdownLinkBackgroundHover !important;
	}
}*/

// MVC UI adaptation
// -------------------------

.validation-summary-errors {
	.alert();
	.alert-error();

	ul {
		margin-bottom: 0;
	}
}


/* Sortable lists
-------------------------------------------------------------- */

.sortable-grip {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 100%;
	width: 5px;
	cursor: move;
	visibility: hidden;
	.opacity(0);
	.transition(opacity 0.1s ease-in-out);
	background: transparent url('../../images/grippy.png') 0 0 repeat;
}

.sortable-item:hover .sortable-grip {
	visibility: visible;
	.opacity(100);
}

.sortable-dragging {
	/*border: 1px dashed #CCC;
	background: none;*/
}

.sortable-placeholder {
	border: 1px dotted #ccc;
	background: #f5f5f5;
}


// 'summernote' html editor tweaks
// -------------------------

.note-editable {
    background-color: #fff;
}