/** --------------------------------------------
 * ModelAdmin
 * -------------------------------------------- */

.ModelAdmin {
	// Disable by default, will be replaced by more intuitive column selection in new data grid
	.ResultAssemblyBlock {
		display: none;
	}
	.cms-content-tools {
		h3.cms-panel-header {
			display:none;
		}
		#SearchForm_holder {
			ul.ui-tabs-nav {
				overflow:hidden;
				li {
					max-width:99%;
					a {
					  white-space: nowrap;
						overflow: hidden;
						text-overflow:ellipsis;
						//above 3 lines can also be achieved with mixin below
						//@include ellipsis;
						max-width:85%;
					}	
				}
			}			
			#ModelClassSelector {
				margin-bottom:2px;
				select {
					width:96%;
				}
			}			
			div.tab {
				border:1px solid #aaa; //following color from the jquery smoothness theme
				margin-top:-1px;
				background:#fff; //backround is kept white to follow tabs
				padding:$grid-x;

				h3 {
					margin-top:16px;
					margin-bottom:10px;
					@include doubleborder(bottom, $color-light-separator, lighten($color-light-separator, 10%))
				}

				form {
					input {
						margin:0px;
					}
					.field {
						border-bottom:0px;
						margin-bottom:6px;
					}
					.Actions {
						max-width:100%;
						overflow:hidden;
						button.ss-ui-action-minor {
							//removing the "clear search" button
							display:none;
						}
						input.action {
							//experimenting with text-overlow:ellipsis on action buttons
							//currently disabled as this ignores padding-left on the buttons in Firefox
							//and makes the text appear in front of the icon in Firefox 10
							//See a screenshot here: http://db.tt/iBi39rRt 
						  
						  //white-space: nowrap;
							//overflow: hidden;
							//text-overflow:ellipsis;
							//max-width:100%;
						}
					}
				}
			}
		}
	}
}