/* Модальное окно */

.modal-wrap.js{
	position: absolute;
}

.modal-wrap{
	position: fixed;
	width: 100%;
	height: 100%;
	text-align: center;
	background: rgba(0,0,0,0.5);
	z-index: 3000;
	display: none;
}

.modal-inner{
	display: inline-block;
	text-align: left;
	height: 100%;
}

.modal-inner > table,
.modal-inner > table > tbody > tr > td{
	vertical-align: middle;
	height: 100%;
}

.modal-block{
	display: inline-block;
	min-height: 28px;
	position: relative;
	background: white;
	box-shadow: 0px 0px 20px black;
}

.modal-close:before {
	content: "\f00d";
	position: absolute;
	width: 100%;
	height: 100%;
	font-family: 'FontAwesome';
	color: black;
}

.modal-close{
	display: inline-block;
	position: absolute;
	z-index: 100;
	top: 0px;
	right: 0px;
	width: 14px;
	height: 14px;
	cursor: pointer;
}

.modal-content{
	display: inline-block;
	position: relative;
	padding: 10px;
	font-size: 14px;
	box-sizing: border-box;
	margin-top: 14px;
	box-shadow: none;
	border: 0px solid;
}

.modal-wrap-background {
	display: none;
	width: 100%;
	height: 100%;
	position: fixed;
	z-index: 3000;
	background: rgba(0,0,0,0.6);
}

.modal-wrap .modal-left-side{
	position: fixed;
	left: 0px;
	top: 0px;
	height: 100%;
}
.modal-wrap .modal-right-side{
	position: fixed;
	right: 0px;
	top: 0px;
	height: 100%;
}

.modal-wrap .modal-right-side .mside-top,
.modal-wrap .modal-right-side .mside-center,
.modal-wrap .modal-right-side .mside-bottom,
.modal-wrap .modal-left-side .mside-top,
.modal-wrap .modal-left-side .mside-center,
.modal-wrap .modal-left-side .mside-bottom
{
	position: relative;
	width: 100%;
	height: 33.333333%;
}


/* auto-size, confirm, warning, promptModal */
.modal-wrap.auto-size {
	max-width: 60%;
	max-height: 100%;
}

.modal-wrap.auto-size .modal-content-wrap {
	font-size: 0;
}


.modal-wrap.drag-modal.auto-size .modal-content-wrap .modal-content {
	text-align: center;
}

.modal-wrap.ui-modal .modal-content .text {
	font-size: 16px;
	padding: 15px;
}

.modal-wrap.ui-modal .modal-content .text .icon {
	display: inline;
}

.modal-wrap.ui-modal .modal-content .text .icon:before {
	font-size: 20px;
	display: inline-block;
	margin: 10px;
}

.modal-wrap.ui-modal.warning .modal-content .text .icon:before {
	content: "\f071";
	color: rgb(255, 184, 0);
}

.modal-wrap.ui-modal.error .modal-content .text .icon:before {
	content: "\f06a";
	color: rgb(171, 0, 0);
}

.modal-wrap.ui-modal .select-buttons {
	clear: both;
	display: block;
	width: 100%;
	text-align: center;
}

.modal-wrap.ui-modal .select-buttons-inner {
	display: inline-block;
}

.modal-wrap.ui-modal .select-buttons .btn {
	float: left;
	margin-left: 7px;
}

.modal-wrap.ui-modal textarea {
	display: inline-block;
	width: 95%;
	margin-bottom: 10px;
}

.modal-wrap.ui-modal .center {
	display: inline-block;
	max-width: 90%;
}

.modal-wrap.ui-modal .toggle-details {
    cursor: pointer;
    font-size: 12px;
    padding-left: 38px;
    text-decoration: underline;
}

.modal-wrap.ui-modal .details {
	display: none;
}

.modal-wrap.ui-modal.details-show .details {
	display: block;
	padding: 10px 20px;
	max-height: 250px;
	overflow: auto;
	border: 1px solid #ddd;
	margin-top: 10px;
	width: calc( 100% - 30px );
	margin-left: 15px;
	font-size: 12px;
	margin-bottom: 10px;
	clear: both;
}

.modal-wrap.ui-modal.details-show .toggle-details:after {
	content: "-";
}

.modal-wrap.ui-modal .toggle-details:after {
	content: "+";
	display: inline-block;
	margin-left: 3px;
}

