/* ************************************************************************
* File: upload.css
*
* Purpose: File uploadt css
*
* This file is part of a software by Jens Gienau.
* (c)1999 - 2025 Jens Gienau / www.gienau.com / mail@gienau.com
************************************************************************ */

/* ········································································
 Preview of uploades data
········································································ */

.file-command-container {
  position: relative;
  display: inline-block;
  padding: 0;
  background-color: #333;
  overflow: hidden;
}
.file-command-container img {
  display: block;
  width:100%;
}
.file-command-container > span.command {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	color: #fff;
	text-align: right;
	background-color: rgba(0, 0, 0, 0.6);
	padding:.25rem .5rem;
}

.file-command-container > span.legend {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	color: #fff;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.6);
	padding:.05rem .5rem;
	font-size: .8rem
}

.file-command-container span i {
	cursor: pointer;
}

/* ········································································
Form upload / preview
········································································ */

form .form-group.upload .container-border .upload-input-line span label {
	display: block;
	padding: 8px 12px;
	cursor: pointer;
	background-color: #fff;
	font-size: 1.1rem;
	width:100%;
	overflow: hidden;
	white-space: nowrap;
	margin-bottom: 0;
	background-image: url('./../img/icon-upload-cloud.png');
	background-size: 30px 30px;
	background-repeat: no-repeat;
	background-position: 6px;
	border: 1px solid #B8B8B8;
	padding:.4rem;
	color: #333;
	line-height: 1.3rem;
	position: relative;
}

form .form-group.upload .trash {
	color: #333;
	position: absolute;
	right: 6px;
	top: 6px;
	padding-left:1rem;
	cursor: pointer;
}
form .form-group.upload .trash:hover {
	color: #e32;
}

form .form-group.upload .container-border .upload-input-line input[type="file"] {
  position: absolute;
  z-index: -1;
  top: 6px;
  left: 0;
  font-size: 1rem;
  color: rgb(153,153,153);
}

form .form-group.upload input[type="hidden"] {
	border:none;
}

form .form-group.upload .container-border .upload-input-line > span {
	position: relative;
	display: block;
}