/*
 *
 * Parts of this code: Copyright 2010, Sebastian Tschan
 *                     https://blueimp.net
 * 
 * Modified by Francis Otieno (Kongondo) January 2016 for the ProcessWire plug JqueryFileUpload
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */


/***************** @note: WORK IN PROGRESS *****************/

/*form#fileupload {width: 100%;}*/

div#dropzone {
    background: #D9D9D9;
    width: 100%;
    height: 250px;
    line-height: 50px;
    margin: 2em 0 2em;
    border: 0.125em dashed #A6A6A6;
    border-radius: 10px;
    text-align: center;  
    color: #6F6F6F;

}

div#dropzone h3 {
	font-size: 2.25em;
	font-weight: bold;
	margin-top: 2.5em;
}

div#dropzone.in {
    width: 97%;
    height: 200px;
    line-height: 200px;
    font-size: larger;
    margin-right: auto;
    margin-left: auto;
}


div#dropzone.in h3 {margin-top: 0;}
div#dropzone:hover {background-color: #EFF2F6; color: #000;}

div#dropzone.fade {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
    opacity: 1;
}

/* progress bars */

div.fade {
  opacity: 0;
  -webkit-transition: opacity .15s linear;
  -o-transition: opacity .15s linear;
  transition: opacity .15s linear;

}

/* action buttons/input */
input[type=checkbox].toggle {width:20px !important; height:20px !important;}
input[type=checkbox]#sel_all_files {width:20px;	height:20px; float: left;}

div.files_container button.files_upload, div.files_container span#add_files, div.files_container table.files_list button {
  box-shadow: none !important;
  text-shadow: none !important;
  color: #FFF;
  font-weight: normal;
  font-size: 1em !important;
  border-radius: 3px;
  transition: all 120ms ease-in;
  display: inline-block;
  position: relative;
  padding: 0.5em;
  line-height: normal;
  margin-right: .1em;
  margin-bottom: 5px;
  cursor: pointer;
  vertical-align: middle;
  text-align: center;
  overflow: visible;
  /*font-family: "Helvetica Neue",Arial,sans-serif;*/
  border: none;
}

div.files_container button:focus {outline: 0;}

div.files_container button.files_upload span {
	display: block;
	line-height: normal;
	text-shadow: none !important;
	font-size: 1em !important;
	position: relative;
}
div.files_container {
  position: absolute;
  right: 0;
  top: 0;
}
div.files_container span#add_files {
  padding: 0;
  position: absolute;
  overflow: hidden;
  display: block;
  height: 40px;
  width: 40px;
  right: 0;
  top: 4px;
  box-sizing: border-box;
}
div.files_container span#add_files:before {
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\e90e";
  color: rgba(0,0,0,0.2);
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 24px;
  transform: translate3d(-50%,-50%,0);
  /*opacity: 0;
  transition: opacity 300ms ease;*/
}
div.files_container span#add_files:hover:before {
  color: #666;
}
div.files_container span#add_files span {
  display: none;
}

/*@reno theme tweak*/
div.files_container div.action-buttons-wrapper-Reno button{padding: 0; height: 2.75em;}
div.files_container div.action-buttons-wrapper-Reno span{padding: 0.75em !important;}

/*div.files_container div.action-buttons-wrapper-Reno input[type=checkbox].toggle {margin-top: ;}*/