.modal-wrap.ui-modal.has-details .modal-content .text {
	padding: 0px;
	padding-right: 10px;
	text-align: left;
	margin-bottom: 0;
}

.modal-wrap.ui-modal.has-details .select-buttons {
	float: right;
	width: auto;
	margin-right: 15px;
}

.modal-wrap.drag-modal.auto-size.has-details .modal-content-wrap .modal-content {
	text-align: left;
}

/* DragModal */
.modal-wrap.drag-modal {
	/* background: rgb(76, 110, 147); */
	box-sizing: border-box;
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.6);
	border-style: solid;
	border-width: 1px;
	/* border-color: #2C4969; */
}

.modal-wrap.drag-modal.full {
	left: 72px !important;
	width: calc( 100% - 72px ) !important;
	border-radius: 0;
}

.modal-wrap.drag-modal .modal-content-wrap {
	display: block;
	box-sizing: border-box;
	padding: 20px 3px 3px 3px;
	height: 100%;
}

.modal-wrap.drag-modal.iresize .modal-content-wrap {
	cursor: se-resize;
}

.modal-wrap.drag-modal.full .modal-content-wrap {
	padding: 20px 0 0 0;
}

.modal-wrap.drag-modal .modal-content {
	display: block;
	width: 100%;
	border-radius: 0;
	height: 100%;
	box-sizing: border-box;
	background: #fff;
	margin: 0;
	padding: 3px;
	box-shadow: none;
	overflow: auto;
	text-align: left;
	cursor: default;
	border: 0px solid;
}

.modal-wrap.drag-modal.full .modal-content {
	border-radius: 0;
	padding: 0;
}

.modal-wrap.drag-modal .modal-top-bar {
	position: absolute;
	width: 100%;
	height: 20px;
	text-align: left;
	z-index: 20;
}

.modal-wrap.drag-modal.imove .modal-top-bar {
	cursor: move;
}

.modal-wrap.drag-modal.full .modal-top-bar {
	cursor: default;
	right: 0;
	/* width: auto; */
	/* display: none; */
}

.modal-wrap.drag-modal .modal-top-bar-right {
	display: inline-block;
	float: right;
	margin-right: 5px;
	position: relative;
}

.modal-wrap.drag-modal .modal-content .modal-top-bar-right {
	display: none;
}

.modal-wrap.drag-modal.full .modal-top-bar-right {
	display: inline-block;
}

.modal-wrap.drag-modal.full .modal-top-bar-right {
	display: inline-block;
	margin-right: 0px;
	/* background: #fff; */
	/* box-shadow: 0 0 1px rgba(0,0,0,.3); */
	height: 20px;
}

  .modal-wrap.drag-modal .modal-min
, .modal-wrap.drag-modal .modal-full
, .modal-wrap.drag-modal .modal-close
, .modal-wrap.drag-modal .modal-mover
, .modal-wrap.drag-modal .modal-help
{
	display: inline-block;
	position: relative;
	float: left;
	width: 15px;
	height: 15px;
	margin-left: 5px;
	cursor: pointer;
}

.modal-wrap.drag-modal .modal-mover {
	cursor: move;
}

.modal-wrap.drag-modal.full .modal-mover {
	/* display: none; */
}

  .modal-wrap.drag-modal .modal-min:before
, .modal-wrap.drag-modal .modal-full:before
, .modal-wrap.drag-modal .modal-close:before
, .modal-wrap.drag-modal .modal-mover:before
, .modal-wrap.drag-modal .modal-help:before
{
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	font-family: 'FontAwesome';
	color: #333;
	color: #fff;
	font-size: 16px;
}

.modal-wrap.drag-modal .modal-min:hover:before
, .modal-wrap.drag-modal .modal-full:hover:before
, .modal-wrap.drag-modal .modal-close:hover:before
, .modal-wrap.drag-modal .modal-mover:hover:before
, .modal-wrap.drag-modal .modal-help:hover:before
{
	text-shadow: 0px 0px 5px black;
}

  .modal-wrap.full.drag-modal .modal-min:before
, .modal-wrap.full.drag-modal .modal-full:before
, .modal-wrap.full.drag-modal .modal-close:before
, .modal-wrap.full.drag-modal .modal-mover:before
, .modal-wrap.full.drag-modal .modal-help:before
{
	/* color: #333; */
}

.modal-wrap.drag-modal .modal-mover:before {
	content: "\f047";
	font-size: 14px;
	top: -1px;
}

