// RedmineX Theme
// Copyright 2020 RedmineX
// For license, see https://www.projectino.cz
// Created by Michael Staněk
// Created without vendor prefixes, "AutoPrefixed" by PrePros v5 (https://prepros.io)
 
// Media Queries to Copy / Paste:
 
// 380px
// @include media-breakpoint-up(xxs) {}

// 480px
// @include media-breakpoint-up(xs) {}

// 576px
// @include media-breakpoint-up(sm) {}

// 768px
// @include media-breakpoint-up(md) {}

// 899px
// @include media-breakpoint-up(redmine-mobile) {}

// 992px
// @include media-breakpoint-up(lg) {}

// 1200px
// @include media-breakpoint-up(xl) {}

// 1500px
// @include media-breakpoint-up(hd) {}

// 1900px
// @include media-breakpoint-up(2k) {}

/* ==========================================================================
   Redmine Invoices
   ========================================================================== */

.controller-invoices {	
	
	.icon-contact {
		background-position: center;
	}
	
	#avatar img.gravatar {
		vertical-align: text-top;
	}
	
	.attributes {
		display: block !important;
		width: auto !important;
		clear: both;
		padding: 1rem;
		margin-top: 1rem;
		margin-bottom: 1rem;
		background: lighten($body-bg, 1%);		 
	}
	
	fieldset.attributes {
		
		@include media-breakpoint-up(xs) {
			margin-left: 121px !important;
		}
		
		@include media-breakpoint-up(md) {
			margin-left: 171px !important;
		}
	}
	
	label[for=invoice_is_recurring] {
		
		@include media-breakpoint-up(xs) {
			margin-left: -2rem !important;
		}

	}
	
	#sidebar div.contact {
		@include rounded;
		background: $query-form-bg;
		border: 1px solid $border-color-light;
		margin-bottom: 1rem;
	}
	
	.select2-container {
		max-width: $input-max-width-lg;
	}
	
	#select2-invoice_contact_id-container {
		padding-left: 1.5rem;
	}
	
	#show_discount {
		top: -1px !important;
	}
	
	.invoice-lines {
		
		.description {
			max-width: 50%;
		}
		
		&.form tr.line.fields td {
			vertical-align: top;
		}
		
		&.form td#total_amount {
			border: none;
		}
		
		.line-total {
			border-top: 1px solid $border-color-light;
		}
		
		.total-data.total {
			font-size: $font-size-xl;
		}
	}
}

#deal_contact_id_add_link,
#invoice_contact_id_add_link {
	@include rounded;
    width: 2rem;
    height: auto;
    text-align: center;
	display: inline-block !important;
	position: relative;
	top: 2px;
	left: 2px;
	padding: 0;
	
	img {
		display: none;
	}
}

#settings_invoices_email_template {
	display: block;
}

.projectino-addtitional-fields input.link_cf {
	width: 100% !important;
}
