/**
* @package JCE Image Manager Extened
* @copyright Copyright (C) 2005 - 2010 Ryan Demmer. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see licence.txt
* JCE Image Manager Extened is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/

@import url('../../imgmanager/css/imgmanager.css');

#popup_src {
	width : 350px;
}

div.button.image_editor, 
div.button.thumb_create, 
div.button.thumb_delete,
div.button.insert_multiple {
	background-image: url(../img/icons.png);
	background-repeat: no-repeat;
}
#view_mode {
	background: url(../img/icons-24.png) no-repeat 0 0;
}
#view_mode.images {
	background-position: 0 -24px;
}
div.button.image_editor {
	background-position: 50% -60px;
}
div.button.thumb_create{
	background-position: 50% 0;
}
div.button.thumb_delete{
	background-position: 50% -20px;
}
div.button.insert_multiple{
	background-position: 50% -40px;
}
div.button.crop {
	background-position: 50% -60px;
}
div#resize-form div.row, div#rotate-form div.row, div#thumbnail-form div.row {
	margin: 1px;
	padding: 4px 0px 4px 0px;
}
input.dimension-value, select.dimension-quality, select.dimension-mode  {
	position: absolute;
	left: 60px;
}
select.dimension-type {
	position: absolute;
	left: 135px;
}
div#dimension-constrain {
	position: absolute;
	left: 180px;
	top: 5px;
	width: 20px;
	height: 40px;
	background-image: url(../img/icons.png);
	background-repeat: no-repeat;
	background-position: center; 
	background-position: 0 -100px;
	cursor: pointer;
}
div#dimension-constrain.off{
	background-position: 0 -140px;
}
select#thumbnail-mode, select#rotate-angle, select#upload-thumbnail-mode, select#upload-rotate-angle {
	position: absolute;
	left: 60px;
	height: auto;
}
div.slider-background {
	height: 20px;
	width: 100px;
	background-position: 0 -220px;
	background-repeat: repeat-x;
	left: 60px;
}
 
div.slider-handle {
	height: 20px;
	width: 20px;
	background-position: 0 -180px;
	cursor: pointer;
}
div.slider-handle-over {
	background-position: 0 -200px;
}
ul#item-list li.file.thumbnail-preview {
	background-image: none;
	float: left;
	padding: 3px;
	margin: 4px 3px 4px 4px;
	border: 1px solid #eee;
	position: relative;
	-moz-border-radius: 2px;
	-webkit-border-radius: 2px;
	border-radius: 2px;
	width: 55px;
	height: 55px;
}

div#browser.full-width ul#item-list li.file.thumbnail-preview {
	margin: 5px 4px 5px 5px;
}

ul#item-list li.file.thumbnail-preview.ui-state-highlight {
	border-style: dashed;
}

ul#item-list li.file.thumbnail-preview.selected {
	background-color: #FFFFFF;
}
ul#item-list li.file.thumbnail-preview.thumbnail-loading {
	background: #ffffff url('../../../../libraries/img/load.gif') no-repeat center center;
}
ul#item-list li.file.thumbnail-preview.thumbnail-error {
	background: url('../../../../libraries/img/broken.png') no-repeat center center;
}
ul#item-list li.file.thumbnail-preview.selected {
	border: 1px dashed #919B9C;
}
ul#item-list li.thumbnail-preview span.thumbnail {
	background-position: center center;
	background-repeat: no-repeat;
	display: block;
	width: 100%;
	height: 100%;
}

ul#item-list li.file.thumbnail-preview span.thumbnail.resize {
	-o-background-size : contain;
	-webkit-background-size : contain;
	-khtml-background-size : contain;
	-moz-background-size: contain;
	background-size : contain;
}
ul#item-list li.file.thumbnail-preview a {
	margin: 0;
	padding: 0;
	display: none;
}
ul#item-list li.file.thumbnail-preview span.checkbox {
	background-color:#FFFFFF;
	top: auto;
	bottom:0;
	height:20px;
	left:auto;
	right:0;
	width:20px;
	z-index:10;
	margin: 0;
	-webkit-border-top-left-radius: 3px;
	-moz-border-radius-topleft: 3px;
	border-top-left-radius: 3px;
}
/*div#browser.full-width ul#item-list li.file.thumbnail-preview {
	width: 80px;
	height: 80px;
}*/
div#browser.full-width ul#item-list li.file.thumbnail-preview span.date, div#browser.full-width ul#item-list li.file.thumbnail-preview span.size {
	display: none;
}

div#thumbnail-body {
	z-index: 100;
	width: 100%;
}
td#popup-required {
	width: 100%;
	vertical-align: middle;
}
td#popup-required span {
	padding-top: 3px;
}

