/* Styles for the media library iframe (not used on the Library screen) */

body#media-upload {
	background-color: #fff;
	}
	
	body#media-upload .search-box,
	body#media-upload .subsubsub,
	body#media-upload .tablenav {
		margin: 0;
		}
		
	body#media-upload .subsubsub {
		border-bottom: 1px dashed #f2f2f2;
		float: none;
		padding: 0;
		position: static;
		right: auto;
		text-align: center;
		top: auto;
		width: auto;
		}
			body#media-upload .subsubsub li a {
				font-size: 15px;
				line-height: 24px;
				}
				body#media-upload .subsubsub li a .count {
					border: 0;
					font-size: 15px;
					font-weight: normal;
					margin-left: 0;
					padding: 0;
					}
		
	body#media-upload .tablenav  {
		border-bottom: 1px dashed #f2f2f2;
		}
		body#media-upload .tablenav .tablenav-pages {
			float: none;
			padding: 6px 0;
			}
		body#media-upload .tablenav .actions {padding: 6px 0;}
		body#media-upload .tablenav .actions:nth-child(2) {
			padding: 6px 0;
			margin-right: 0;
			}
	

div#media-upload-header {
	clear: both;
	float: left;
	margin: 0 0 12px;
	padding: 0;
	width: 100%;
	}

#media-upload form {
	clear: both;
	margin: 0 18px;
	padding: 12px 0 0;
	}
		#media-upload #plupload-upload-ui {
			margin-top: 18px;
			}
			
	#media-upload #media-items {
		background: transparent;
		}

		#media-upload .media-item {
			padding: 12px;
			}
		#media-upload #media-items .describe-toggle-on,
		#media-upload #media-items .describe-toggle-off {
			float: right;
			}
		#media-upload .open .describe-toggle-off {
			display: inline-block;
			}
			
		#media-upload table {
			width: 100%;
			}

#search-filter {
	text-align: right;
}

th {
	position: relative;
}

.media-upload-form label.form-help, td.help {
	font-family: sans-serif;
	font-style: italic;
	font-weight: normal;
}

.media-upload-form p.help {
	margin: 0;
	padding: 0;
}

.media-upload-form fieldset {
	width: 100%;
	border: none;
	text-align: justify;
	margin: 0 0 1em 0;
	padding: 0;
}

/* specific to the image upload form */

#media-upload .image-align-none-label,
#media-upload .image-align-left-label,
#media-upload .image-align-right-label,
#media-upload .image-align-center-label {
	display: inline-block;
	height: 12px;
	text-indent: -9999em;
	vertical-align: middle;
	width: 20px;
	}
#media-upload .image-align-none-label {
	background: url(images/align-none.png) no-repeat center left;
	}
#media-upload .image-align-left-label {
	background: url(images/align-left.png) no-repeat center left;
	}
#media-upload .image-align-center-label {
	background: url(images/align-center.png) no-repeat center left;
	}
#media-upload .image-align-right-label {
	background: url(images/align-right.png) no-repeat center left;
	}

tr.image-size td {
	width: 460px;
}

tr.image-size div.image-size-item {
	margin: 0 0 5px;
}

#library-form .progress,
#gallery-form .progress,
.insert-gallery,
.describe.startopen,
.describe.startclosed {
	display: none;
}

.media-item .thumbnail {
	max-width: 128px;
	max-height: 128px;
}

thead.media-item-info tr {
	background-color: transparent;
}

.form-table thead.media-item-info {
	border: 8px solid #fff;
}

abbr.required {
	text-decoration: none;
	border: none;
}

.describe td.error {
	padding: 2px 8px;
}

.describe td.A1 {
	width: 132px;
}

/* Specific to Uploader */

#media-upload p.ml-submit {
	padding: 1em 0;
}

#media-upload p.help,
#media-upload label.help {
	font-family: sans-serif;
	font-style: italic;
	font-weight: normal;
}

#media-upload .ui-sortable .media-item {
	cursor: move;
}

#media-upload tr.image-size {
	margin-bottom: 1em;
	height: 3em;
}

#media-upload #filter {
	width: 623px;
}

#filter .tablenav select {
	vertical-align: top;
	width: auto;
}

#media-upload .del-attachment {
	display: none;
	margin: 5px 0;
}

.menu_order {
	float: right;
	font-size: 11px;
	margin: 10px 10px 0;
}

.menu_order_input {
	border: 1px solid #ddd;
	font-size: 10px;
	padding: 1px;
	width: 23px;
}

.ui-sortable-helper {
	background-color: #fff;
	border: 1px solid #aaa;
	opacity: 0.6;
	filter: alpha(opacity=60);
}

#media-upload th.order-head {
	width: 20%;
	text-align: center;
}

#media-upload th.actions-head {
	width: 25%;
	text-align: center;
}

#media-upload a.wp-post-thumbnail {
	margin: 0 20px;
}

#media-upload .widefat {
	width: 626px;
	border-style: solid solid none;
}

.sorthelper {
	height: 37px;
	width: 623px;
	display: block;
}

#gallery-settings th.label {
	width: 160px;
}

#gallery-settings #basic th.label {
	padding: 5px 5px 5px 0;
}

#gallery-settings .title {
	clear: both;
	padding: 0 0 3px;
	font-size: 1.6em;
	border-bottom: 1px solid #DADADA;
}

#gallery-settings .describe td {
	vertical-align: middle;
	height: 3em;
}

#gallery-settings .describe th.label {
	padding-top: .5em;
	text-align: left;
}

#gallery-settings .describe {
	padding: 5px;
	width: 615px;
	clear: both;
	cursor: default;
}

#gallery-settings .describe select {
	width: 15em;
}

#gallery-settings .describe select option,
#gallery-settings .describe td {
	padding: 0;
}

#gallery-settings label,
#gallery-settings legend {
	font-size: 13px;
	color: #464646;
	margin-right: 15px;
}

#gallery-settings .align .field label {
	margin: 0 1em 0 3px;
}

#gallery-settings p.ml-submit {
	border-top: 1px solid #dfdfdf;
}

#gallery-settings select#columns {
	width: 6em;
}

#sort-buttons {
	font-size: 0.8em;
	margin: 3px 25px -8px 0;
	text-align: right;
	max-width: 625px;
}

#sort-buttons a {
	text-decoration: none;
}

#sort-buttons #asc,
#sort-buttons #showall {
	padding-left: 5px;
}

#sort-buttons span {
	margin-right: 25px;
}

tr.not-image {
	display: none;
}

table.not-image tr.not-image {
	display: table-row;
}

table.not-image tr.image-only {
	display: none;
}

/**
 * HiDPI Displays
 */
@media print,
  (-o-min-device-pixel-ratio: 5/4),
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 120dpi) {

	.image-align-none-label {
		background-image: url(images/align-none-2x.png);
		background-size: 21px 15px;
		}
	.image-align-left-label {
		background-image: url(images/align-left-2x.png);
		background-size: 22px 15px;
		}
	.image-align-center-label {
		background-image: url(images/align-center-2x.png);
		background-size: 21px 15px;
		}
	.image-align-right-label {
		background-image: url(images/align-right-2x.png);
		background-size: 22px 15px;
		}
}
