/*****************************************************************************************
 * X2Engine Open Source Edition is a customer relationship management program developed by
 * X2Engine, Inc. Copyright (C) 2011-2014 X2Engine Inc.
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License version 3 as published by the
 * Free Software Foundation with the addition of the following permission added
 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
 * IN WHICH THE COPYRIGHT IS OWNED BY X2ENGINE, X2ENGINE DISCLAIMS THE WARRANTY
 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU Affero General Public License along with
 * this program; if not, see http://www.gnu.org/licenses or write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301 USA.
 * 
 * You can contact X2Engine, Inc. P.O. Box 66752, Scotts Valley,
 * California 95067, USA. or at email address contact@x2engine.com.
 * 
 * The interactive user interfaces in modified source and object code versions
 * of this program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU Affero General Public License version 3.
 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * X2Engine" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by X2Engine".
 *****************************************************************************************/

.line-items-write #quote-total-section tr td {
    border-bottom: none;
}

.line-items-write #quote-total-section .input-cell {
    border-radius: 0 0 4px 0 ;
    -moz-border-radius: 0 0 4px 0;
    -webkit-border-radius: 0 0 4px 0;
    -o-border-radius: 0 0 4px 0;
}

.line-items-write #quote-total-section .first-cell {
    border-radius: 0 0 0 4px ;
    -moz-border-radius: 0 0 0 4px;
    -webkit-border-radius: 0 0 0 4px;
    -o-border-radius: 0 0 0 4px;
}

.line-items-write #quote-template-dropdown {
    margin-top: 5px;
}

.line-items-write .quote-table .input-cell {
    padding-right: 8px;
}

.line-items-write .quote-table input {
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align:middle;
    margin: 0 0 0 0;
}

::-moz-placeholder {
    text-overflow: ellipsis;
}

.line-items-write .quote-table .add-line-item-button
{
    float: left;
}

.line-items-write .add-line-item-button, 
.line-items-write .add-adjustment-button
{
    margin: 0 1em 0 1em;
    width: 12em;
}

.line-items-write .add-line-item-button.x2-button, 
.line-items-write .add-adjustment-button.x2-button {
	width: 150px;
	display: inline-block;
	clear:none;
}

.line-items-write.line-items-table .product-menu
{
    position: absolute;
    display: none;
    max-height: 16em;
    overflow-y: scroll;
	font-size: 10px !important;
}

.line-items-write .quote-table input.error
{
    /*border: 2px solid rgb(170,170,170);*/
    background: #FEE;
    border-color: #C00 !important;
    /*background: none repeat scroll 0% 0% rgb(255,238,238);*/
    /*border-color: rgb(204,0,0);*/
}

.line-items-write .quote-table .arrow-both-handle
{
    margin-left: 10px;
    width: 1em;
    height: 1em;
	display: inline-block;
}

.line-items-write .quote-table .item-delete-button 
{	
	display: inline-block;
}

.line-items-write .quote-table td 
{
	padding-right:5px;
	background-color: #FAFAFA;
}

.line-items-write .quote-table 
{
    margin-bottom: 5px;
	width:100%;
	border-color: #CCCCCC;
	border-width: 1px;
	border-style: solid;
	-webkit-border-radius: 4px; 
	-moz-border-radius: 4px;   
	border-radius: 4px; 
}

.line-items-write .quote-table > thead:first-child > tr > th
{
	border-color: #CCCCCC;
	border-width: 0 0 1px 0;
	border-style: solid;
	text-align:left;
}

.line-items-write .quote-table td input.line-item-field
{
	border: 1px solid #aaa;
	font-size: 12px;
	font-family: Arial, Helvetica, sans-serif;
	padding:2px;
	box-sizing: border-box;
	-moz-border-radius: 3px;
	-o-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
}