div#message span.info-images, div#message span.info-list {
	float: right;
}
div#browser-list-resize {
	width: 100px;
	position: absolute;
	top: 8px;
	right: 80px;
	line-height: 20px;
	vertical-align: middle;
}
div#browser-list-resize span {
	width : 16px;
	height: 16px;
	display: inline-block;
	position: absolute;
	top: -9px;
}

div#browser-list-resize span.slider-image-left {
	background: url('../img/icons.png') no-repeat center -80px;
	left: -24px;
}
div#browser-list-resize span.slider-image-right {
	background: url('../img/icons.png') no-repeat center -100px;
	right: -24px;
}

ul#item-list li.file.selected.move {
	cursor: move;
}
ul#item-list li.ui-state-highlight {
	border-style: dashed; 
}

div.row {
	margin: 5px 0;
	position: relative;
}

div.thumbnail div.form-left, div.thumbnail div.form-right {
	float: left;
}
div.thumbnail div.form-left fieldset {
	margin : 0 5px 0 0;	
}
div.thumbnail div.form-left {}
div.thumbnail div.form-right {
	padding: 0 0 0 5px;
}

div.thumbnail div.form-right fieldset:first-child {
	height: 120px;
}

div.thumbnail div.form-right fieldset:first-child + fieldset {
	height: 180px;
	padding: 3px 4px;
	position: relative;
}

#thumbnail-create-crop {
	width: 400px;
	height: 300px;	
	background: url("../img/ios_texture.png") repeat 0 0 transparent;
    box-shadow: 0 0 2px #000000 inset;
    -moz-box-shadow: 0 0 2px #000000 inset;
    -webkit-box-shadow: 0 0 1.5px #000000 inset;
    padding: 9px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
}
#thumbnail-create-crop img {
	display: block;
	margin: auto;
}
#thumbnail-create-preview {
	overflow: hidden;
	margin: 0 auto;
	position: relative;
}
#thumbnail-create-coordinates {
	height: 18px;
	line-height: 18px;
    text-align: center;
    bottom: 0;
    position: absolute;
    width: 100%;
}

#thumbnail-create-preview canvas {
	display: block;
    margin: auto;
}
#thumbnail-create-preview.loading {
	background: url('../../../../libraries/img/load.gif') no-repeat center center;
}

input.width, input.height, input.quality {
	width: 60px;
	text-align: center;
}
input.quality {
	width: 30px;
	text-align: center;
}
div.slider {
	width: 100px;
	display: inline-block;
	line-height: 20px;
	vertical-align: middle;
}
div.constrain {
	position: absolute;
	height: 40px;
    left: 150px;
    position: absolute;
    top: 4px;
    width: 10px;
    border: 1px solid #ccc;
    border-left-width: 0;
    
}
#upload-transform div.constrain {
	position: relative;
	height: 5px;
	margin-left: 30px;
    width: 145px;
    border: 1px solid #ccc;
    border-top-width: 0;
    text-align: center;
    
}
div.constrain span.checkbox {
	background: url('../img/chain.png') no-repeat 100% -20px;
	top: 10px;
	left: 1px;
	position: relative;
	width: 20px;
	height: 20px;
	margin: 0;
	display: inline-block;
	cursor: pointer;
}
#upload-transform div.constrain span.checkbox {
	background-position: 100% -60px;
    margin-left: -10px;
    top: -5px;	
    position: relative;
}
div.constrain span.checkbox.checked {
	background-position: 100% 0;
}
#upload-transform div.constrain span.checkbox.checked {
	background-position: 100% -40px;
}

#upload-transform {
	 box-shadow: 0 0 2px #333 inset;
    -moz-box-shadow: 0 0 2px #333 inset;
    -webkit-box-shadow: 0 0 1.5px #333 inset;
    background: url("../img/ios_texture.png") repeat 0 0 transparent;
    padding: 10px 5px;
    margin: 5px 0;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    clear: both;
}

#upload-transform div.row:first-child {
	margin: 5px 0 15px 0;
}

#upload_resize_constrain, #upload_thumbnail_constrain, #upload_thumbnail_crop {
	margin: 0 0 0 5px;
}
#upload_thumbnail_crop {
	margin: 0 0 0 10px;
}
#upload_resize_constrain + label, #upload_thumbnail_constrain + label, #upload_thumbnail_crop + label {
	margin: 0 0 0 5px;
}
#upload-transform h3 {
	color: #333;
	text-shadow: 0 1px 0 #FFFFFF;
	display: inline-block;
	background: none;
	border: 0 none;
}
#upload-transform label {
	text-shadow: 0 1px 0 #FFFFFF;
}

#upload_resize_width_unit, #upload_resize_height_unit {
	margin: 0 0 0 5px;
}
#upload-transform input[type="checkbox"] {
	vertical-align: middle;
	border: 0 none;
}
label[for="upload_resize"], label[for="upload_thumbnail"] {
	text-align: left;
	margin: 0 0 0 5px;
}