/*
 * manage versions in file list
 */
.manage-versions-icon {
  background-color: #DCF0FA;
  color: #4B9BCD;
  padding: 0;
  border: 0;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  text-transform: uppercase;
  font-family: 'Montserrat', 'sans-serif';
  font-size: 12px;
}
.manage-versions-icon:hover,
.manage-versions-icon:focus {
	color: #4B9BCD;
}

.app-modal.view .manage-versions-icon:hover {
	cursor: default;
}

/*
 * upload new version button
 */
#new-version-selector {
	width: 200px;
	position: absolute;
	top: 50%;
	left: 45%;
	z-index: 0;
}

/*
 * manage file info
 */
.manage-version-modal .modal-body {
	height: 450px;
}

.manage-version-modal .close-modal {
	font-size: 20px;
	color: #D1D3D4;
	position: relative;
	top: 3px;
	left: auto;
	right: -14px;
}

.manage-versions-header {
	margin-top: 35px;
	margin-bottom: 10px;
}

.manage-versions-header .selected-file-info {
	position: relative;
	top: -6px;
}

.manage-versions-header span {
	color: #4B4137;
	font-family: 'Open Sans', 'sans-serif';
	font-size: 13px;
}

.manage-versions-header .file-name {
	display: inline-block;
	width: 300px;
	padding-right: 0;
	padding-left: 0;
	position: relative;
	top: 9px;
	text-overflow: ellipsis;
	white-space: nowrap;
	word-break: break-all;
	overflow: hidden;
}

.manage-versions-header .file-name span {
	color: #4B9BCD;
}

.manage-versions-header .file-name img {
	width: 26px;
	height: 26px;
}

.manage-versions-header button,
.manage-versions-header button:focus {
	background: url('../img/modal/upload-new-version-icon.svg') no-repeat 6px 0px;
	font-family: 'Open Sans', 'sans-serif';
	background-color: #4B9BCD;
	color: #FFF;
	padding: 5px 10px 5px 38px;
	background-size: 25px 25px;
	font-size: 11px;
	font-style: italic;
	border: 0;

	position: relative;
	top: 3px;
}
.manage-versions-header button:hover {
	background-color: #7BAFC2;
	color: #FFF;
}

/*
 * file version list
 */
.file-version-list {
	position: relative;
}

/*
 * file version table scroll when overflow
 */
.file-version-list .table {
	display: table;
	width: 100%;
	margin-bottom: 15px;
}

.file-version-list .table thead, 
.file-version-list .table tbody {
	float: left;
	width: 100%;
}

.file-version-list .table tbody {
	overflow: auto;
	height: 209px;
}

.file-version-list .table tr {
	width: 100%;
	display: table;
}

/*
 * file version table width
 */
.file-version-list .table > thead > tr > th,
.file-version-list .table > tbody > tr > td {
	padding: 5px;
	text-align: center;
}
.file-version-list .table > thead > tr > th:first-child,
.file-version-list .table > tbody > tr > td:first-child {
	text-align: left;
}
.file-version-list .table > tbody > tr > td:first-child {
	padding-left: 0;
}

.file-version-list .table > thead > tr > th {
	font-family: 'Montserrat', 'sans-serif';
	font-size: 12px;
	color: #4B4137;
}

.file-version-list .table > tbody > tr > td {
	font-family: 'Open Sans', 'sans-serif';
	font-size: 13px;
	color: #3773A5;
	vertical-align: middle;
	border-top: 0;
}
.file-version-list .table > tbody > tr.deleted-state > td {
	color: #D1D3D4;
}

.file-version-list .version-list:hover {
	background-color: #F0F9FD;
	cursor: pointer;
}
.file-version-list .version-list.deleted-state:hover {
	background-color: #FFF;
	cursor: default;
}

.file-version-list .version-list.selected {
	background-color: #DCF0FA;
}
.file-version-list .version-list.deleted-state.selected {
	background-color: #FFF;
}

.file-version-list .version-list .deleted-state-text {
	font-style: italic;
}

/*
 * set column width
 */
.file-version-list table .version {
	width: 165px;
}

.file-version-list table .modified-date {
	width: 130px;
}

.file-version-list table .action {
	width: auto;
}
.file-version-list table tbody .action {
	width: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
	word-break: break-all;
	overflow: hidden;
	margin-top: 4px;
}

.file-version-list table .size {
	width: 76px;
}

.file-version-list .table > thead > tr > th.size , 
.file-version-list .table > tbody > tr > td.size {
	padding: 5px 0;
}

/*
 * file incon in version column
 */
.file-version-list .table td.version img {
	width: 26px;
	height: 26px;
	position: relative;
	top: -2px;
}

/*
 * manage version tool
 */
.manage-versions-tool {
	height: 29px;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	z-index: 100;
	border-top: 0;
	border-bottom: 2px solid #3773A5;
	padding: 0 5px;
	color: #808080;
	background-color: #FFF;
	text-align: right;
}

.manage-versions-tool .btn {
	background: transparent;
	border: 0;
	color: #4B4137;
	font-family: 'Montserrat', 'sans-serif';
	font-size: 12px;
	padding: 5px 5px 5px 30px;
}
.manage-versions-tool .btn:hover {
	color: #4B9BCD;
}

.manage-versions-tool .btn.preview {
	background: url('../img/file-folder-icon/icon-small-file.svg') no-repeat 2px 2px;
	background-size: 20px 20px;
}
.manage-versions-tool .btn.preview:hover {
	background: url('../img/file-folder-icon/icon-file-01.svg') no-repeat -4px -4px;
	background-size: 32px 32px;
}

.manage-versions-tool .btn.download {
	background: url('../img/operation-file-icon/file-download.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}
.manage-versions-tool .btn.download:hover {
	background: url('../img/operation-file-icon/file-download-hover.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}

/*.manage-versions-tool .btn.restore {
	background: url('../img/operation-file-icon/file-download.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}
.manage-versions-tool .btn.restore:hover {
	background: url('../img/operation-file-icon/file-download-hover.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}*/

.manage-versions-tool .btn.restore {
	padding: 4px 5px;
}
.manage-versions-tool .btn.restore i {
	font-size: 17px;
	margin-right: 6px;
	vertical-align: middle;
}

.manage-versions-tool .btn.remove {
	background: url('../img/operation-file-icon/file-remove.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}
.manage-versions-tool .btn.remove:hover {
	background: url('../img/operation-file-icon/file-remove-hover.svg') no-repeat 2px 0px;
	background-size: 25px 25px;
}

/*
 * confirm remove version
 */
.confirm-remove-version {
	width: 100%;
	height: 100%;
	background: rgba(255,255,255,0.5);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1000;
	border-radius: 10px;
}

.confirm-remove-version > div {
	position: absolute;
	bottom: 15px;
	right: 30px;
}
