/*################################################################################################################################
 * Utilities
 *################################################################################################################################*/
 
.vertical-center {
	position: relative;
	top: 50%;
	-webkit-transform: translateY(-50%);
		-ms-transform: translateY(-50%);
			transform: translateY(-50%);
}

.red {
	background-color: red;
}

/*################################################################################################################################
 * Global & Responsiveness
 *################################################################################################################################*/
 
html,
body {
    height: 100%;
}

body {
    padding-top: 50px;
}

.page-title {
	margin-top: 0px;
	padding-top: 0px;
	padding-bottom: 3%;
	font-weight: bold;
}

.page-sub-title {
	font-weight: bold;
	color: #777;
	margin-bottom: 40px;
}

.side-bar {
	text-align: justify;
}

.page-container {
	margin-top: 3%;
}

textarea {
	width: 100%;
	max-width: 100%;
}

#success-messages, #error-messages {
	margin: 0px auto;
	margin-top: 20px;
	max-width: 1100px;
	text-align: right;
}

.modal.fade {
   -webkit-transition: opacity 0.05s linear;
      -moz-transition: opacity 0.05s linear;
       -ms-transition: opacity 0.05s linear;
        -o-transition: opacity 0.05s linear;
           transition: opacity 0.05s linear;
}

@media(max-width:767px) {
	header.carousel .carousel {
        height: 70%;
    }
	
	.img-portfolio {
        margin-bottom: 15px;
    }
}

/*################################################################################################################################
 * Navbar
 *################################################################################################################################*/
 
.navbar a {
	font-weight: bold;
	/* text-transform: uppercase; */
}

#navbar #login-form {
	padding: 7px;
}

#navbar #login-form  > div {
	margin-bottom: 7px;
}

#navbar #search-form {
	width: 180px;
	max-width: 400px;
}

/* mobile navbar only */
@media(max-width: 767px) {
	#navbar #search-form {
		width: 90%;
		margin: 0px auto;
	}
}

/*################################################################################################################################
 * Header
 *################################################################################################################################*/
 
header#intro {
    height: 55%;
	min-height: 410px;
	background-color: #fff;
	background-image: url('../img/background.jpg');
	background-position: top center;
	background-size: cover;
	background-repeat: no-repeat;
}

header#intro .header-title {
	border-top: 4px solid #333;
}

header#intro .header-title  h1 {
	font-size: 800%;
	font-weight: bold;
}

header#intro .header-title  p {
	font-size: 250%;
	font-weight: bold;
}

/*################################################################################################################################
 * Portfolio
 *################################################################################################################################*/
 
.img-portfolio {
    margin-bottom: 30px;
}

.img-hover:hover {
    opacity: 0.8;
}

/*################################################################################################################################
 * Registration Page
 *################################################################################################################################*/
 
#registration-row {
	margin-bottom: 3%;
}

/*################################################################################################################################
 * Product Registration Page
 *################################################################################################################################*/

#image-preview {
    width: 120px;
    height: 80px;
    background-position: center center;
    background-size: cover;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, .3);
    display: none;
	margin-bottom: 15px;
}

/*################################################################################################################################
 * Product Page
 *################################################################################################################################*/

.img-small {
	min-height: 70px;
	height: 70px;
} 

#links {
	/* text-align: center; */
}

#links a {
	text-decoration: none;
}

#links a:first-of-type img{
	display: block;
	max-width: 100%;
	height: auto;
	margin: none;
	margin-bottom: 20px;
}

.product-info h1 {
	font-weight: bold;
}

.product-info h4 {
	border-bottom: 2px dotted #CCC;
	padding-bottom: 24px;
}

.product-info h3 {
	font-size: 18px;
}

.product-info h3:last-of-type {
	margin-bottom: 20px;
}

.product-info p {
	margin-top: 25px;
}

.product-info .product-info-details {
	margin-top: 25px;
}

.product-info a:hover  {
	text-decoration: none;
}

.product-info .btn-group ul li form button {
	border: none;
}

.product-info a button {
	margin-right: 12px;
	margin-left: 12px;
}

.product-description {
	margin-top: 25px;
	margin-bottom: 90px;
}

.product-description .tab-content {
	padding-top: 15px;
}

@media(max-width: 320px) {
	.product-info button,
	.product-info a button {
		display: block;
		margin: 10px 0px 0px 0px;
	}
}

/*################################################################################################################################
 * All Products Page
 *################################################################################################################################*/

#products-search {
	margin-bottom: 40px;
}

#products-search .search-clear {
	cursor: pointer;
	margin-left: 55%;
	margin-top: 11%;
	color: #d9534f;
}

#products-list  tbody td img {
	max-width: 180px;
	max-height: 80px;	
	display: block;
	margin: 0px auto;
}

#products-list .product {
	cursor: pointer;
}

#load-products {
	padding: 9px;
	padding-left: 35px;
	padding-right: 35px;
}

/*################################################################################################################################
 * Search Page
 *################################################################################################################################*/
 