.modal-wrap.drag-modal .modal-min:before {
	content: "\f068";
	top: 2px;
	left: 3px;
}

.modal-wrap.drag-modal .modal-full:before {
	content: "\f108";
	top: 2.5px;
	left: 2px;
	font-size: 12px;
}

.modal-wrap.drag-modal .modal-close:before {
	content: "\f00d";
	top: -2px;
}

.modal-wrap.drag-modal .modal-help {
	width: 10px;
	position: absolute;
	left: -22px;
}

.modal-wrap.drag-modal .modal-help:before {
	content: "\f128";
	left: 3px;
	width: 10px;
}


.modal-wrap.drag-modal .modal-title {
	display: inline-block;
	position: absolute;
	left: 26px;
	font-size: 12px;
	color: #444;
	color: #fff;
	text-align: left;
	line-height: 20px;
	font-family: inherit;
	font-weight: 600;
	overflow: hidden;
	white-space: nowrap;
	width: calc( 100% - 110px );
	text-overflow: ellipsis;
}

.modal-wrap.drag-modal.full .modal-title {
	/* display: none; */
}

.modal-wrap.drag-modal .modal-toolbar {
	width: 100%;
	position: relative;
	top: 20px;
}

.modal-wrap.drag-modal.with-toolbar .modal-content-wrap {
	padding-top: 40px;
}

.modal-wrap.drag-modal .modal-toolbar ul {
	margin-left: 5px;
}

.modal-wrap.drag-modal .modal-toolbar li a {
	display: inline-block;
	float: left;
	padding-left: 5px;
	padding-right: 5px;
	font-family: 'Arial';
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	cursor: pointer;
	border: 1px solid transparent;
	color: #333;
	text-decoration: none;
}

.modal-wrap.drag-modal .modal-toolbar li a:hover {
	background: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(0, 0, 0, 0.34);
}


.min-modals-wrap {
	position: fixed;
	bottom: 0px;
	left: 0px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
}

.min-modals-wrap  .button {
	display: inline-block;
	background: #ccc;
	box-shadow: 0px 0px 1px rgba(0, 0, 0, .5);
	padding: 5px 3px;
	cursor: pointer;
}

.min-modals-wrap  .count {
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	padding-left: 25px;
}

.min-modals-wrap  .count:before {
	content: "\f009";
	font-family: 'FontAwesome';
	position: absolute;
	left: 7px;
}

.min-modals-wrap ul {
	/*
	background: #ccc;
	padding: 6px 5px;
	border-radius: 0 3px 3px 0;
	box-shadow: 0px 0px 2px black;
	color: #111;
	*/
	top: initial;
	bottom: 30px;
}

.min-modals-wrap ul li {
	/*
	padding: 4px;
	cursor: pointer;
	background: #fff;
	border-top: 1px solid rgba(0, 0, 0, 0.44);
	*/
}
.min-modals-wrap ul li:first-child {
/*
	border-top: 0px solid;
	border-radius: 3px 3px 0 0;
*/
}

.min-modals-wrap ul li:last-child {
	/*
	border-radius: 0 0 3px 3px;
	*/
}

.min-modals-wrap ul li:first-child:last-child {
	/*
	border-radius: 3px;
	*/
}

.min-modals-wrap ul li:hover {
	background: #eee;
}

.min-modals-wrap ul li:hover a {
	cursor: pointer;
}

.min-modals-wrap ul li:hover a {
	color: #000;
}
.min-modals-wrap ul li a {
	color: inherit;
}

  .move-icon
, .move-icon.folder
{
	display: block;
	position: absolute;
	cursor: pointer;
	font-family: 'Arial';
	width: auto;
	height: auto;
	box-sizing: border-box;
}

  .move-icon:before
, .move-icon:after
{
	content: "";
	display: block;
	width: 30px;
	height: 30px;
	font-family: 'FontAwesome';
	font-size: 25px;
}

.move-icon.group:before {
	content: "\f0c5";
}

.move-icon h1 {
	font-size: 14px;
	max-width: 100px;
}

.no-select {
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	-o-user-select: none;
}

.modal-wrap.drag-modal.auto-size {
	display: inline-block;
	width: auto;
	height: auto;
}

.modal-wrap.drag-modal.auto-size .modal-content {
	display: inline-block;
	width: auto;
	height: auto;
}

.modal-wrap.loading .modal-tilte {
	font-size: 0;
}
 
.modal-wrap.transition-size {
	/* top, left, width, height */
	transition: all .3s;
}