div.files_container span#add_files input[type=file] {
	position: absolute;
	top: 0;
	right: 0;
	margin: 0;
	opacity: 0;
	-ms-filter: 'alpha(opacity=0)';
	font-size: 200px;
	direction: ltr;
	cursor: pointer;

  width: auto;
  height: auto;
  /*opacity: 1;*/
  overflow: initial;
  z-index: inherit;
  outline: none;

}
div.files_container button.start {background-color: #428BCA; display: none}
div.files_container button.start:hover {background-color: #3173AE;}
div.files_container button.cancel {background-color: #F0AD4E; display: none}
div.files_container button.cancel:hover {background-color: #DF8813;}
div.files_container button.delete {background-color: #D9534F;}
div.files_container button.delete:hover {background-color: #B62B27;}
div.files_container table.files_list button {margin-right: 0.25em; padding: 0.3em;}

/* container div */
div.files_container .text-danger {color: #A94442;}
div.files_container p {margin: 0 0 10px;}


/* table showing files list */
table.files_list {
	width: 100%;
	max-width: 100%;
	margin-bottom: 20px;
	background-color: transparent;
	border-spacing: 0;
	border-collapse: collapse;
}

table.files_list .fade.in, #present .template-upload.fade.in, #present .template-download.fade.in {opacity: 1;}
table.files_listtr.fade {transition: opacity .15s linear;}

table.table-striped>tbody>tr:nth-child(odd)>td, 
table.table-striped>tbody>tr:nth-child(odd)>th {
    background-color: #f9f9f9;
}

table.table>thead>tr>th, 
table.table>tbody>tr>th, 
table.table>tfoot>tr>th, 
table.table>thead>tr>td, 
table.table>tbody>tr>td, 
table.table>tfoot>tr>td {
    padding: 8px;
    line-height: 1.42857143;
    vertical-align: top;
    border-top: 1px solid #ddd;
}

table.files_list a {color: #428BCA; text-decoration: none;}
table.files_list a:hover {color: #225079; text-decoration: underline;}




/********* @note/@todo: .progress still not working properly *********/

.fileupload-progress {
  position: relative;
  display: none;
}
.progress {
    background-color: rgba(255,255,255,0);
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

progress.active .progress-bar, .progress-bar.active {
  background: rgba(255,255,255,0.8);

  background: #70d2c5;
  background: rgb(74,184,211);
  background: -moz-linear-gradient(-45deg, rgba(74,184,211,1) 0%, rgba(91,205,212,1) 33%, rgba(209,233,131,1) 100%);
  background: -webkit-linear-gradient(-45deg, rgba(74,184,211,1) 0%,rgba(91,205,212,1) 33%,rgba(209,233,131,1) 100%);
  background: linear-gradient(135deg, rgba(74,184,211,1) 0%,rgba(91,205,212,1) 33%,rgba(209,233,131,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4ab8d3', endColorstr='#d1e983',GradientType=1 );
  background-size: 300% 100%;
  background-position: 60% 0;
    /*-webkit-animation: progress-bar-stripes 2s linear infinite;
    -o-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 2s linear infinite;*/
}
.progress-striped .progress-bar-success {
   
/*background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: -o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
*/

}

.progress.active .progress-bar, .progress-bar.active {
    background: rgba(255,255,255,0.8);

    background: #70d2c5;
    background: rgb(74,184,211);
    background: -moz-linear-gradient(-45deg, rgba(74,184,211,1) 0%, rgba(91,205,212,1) 33%, rgba(209,233,131,1) 100%);
    background: -webkit-linear-gradient(-45deg, rgba(74,184,211,1) 0%,rgba(91,205,212,1) 33%,rgba(209,233,131,1) 100%);
    background: linear-gradient(135deg, rgba(74,184,211,1) 0%,rgba(91,205,212,1) 33%,rgba(209,233,131,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4ab8d3', endColorstr='#d1e983',GradientType=1 );
    background-size: 300% 100%;
    background-position: 60% 0;
    /*-webkit-animation: progress-bar-stripes 2s linear infinite;
    -o-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 2s linear infinite;*/
}

/*.progress-striped .progress-bar-success {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
}
.progress-striped .progress-bar-success {
    background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: -o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
}*/
/*.progress-striped .progress-bar, .progress-bar-striped {
    background-image: -webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: -o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
    -webkit-background-size: 40px 40px;
    background-size: 40px 40px;
}*/


.progress-bar {
    float: left;
    width: 0;
    height: 100%;
    font-size: 12px;
    line-height: 20px;
    color: #fff;
    text-align: center;
    background-color: #428bca;
    -webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.15);
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
}


.progress-bar-success {
    background-color: #5cb85c;
}
.progress-bar {
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15) inset;
    color: #fff;
    float: left;
    font-size: 12px;
    height: 100%;
    line-height: 20px;
    text-align: center;
    transition: width 0.6s ease 0s;
}

p {
    margin: 0 0 10px;
}

/*--------------------------------*/

@charset "UTF-8";
/*
 * jQuery File Upload Plugin CSS
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2013, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

/* Fixes for IE < 8 */
@media screen\9 {
  .fileinput-button input {
    filter: alpha(opacity=0);
    font-size: 100%;
    height: 100%;
  }
}



/*-------------------------------*/

@charset "UTF-8";
/*
 * jQuery File Upload UI Plugin CSS
 * https://github.com/blueimp/jQuery-File-Upload
 *
 * Copyright 2010, Sebastian Tschan
 * https://blueimp.net
 *
 * Licensed under the MIT license:
 * http://www.opensource.org/licenses/MIT
 */

.fileupload-buttonbar .toggle {margin-bottom: 5px;}
.progress-bar,
.progress-animated .bar {
  /*background: url("../img/progressbar.gif") !important;
  filter: none;*/
}
.fileupload-process {float: right; display: none;}
.fileupload-processing .fileupload-process,
.files .processing .preview {
  display: block;
  width: 32px;
  height: 32px;
  background: url("../img/loading.gif") center no-repeat;
  background-size: contain;
}
.files audio,
.files video {
  max-width: 300px;
}
#present .template-upload, #present .template-download {
  position: relative;
  float: left;
  margin: 0 10px 10px 0;
  border-radius: 4px;
}
#present .template-upload .preview, #present .template-download .preview {
  width: 100px;
  height: 75px;
  /*background: rgba(0,0,0,0.1);*/
  display: block;
  border-radius: 4px;
  box-shadow: 0px 0px 0px 1px rgba(0,0,0,0.1);
}
#present .template-download .preview:before {
  font-family: 'icomoon' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: "\e5ca";
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 32px;
  transform: translate3d(-50%,-50%,0);
}
#present .template-upload .preview canvas {
  border-radius: 4px;
}
#present .template-upload .preview_ov, #present .template-download .preview_ov {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
#present .template-upload .preview_ov .error, #present .template-download .preview_ov .error {
  width: 100%;
  padding: 8px;
  text-align: center;
  display: block;
  box-sizing: border-box;
  font-size: 0.9rem;
}
#present button.cancel {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  border-radius: 4px;
  transition: opacity 300ms ease;
}
#present button.cancel:hover {
  opacity: 1;
  transition: opacity 100ms ease;
}
#present button.cancel .icon {
  color: #fff;
  font-size: 36px;
  background: rgba(255,255,255,0.4);
  border-radius: 100px;
  width: 50px;
  height: 50px;
  display: block;
  line-height: 48px;
  text-align: center;
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%,-50%) scale(0.9);
  transition: transform 300ms ease;
}
#present button.cancel:hover .icon {
  transition: transform 100ms ease;
  transform: translate(-50%,-50%) scale(1);
}
#present .name, #present .size, #present button.start {
  opacity: 0;
  position: absolute;
  visibility: hidden;
  height: 0px;
  width: 0px;
  overflow: hidden;
}
@media (max-width: 767px) {
  .fileupload-buttonbar .toggle,
  .files .toggle,
  .files .btn span {
    display: none;
  }
  .files .name {
    width: 80px;
    word-wrap: break-word;
  }
  .files audio,
  .files video {
    max-width: 80px;
  }
  .files img,
  .files canvas {
    max-width: 100%;
  }
}

@media only screen and (max-width: 900px) {
    #present button.cancel {
      opacity: 1;
      background: transparent;
    }
    #present button.cancel .icon {
      color: #fff;
      font-size: 32px;
      background: rgba(150,150,150,0.8);
      border: 2px solid #fff;
      border-radius: 100px;
      width: 40px;
      height: 40px;
      display: block;
      line-height: 38px;
      text-align: center;
      top: 50%;
      left: 50%;
      position: absolute;
      transform: translate(-50%,-50%) scale(1);
    }