#search-list .product {
	margin-bottom: 25px;
	padding-top: 15px;
	border-top: 2px dotted #ccc;
}

#search-list .product a {
	text-decoration: none;
	color: #333;
}

#search-list .product:hover {
	background-color: #f8f8f8;
}

#search-list .product img {
	max-width: 100%;
}

/*################################################################################################################################
 * Planning Page
 *################################################################################################################################*/

#pvp-selection {
	margin-bottom: 35px;
}

#pvp-selection > div {
	text-align: center;
}

#pvp-selection .radio-inline {
	font-size: 21px;
	line-height: 20px;
	font-weight: bold;
}

#plan-table-opts {
	margin-top: 45px;
}

#plan-table-opts .form-group {
	display: inline-block;
}

#plan-table-opts .form-group .glyphicon-refresh {
	color: #31B0D5;
}

#plan-table-opts #ref-search, 
#plan-table-opts #add-product-line {
	width: 220px;
}

#plan-table-opts #ref-autocomplete + ul + .glyphicon {
	display: none;
}

#plan-table-opts #ref-autocomplete.loading + ul + .glyphicon {
	display: inherit;	
}

#plan-table th {
	line-height: 34px;
}

#plan-table th:first-child,
#plan-table th:last-child {
	text-align: center;
}

#plan-table tbody td:not(:first-child) {
	line-height: 38px;
}

#plan-table tbody td img {
	max-width: 180px;
	max-height: 80px;	
	display: block;
	margin: 0px auto;
}

#plan-table tbody td input.product-qtd {
	min-width: 50px;
	max-width: 70px;
}

#plan-table tbody td input.product-price {
	min-width: 70px;
	max-width: 100px;
}

#plan-table .dropdown ul li a {
	padding-top: 8px;
	padding-bottom: 8px;
}

#plan-totals {
	padding-top: 10px;
	border-top: 2px solid #ddd;
}
 
#product-picker-modal .modal-body {
	height: 600px;
	overflow-y: scroll;
}
 
#product-picker-modal .product-in-modal td img {
	max-width: 80px;
	max-height: 60px;
	display: block;
	margin: 0px auto;
}

#product-picker-modal .product-in-modal {
	cursor: pointer;
}

#product-picker-modal .modal-header .search-clear {
	cursor: pointer;
	margin-left: 55%;
	margin-top: 50%;
	color: #d9534f;
}

#product-picker-modal .modal-header .close {
	margin-top: 13%;
}

#product-picker-modal #load-products {
	
}

#add-product-line {
	margin-bottom: 17px;
}

.spinner {
	display: inline-block;
	opacity: 0;
	max-width: 0;

	-webkit-transition: opacity 0.25s, max-width 0.45s; 
	-moz-transition: opacity 0.25s, max-width 0.45s;
	-o-transition: opacity 0.25s, max-width 0.45s;
	transition: opacity 0.25s, max-width 0.45s; 
}

.has-spinner {
	display: none;
}

.has-spinner.active {
	cursor: progress;
	display: inline;
}

.has-spinner.active .spinner {
	opacity: 1;
	max-width: 50px;
}


/*################################################################################################################################
 * Admin Pannel
 *################################################################################################################################*/
 
#users-list-table {
	position: relative;
	margin-bottom: 50px;
}

#users-list-table thead th,
#users-list-table tbody td {
	text-align: center;
}

#users-list-table .update-alert {
	opacity: 0;
	margin-top: 10px;
	margin-left: 10px;
	display: inline-block;
}

/*################################################################################################################################
 * Footer
 *################################################################################################################################*/

footer {
    margin: 50px 0;
}

/*################################################################################################################################
 * Print
 *################################################################################################################################*/

@media print {
	.visible-print {
		display: inline;
	}
	
	.hidden-print {
		display: none;
	}
	
	body {
		padding-top: 0px;
	}
	
	.page-container {
		margin-top: 0px;
	}
	
	.page-title {
		font-size: 150%;
	}
	
	#error-messages, #success-messages {
		margin: 0px;
	}
	
	footer {
		display: none;
	}	

	#pvp-selection {
		display: none;
	}
	
	#plan-table tbody td {
		font-size: 92%;
		padding-top: 4px;
		padding-bottom: 4px;
	}	
	
	#plan-table tbody td:not(:first-child) {
		line-height: normal;
	}
	
	#plan-table tbody td input {
		display: none;
	}
	
	#plan-table, #plan-table th, #plan-table td {
		border: 1px solid #ccc;
	}
	
	#plan-table thead th:first-child,
	#plan-table tbody td:first-child,
	#plan-table thead th:last-child,
	#plan-table tbody td:last-child,
	#plan-table thead th:nth-child(4),
	#plan-table tbody td:nth-child(4),
	#plan-table thead th:nth-child(5),
	#plan-table tbody td:nth-child(5) {
		display: none;
	}
	
	#plan-table-opts {
		display: none;
	}
}