
/* Cargo components CSS
	Author: joakim@laidbacksolutions.se
*/


.cc-grid {
	display: flex;
	flex: auto;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: stretch;
}

.cc-grid-row {
	display: flex;
	flex: auto;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
}

.cc-grid-cell {
	display: flex;
	flex: auto;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center; 
	align-items: center;
}

.cc-carousel {
	display: flex;
	align-items: center;
	flex-direction: column;
}

.cc-carousel-indicator-container {
	display: flex;
	width: 100%;       
	justify-content: center;	
	align-items: center;
}

.cc-carousel-indicator {
	width: 0.8rem;
	height: 0.8rem;
	border-radius: 50%;
	background-color: #fefefe;
	border-style: solid;
	border-color: #a0a0a0;
	cursor: pointer;
	margin: 2px;
}
.cc-carousel-indicator.selected {
	background-color: #a0a0a0;
	cursor: none;
}

.cc-carousel-control-prev-container {
	display: flex;
	flex-grow: 1;
	justify-content: flex-end;
	padding-right: 20px;
	color: #a0a0a0;
}

.cc-carousel-control-prev-content {
	cursor: pointer;
	display: flex;
	justify-content: center;
}

.cc-carousel-control-prev-content::after {
	content: "❮";
}

.cc-carousel-control-next-container {
	display: flex;
	flex-grow: 1;
	justify-content: flex-start;
	padding-left: 20px;
	color: #a0a0a0;
}

.cc-carousel-control-next-content {
	cursor: pointer;
	display: flex;
	justify-content: center;
}

.cc-carousel-control-next-content::after {
	content: "❯";
}

.cc-carousel-text-above-container, .cc-carousel-text-below-container {
	display: grid;
  	grid-template-areas: "inner-div";
}	

.cc-carousel-text-above, .cc-carousel-text-below {
	grid-area: inner-div;
}

.cc-carousel-scene {
	position: relative;
    perspective: 1000px;  
    overflow: hidden;
}

.cc-carousel-scene-container {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.4s;
}


.cc-carousel-cell {
	position: absolute;
	width: 100%;
  	height: 100%;
  	background-color: white;
  	transition: transform 0.4s;
  	display: flex;
  	align-items: center;
  	justify-content: center;
}

.cc-carousel-cell-data {
	max-width: 100%;
	max-height: 100%;
	margin-left: auto;
	margin-right: auto;	
	opacity: 0.6;
  	transition: opacity 1s;
}
.cc-carousel-cell-data.selected {
	opacity: 1.0;
}

.cc-for-each-job {
	display: flex;
	flex: auto 1 1;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
}

.cc-for-each-job-cell {
	display: flex;
	flex: auto 1 1;
	flex-wrap: wrap;
	flex-direction: row; 
	justify-content: center; 
	align-items: center;
	overflow: auto;	
}

.cc-switch-label, .cc-checkbox-label, .cc-radio-label {
	padding-top: 0.5rem;
	cursor: pointer;
}

.cc-upload {
	display: flex;
	flex-direction: column; 
}

.cc-upload-status-icon.success {
	color: rgba(51,204,51,1.0);
}

.cc-upload-status-icon.warning {
	color: rgba(255,153,51,1.0);
}

.cc-upload-status-icon.error {
	color: rgba(255,0,0,1.0);
}

.cc-upload-drop {
	display: flex;
	align-items: center;	
	justify-content: center;
	padding: 0.4rem;
	border-radius: 0.5rem;
	background-color: #fafafa;
	cursor: pointer;
	transition: background-color 0.5s;
}

.cc-upload-drop:hover {
	background-color: #f0f0f0;
}

.cc-upload-file-container {
	border-radius: 0.5rem;
	border-color: #888;
	border-width: 0.5px;
	border-style: solid;
	background-color: #f0f0f0;
	color: #000000;
	cursor: default;
	margin-top: 0.7rem;
}

.cc-upload-file-item {
	display: flex;
	flex-wrap: nowrap;
	flex-direction: row;
	width: 100%;
}


.cc-upload-delete-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}
.cc-upload-file-item-text-container {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	flex: 1 1 auto;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	margin-right: 1rem;
}

.cc-upload-file-item-text-filename {
	line-height: 1;
}

.cc-upload-file-item-text-filesize {
	font-size: 0.875rem;
	line-height: 1.5;
	color: rgba(0,0,0,0.54);
}

.cc-upload-button-container {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
}

.cc-upload-file-item-status-container {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

.cc-upload-file-item-thumb-container {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: flex-start;
}

 .cc-upload-file-item-thumb-outer {
	display: inline-flex;
	border-radius: 2px;
	border: 0.5px solid #eaeaea;
	margin-bottom: 2px;
	margin-right: 2px;
	padding: 4px;
	box-sizing: border-box;
}

.cc-upload-file-item-thumb-inner {
	display: flex;
	min-width: 0;
	overflow: hidden;
}

.cc-upload-file-item-thumb-image {
	display: block;
	width: auto;
	height: 100%;
}

.cc-upload-file-item-progress {
	border-radius: 1rem;
	background: rgba(255,255,255,0.74);
	position: absolute;
	top: 50%;
	transform: translate(0%,-50%);
}

.cc-upload-file-item-info-title {
	padding: .5rem .75rem;
	margin-top: .5rem;
	margin-bottom: 0;
	font-size: 1rem;
	background-color: #f7f7f7;
	border-bottom: 1px solid #ebebeb;
	border-top-left-radius: calc(.3rem - 1px);
	border-top-right-radius: calc(.3rem - 1px);       
}

.cc-upload-file-item-info-icon {
	margin-right: 1rem;
}

.cc-upload-file-item-info-content {
	padding: .5rem .75rem;
	color: #212529;
}