.line-items-write .quote-table > tbody.line-items > tr > td.x2-7th-child input,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-7th-child input, 
.line-items-write .quote-table input.total,
.line-items-write .quote-table input.subtotal {
    background: none;
    border: none;
    color: black;
    padding: 0px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
set width of input fields in the quotes table
*/
.line-items-write .line-item > .first-cell, 
.line-items-write .adjustment > .first-cell
{
    width: 10%;
    padding-right: 0;
}

/* line item name cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-2nd-child {
	text-align: left;
    width: 22%;
    padding-right: 0;
}


/* line item name */
.line-items-write .quote-table > thead > tr > th.line-item-name, 
.line-items-write .quote-table > tbody.line-items > tr > td.x2-2nd-child input {
    margin: 0 0 0 0;
    width: 85%;
    float: left;
	font-size: 12px;
}

.line-items-write .quote-table tr.line-item td.input-cell button.product-select-button
{
    border-radius: 0px 4px 4px 0px;
	-moz-border-radius: 0px 4px 4px 0px;
	-webkit-border-radius: 0px 4px 4px 0px;
	-o-border-radius: 0px 4px 4px 0px;
    height: 20px;
    width: 10%;
    max-width: 20px;
    padding: 0 0 0 0;
    margin: 0 0 0 0;
    border-left: none;
}

.line-items-write .product-name {
    border-radius: 4px 0px 0px 4px !important;
    -moz-border-radius: 4px 0px 0px 4px !important;
    -webkit-border-radius: 4px 0px 0px 4px !important;
    -o-border-radius: 4px 0px 0px 4px !important;
}

.line-items-write .quote-table .product-select-button img
{
    margin: 0 -3px 0 0;
    width: 10px;
    height: 10px;
}

/* unit price cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-3rd-child {
	text-align: left;
    width: 16%;
}

/* unit price */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-3rd-child input {
    width: 100%;
	text-align: right;
	font-size: 12px;
}

/* quantity cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-4th-child,
.line-items-write .quote-table > tbody.adjustments> tr > td.x2-4th-child {
	text-align: left;
    width: 12%;
}

/* quantity */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-4th-child input {
    width: 100%;
	text-align: right;
	font-size: 12px;
}

/* adjustment name */
.line-items-write .quote-table > tbody.adjustments> tr > td.x2-4th-child input {
    width: 100%;
	text-align: left;
	font-size: 12px;
}

/* adjustments cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-5th-child,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-5th-child {
	text-align: left;
    width: 12%;
}

/* adjustments */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-5th-child input,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-5th-child input {
    width: 100%;
	font-size: 12px;
	text-align: right;
}

/* description cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-6th-child,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-6th-child {
	text-align: left;
    width: 12%;
}

/* description */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-6th-child input,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-6th-child input {
    width: 100%;
	font-size: 12px;
}

/* line total cell */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-7th-child,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-7th-child {
	text-align: left;
    width: 24%;
}

/* line total */
.line-items-write .quote-table > tbody.line-items > tr > td.x2-7th-child input,
.line-items-write .quote-table > tbody.adjustments > tr > td.x2-7th-child input {
    width: 100%;
	font-size: 12px;
}

/* subtotal and total cell */
.line-items-write .quote-table .subtotal-container,
.line-items-write .quote-table .total-container {
    width: 22%;
	text-align: left;
}

/* subtotal and total */
.line-items-write .quote-table input.subtotal,
.line-items-write .quote-table input.total {
    width: 100%;
	font-size: 12px;
}

.quotes-error-summary {
    background: #FEE;
    border: 2px solid #C00;
    font-size: 0.9em;
    padding: 5px;
    margin-bottom: 1px;
    margin-top: 5px;
}

.quotes-error-summary p {
    margin: 0;
    padding: 5px;
}

.quotes-error-summary ul {
    margin: 0;
    padding: 0 0 0 20px;
}

@media (max-width: 657px) {
    .line-items-write .quote-table .input-cell {
        padding-right: 0px;
    }
    .line-items-write .quote-table .arrow-both-handle {
        margin-left: 0px;
    }
}

