@use "sass:meta";

/*!
 * Jetpack CRM
 * https://jetpackcrm.com
 */
@use "@automattic/color-studio/dist/color-variables" as *;

// The invoice preview CSS
.previnvzbs {
	background: #f5f5f5;
}

.post-type-zerobs_customer {

	.zbs-hide-add {
		display: none;
	}
}

.zbs-invoice-preview {

	.biz-up {
		margin-top: -110px;
		position: absolute;
	}

	.zbs-invoice-topper {
		font-size: 15px;
		font-weight: 100;
		text-align: right;

		.form-table {
			float: right;
		}
	}

	.container {
		max-width: 1170px;
		margin-left: auto;
		margin-right: auto;
		margin-top: 20px;
		margin-bottom: 10px;
		border: 1px solid #ccc;
		padding: 10px;
		background: #fff;
		font-size: 13px;
	}

	#zbs-business-info-wrapper {
		margin-top: -85px;
	}

	.cen {
		text-align: center;
	}

	.ri {
		text-align: right;
	}

	.tapad {
		padding: 0 0 0 7px;
	}

	thead {
		border: 1px solid #ccc;
		background: #f5f5f5;

	}

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

	.bottom-row {
		height: 30px;
	}
}

//this is for the new invoicing design
.post-type-zerobs_invoice {

	.clear {
		clear: both;
	}


	#zbs_invoice_preview {
		text-decoration: none;
	}

	#zbs_top_wrapper {
		position: relative;

		.zbs-invoice-topper {
			width: 50%;
			float: right;

			input,
			select {
				width: 90%;
				float: left;
			}

			th {
				vertical-align: middle;
				text-align: right;
			}
		}
	}

	#zbs_invoice_send_test2:focus {
		outline: 0 !important;
	}

	#billing-to {
		width: 50%;
		float: left;

		th {
			vertical-align: middle;
			font-size: 18px;
			font-weight: 100;
		}
	}

	#assign-to {
		width: 50%;
		float: right;

		.zbs-controls {
			float: left;
		}

		select {
			width: 90%;
		}

		th {
			vertical-align: middle;
			font-size: 18px;
			font-weight: 100;
		}
	}

	#zbs_invoice_alerts {
		position: absolute;
		margin-top: -64px;
		width: 100%;
		margin-left: -13px;

		#zbs_success {
			display: none;
			background: #008000;
			padding: 10px;
			color: #fff;
			font-weight: 100;
			font-size: 14px;

			.fa {
				color: #00a700;
				font-size: 20px;
				margin-right: 10px;
			}
		}
	}

	hr {
		margin-top: 25px;
		margin-bottom: 20px;
	}

	#zbs-business-info-wrapper {
		width: 30%;
		margin-top: -35px;

		.business-info-toggle {
			cursor: pointer;
			font-size: 20px;
			font-weight: 100;

			.fa {
				color: #428bca;
				margin-right: 10px;
				font-size: 20px;
				font-weight: 100;
			}
		}

		.business-info {
			display: block;
			margin-left: -20px;

			.zbs-table {
				margin-top: 9px;
				font-size: 14px;
				font-weight: 100;
				margin-left: 33px;

				.top-pad {

					td {
						padding-top: 20px;
					}
				}

				td {
					border: 0;
					padding: 0;
				}
			}

			.edit-or-add {
				font-weight: 100;
				margin-left: 33px;
			}
		}

	}

	#zbs-invoice-customiser {
		padding: 15px 10px 15px 10px;
		background: #f5f5f5;
		margin-left: -10px;
		margin-right: -10px;
		margin-top: -6px;
		border-bottom: 1px solid #eee;

		.header {
			float: left;
			font-size: 18px;
			line-height: 25px;
			margin-right: 10px;
			font-weight: 100;
		}
	}

	.top-row {

		.row-amount {
			padding-top: 10px;
		}
	}

	#partials {
		margin-top: 20px;
	}

	#invoice_totals,
	#partials {
		width: 100%;
		border-top: 2px solid #ccc;
		border-right: 2px solid #ccc;

		.zbs_grand_total {

			.bord-l {
				border-left: 2px solid #ccc;
			}

			.bord {
				background: #f5f5f5;
				color: #000;
				font-weight: 800;
				border-bottom: 2px solid #ccc;
			}
		}

		.tax_total {
			display: none;
		}

		._1 {
			display: block;
		}

		tr {
			height: 35px;
		}

		.hide {
			display: none;
		}

		.bord {

			input {
				text-align: right;
				float: right;
				box-shadow: none;
			}
		}

		.bord-l {
			text-align: right;
			border-left: 2px solid #ccc !important;
		}

		td.bord {
			padding: 5px;
			border: 1px solid #ccc;
		}

		.row-amount {
			color: #000;
			font-weight: 400;
			height: 20px;
			text-align: right;
			border-right: 2px solid #ccc !important;
		}
	}

	#zbs-invoice-items {

		.zbs-item-block {
			position: relative;

			tr {
				width: 90%;
			}

			textarea {
				width: 100%;
				height: 30px;
				border: 0;
				box-shadow: none;
				padding: 0;
				margin: 0;
				vertical-align: middle;
				margin-top: 10px;
			}

			.tapad {
				padding: 0 0 0 10px;
			}

			input[type="number"] {
				height: 28px;
				line-height: 1;
				box-shadow: none;
				text-align: center;
			}
		}

		.row-amount {
			color: #000;
			font-weight: 400;
			text-align: right;
		}

		.zbs-row-actions {
			cursor: pointer;
			border: 1px solid #ccc;
			color: #999;
			font-size: 13px;
			font-weight: 100;
			text-align: center;
		}

		.padding {
			height: 15px;
		}

		#tblock1 {

			.remove-row {
				display: none;
			}
		}

		.zbs-item-name {
			width: 100%;
			height: 28px;
			border: 0;
			box-shadow: none;
		}

		.bottom-row,
		.row-amount {
			border-bottom: 1px solid #ccc;
		}
	}

	#zbs_invoice_actions {
		padding: 15px 10px 15px 10px;
		background: #f5f5f5;
		margin-left: -10px;
		margin-right: -10px;
		margin-top: -10px;
		border-bottom: 1px solid #eee;
		text-align: right;
		height: 38px;
		margin-bottom: 20px;

		.zbs-invoice-status {
			margin-top: -2px;
			float: left;
			padding: 10px;

			.draft {
				background-color: #ddd;
				text-transform: uppercase;
				color: #fff;
				padding: 7px;
				font-weight: 900;
				font-size: 25px;
			}

			.unpaid {
				background-color: #ffd800;
				text-transform: uppercase;
				color: #fff;
				padding: 7px;
				font-weight: 900;
				font-size: 25px;
			}

			.paid {
				background-color: #008000;
				text-transform: uppercase;
				color: #fff;
				padding: 7px;
				font-weight: 900;
				font-size: 25px;
			}
		}

		button {
			margin-right: 2px;
		}

		.btn-primary {
			color: #fff;
			background-color: #428bca;
			border: 1px solid #428bca;
			border-width: 0;
			font-size: 15px;
			padding: 7px;
			font-weight: 300;
			border-radius: 4px;
		}

		.btn-secondary {
			background: #ddd;
			border: 1px solid #ddd;
			border-width: 0;
			font-size: 15px;
			padding: 7px;
			font-weight: 300;
			border-radius: 4px;
		}
	}

	#zbs_invoice_logos {
		float: left;
		width: 30%;

		.hide {
			display: none !important;
		}

		.show {
			display: block !important;
		}
	}

	#submitdiv {
		display: none !important;
	}

	#postbox-container-2 {
		max-width: 1170px;
		margin-left: auto;
		margin-right: auto;
	}

	.postbox-container {
		float: none;
	}

	.zbs-memo-box {
		width: 50%;
		display: none;
	}

	.zbs-plus {
		font-size: 21px;
		font-weight: 100;
		color: #428bca;
	}

	.zbs-memo-ta {
		width: 40%;
	}

	.zbs-memo-hide {
		font-size: 12px;
		font-weight: 100;
		color: #428bca;
		cursor: pointer;
	}

	.zbs-memo-hide:hover {
		text-decoration: underline;
	}

	.zbs-add-memo-trigger {
		cursor: pointer;
	}

	.zbs-italic {
		font-style: italic;
		font-weight: 100;
	}

	.zbs-file-types {
		text-transform: uppercase;
		font-weight: 900;
	}

	.wh-logo-set {
		width: 100%;
		position: relative;
		display: none;
		margin-top: 20px;
		margin-bottom: 20px;
		margin-left: 12px;

		.zbs-remove,
		.zbs-update {
			cursor: pointer;
		}

		img {
			max-width: 80%;
		}

		.zbs-logo-options {
			display: none;
			position: absolute;
			top: 0;
			right: -15%;
			font-size: 14px;
		}
	}

	.wh-logo-set:hover {

		.zbs-logo-options {
			display: block;
		}
	}

	.wh-logo {
		margin-top: 20px;
		padding: 30px;
		width: 100%;
		background: #f0f8ff;
		margin-bottom: 20px;
		border-radius: 11px;
		border: 1px solid #428bca;
		cursor: pointer;

		.fa {
			color: #428bca;
			margin-right: 5px;
			font-size: 40px;
			font-weight: 100;
		}

		.wh-logo-text {
			font-weight: 300;
			color: #428bca;
			font-size: 18px;
			margin-left: 20px;
			position: absolute;
			top: 63px;
		}
	}
}


// updated from core on 11/10/16 - WH

// Import generic edit page styles (old legacy from taxibooker! :o to rewrite)
/* stylelint-disable no-invalid-position-at-import-rule
-- these are intentional overrides */

@include meta.load-css("ZeroBSCRM.genericeditpages");

// Import "core" styles
@include meta.load-css("ZeroBSCRM.prevadmincore");

// Daterangepicker styles
@include meta.load-css("daterangepicker/daterangepicker");

// menu mods
@include meta.load-css("ZeroBSCRM.adminmenu");

// customer filters gui
@include meta.load-css("ZeroBSCRM.customerfilters");

// Import form styles
@include meta.load-css("ZeroBSCRM.forms");

// Import "Log" styles
@include meta.load-css("ZeroBSCRM.logs");

// Import "Typeahead" styles
@include meta.load-css("ZeroBSCRM.typeahead");

// Import "Spinner" styles
@include meta.load-css("ZeroBSCRM.spinners");

// Import "Admin Pages" styles
@include meta.load-css("ZeroBSCRM.adminpages");

// Import "Hide WP Features" styles
@include meta.load-css("ZeroBSCRM.hidewpfeatures");
