/* Table layout using flex - styling */
.Table-row {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;
	display: flex;

    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;

    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;

	width:100% !important;
	padding-bottom:5px;
	padding-top:5px;
}

.Table-header {
	display:none; 
	font-weight:bold;
}
.Table-row-item:before{
	content:attr(data-header);
	width:25%;
	font-weight:700
}
.Table-row-item.tri-wider:before{
	content:attr(data-header);
	width:35%;
	font-weight:700
}
.Table-row-item {
	word-wrap:break-word;overflow-wrap:break-word;padding:0.5em;
	margin-bottom:0px;
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;
	display: flex;

    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
	flex-direction: row;

    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;

    -webkit-flex: 1 0 10%;
	-moz-flex: 1 0 10%;
    -ms-flex: 1 0 10%;
    flex: 1 1 10%;

/*	flex-grow: 1; */
	/*border-left:0px solid red; */

	-webkit-align-items: flex-start;
     align-items: flex-start;
}

.Table-row-item.total-row {
	justify-content:flex-end;
}
.Table-row.balance-row {
	border-bottom:2px solid black;
}
.Table-row.total-row {
	border-top:2px solid black;
}
.Table-header .Table-row-item {
	-webkit-align-items: center;
     align-items: center;
}

/*
.Table-row-item a  {
	display:flex;
	flex-direction: row;
	align-items:center;
} */

.Table-row-item a span.sorting-indicator {
	display:none;
	visibility:hidden;
	border:0px solid red;
	margin-top:20px;
}

.Table-row-item:hover a span.sorting-indicator {
	visibility:visible !important;
}
.Table-row-item:hover .row-actions {
	left:0px;
}

.list-even-row {
	background-color: #f1f1f1;
}
.list-odd-row {
	background-color: #f9f9f9;
}
.list-first-row {
	background-color: #ffceba;
}

div.Table-row:hover {
	opacity:0.5;
}
span.pdf-icon {
	display:inline-block;
	width:24px;
	height:24px;
}
.pdf-icon img {
	width:100%;
	height:auto;
}
.jcs-admin-navigation {
	display:;
}

.moturgent {
	margin-right:6px;
	background-color:orange;
}
.motwarning {
	background-color:#fcff1e;
}

.carmotexpiry {
	font-weight:bold;
	color:blue;
}
span.su-tabs-current {
	font-weight:bold;
	color: brown !important;
}

.expensevalue {
	justify-content:right;
}

.carreg {
	font-weight:bold;
}
.carowner span {
	color:blue;
}
.car-data-span {
	
}
.carimage, .carimagepdf {
	display:flex;
	justify-content:center;
	align-items:center;
	max-width:230px;
	margin-right:25px;
	margin-bottom:20px;
}
.carimage img {
	width:100%;
	height:auto;
	margin-top:0px;
	margin-bottom:0px;
	border:3px solid transparent;
}
.carimage img:hover {
	border:3px solid green;
}
.carimagepdf img {
	width:50%;
	height:auto;
	margin-top:0px;
	margin-bottom:0px;
	border:3px solid transparent;
}
.carimagepdf img:hover {
	border:3px solid green;
}
.carimage-checkbox {
	margin-left:5px;
}
.image-selected {
	border:2px solid green;
}
.button-disabled {
	background-color:red;
}
.back2menu {
	float:right;
	margin-right:30px;
	margin-top:20px;
}
.back2menu a {
	text-decoration:none;
}
.back2menu a:hover {
	text-decoration:underline;
	color:#23282d;
}

.history-link {
	margin-left:20px;
}

.jcs-main-table-wrapper {
	border:2px solid #cccccc;
	padding:5px;
	margin-right:10px;
	border-radius:10px;
}
/* wide  flex table layout is located below */


/* end of flex table layout */

#ajax-wait {
	display: none;
	text-align:center;
}
#ajax-wait img {
	margin:auto;
}
.chk_servicetypes {
	display:flex;
	justify-content:space-between;
}

.page-numbers li {
	float:left;
	padding-left:10px;
}
.jcs-page-dropdown {
	float:right;
	margin-right:40px;
}
.jcs-filter-panel {
	display:flex;
	width:100%;
	justify-content:space-between;
	flex-wrap:wrap;
}
.jcs-filter-panel input[type=button] {
	background-color: #6BBB1A;
	padding:7px;
	border-radius:5px;
	cursor:pointer;
	color:#ffffff;
	border: 1px solid #6BBB1A;
}
.jcs-filter-panel input[type=button]:hover {
/*	background-color: #98d05f; */
	color: #000000;
	border: 1px solid #444444;
}
.checkinButton, .carNotesButton {
	cursor:pointer;
	background-color: #6BBB1A;
	border-radius:5px;
	border:1px solid #6daae2;
	padding:5px;
	color:#ffffff;
}
.checkinButton:hover {
	background-color: #6BBB1A;
	border-radius:5px;
	border:1px solid #444444;
	color: #000000;
}
.hideCheckinButton {
	display:none;
}
.invoice-green-tick {
	display:inline-block;
	height:16px;
}
.invoice-green-tick img {
	height:100%;
	width:auto;
	margin-top:0px;
	margin-bottom:0px;
}

/* toggle radio-buttons */
.msb-radiobutton {
	position:relative;
	display:inline-block;
	width:40px;
	height:18px;
	background-color:#b0b0b0;
	border-radius:18px;
}
.msb-radio-toggle {
	position:absolute;
	width:12px;
	height:12px;
	background-color:white;
	display:inline-block;
	left:0px;
	margin:3px;
	border-radius:50%;
}
.radioactive {
	background-color: #6BBB1A; 
}
.radioactive.testmode {
	background-color: orange !important; 
}
.radioactive .msb-radio-toggle {
	left:21px;
}
/* end of toggle buttons */
.msb-published {
	max-width:80px;
}
.credit-line {
	color:red;
}
.tagCodes {
	cursor:pointer;
	display:flex;
	justify-content:space-between;
	align-items:flex-start;
}
.tagCodes:hover {
	background-color:#cccccc;
}
.tagCodes span {
	color:blue;
}
/* edit panel */

.invoiceDate, .filterDate {
	width: 240px;
    display: flex;
	align-items:center;
    justify-content: space-between
}

#jcs-admin-button-panel {
	display:flex;
	justify-content:flex-start;
	align-items:center;
	margin-bottom:10px;
	flex-wrap:wrap;
}
.jcs-admin-header {
	display:flex;
	flex-direction:column;
	align-items:center;
}
#jcs-save-button-panel {
	margin-left:30px;
	border:1px solid blue;
	border-radius:5px;
	padding:10px;
	background-color:#D6D6FD;
}
#jcs-ownership-button-panel {
	margin-left:30px;
	border:0px solid blue;
	border-radius:5px;
	padding:10px;
}
.jcs-update-button, .jcs-update-client-button, .jcs-ownership-button {
	font-weight:bold;
	background-color:#008127;
	padding:10px;
	color:white;
	cursor:pointer;
	border-radius:10px;
}
.jcs-update-button:hover, .jcs-update-client-button:hover, .jcs-ownership-button:hover {
	font-weight:bold;
	color:#777777;
	background-color:#80BC59;
}
.jcs-cancel-button {
	padding:10px;
	cursor:pointer;
	font-weight:bold;
	color:#777777;
	border-radius:10px;
}
.jcs-cancel-button:hover {
	font-weight:bold;
	color:#000000;
}
#calculateInvoice, #calculateCreditNote  {
	display:inline-block;
	border-radius:10px;
	background-color:#dddddd;
	border:2px solid #999999;
	padding:10px;
	font-weight:bold;
}
#calculateInvoice:hover {
	color:green;
	border:2px solid green;
}
#generateInvoice, #generateStatement, #generateCreditNote  , .contract-invoice-button, .contract-creditnote-button {
	display:inline-block;
	border-radius:10px;
	background-color:green;
	border:2px solid #999999;
	padding:10px;
	font-weight:bold;
	color:white;
	cursor:pointer;
}
#generateInvoice:hover, #generateStatement:hover, .contract-invoice-button:hover, .contract-creditnote-button:hover {
	color:black;
	border:2px solid lightgreen;
}
#clientInvoiceTab .contract-invoice-button, #clientCreditNoteTab .contract-creditnote-button,  #carCreditNoteTab .contract-creditnote-button {
	visibility:hidden;
}
#carInvoiceTab .contract-invoice-button {
	display:none;
}

.article-id-header {
/*	height:40px; */
	color: blue;
}
.article-id-header span {
	font-weight:bold;
	color:black;
}
.tab-intro {
	margin-bottom:20px;
	padding:5px;
	border:1px solid #cccccc;
	border-radius:5px;
	background-color:#D7E4F2; /* pale blue */
}

.jcs-admim-record-navigator {
	display:flex;
	margin-left:50px;
	color:blue;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    max-width: 220px;
}
#jcs-next-record {
	/* margin-right:20px; */
	cursor:pointer;
}
#jcs-prev-record {
/*	margin-left:20px; */
	cursor:pointer;
}
.jcs-nav-button {
	display:inline-block;
	text-align:center;
}

#loadingDiv {
	position:relative;
	display:none;
	border:0px solid black;
	width:100%
	text-align:center;
}
#loadingDiv>div {
	position:absolute;
	top:0px;
    width: 100%;
    text-align: center;
}
#loadingDiv1 {
	position:relative;
	display:none;
	border:0px solid black;
	width:100%
	text-align:center;
}
#loadingDiv1>div {
	position:absolute;
	top:0px;
    width: 100%;
    text-align: center;
}
.car-edit-details {
	border:0px solid red;
	min-height:200px;
	display:flex;
	flex-direction:column;
}
.carDataRow {
	display:flex;
	flex-direction:row;
	border:0px solid blue;
	justify-content:space-between;
	flex-wrap:wrap;
	padding:10px;
}
.contractRow.extraRow {
    background-color: #fbd8ca;
}
.carDataGroup {
	display:flex;
	flex-direction:row;
	justify-content:flex-start;
}
.carDataItemBlock {
	display:flex;
	align-content:center;
}
.carDataGroup .carDataItemBlock {
	margin-right:10px;
}

.carDetails-wrapper {
	padding-top:20px;
	background-color:#e6d2c9;
	border-bottom: 3px solid #f1f1f1;
}
.customerDetails-wrapper {
	padding-top:20px;
	background-color:#eeeeee;
}
.fullWidth {
	width:100%;
}
.halfwidth {
	width:47%;
	align-self:flex-start;
}
.lookupClient, .lookupCar {
	margin-left:50px;
	display:inline-block;
	color:#777777;
	font-weight:bold;
	font-size:110%;
	padding:5px;
	background-color:#d2e0ec;
	cursor:pointer;
	border-radius:10px;
}
.lookupClient:hover, .lookupCar:hover {
	color:red;
}
.changeReg {
	margin-left:10px;
	display:inline-block;
	color:#777777;
	font-weight:bold;
	font-size:110%;
	padding:5px;
	background-color:#d2e0ec;
	cursor:pointer;
	border-radius:10px;
}
.changeReg:hover {
	color:red;
}
.reg-changed {
	color:red;
	font-weight:bold;
}

.caradminrow {
	background-color: #6daae2;
}
.edit-data {
	display:flex;
	flex-grow:1;
	align-items:center;
	font-weight:bold;
	color:#da0e0e;
}
.edit-header {
	display:flex;
	padding-right:20px;
	font-weight:bold;
	align-items:center;
}
.halfwidth .edit-header {
	align-items:flex-start;
}
.input-short {
	width:80px;
}
.justified {
	justify-content:space-between;
}
.justified .edit-data {
	flex-grow:unset;
}
.input-medium {
	width:150px;
}
.input-long {
	width:300px;
}
.input-full {
	width:100%;
}
.input-textarea {
	width:100%;
	height:100px;
	color:#777777;
/*	max-width:80%; */
}
.input-medium.carmake-input {
	color:blue;
	font-weight:bold;
	font-size:110%;
}
a.list-link {
	text-decoration:none;
}

a.list-link:hover {
	text-decoration:underline;
}

.invDataRow { 
	display:flex;
	justify-content:space-between;
/*	background-color:#dedede; */
	padding-left:10px;
	padding-right:10px;
}
.invLineItemRow {
	display:flex;
	justify-content:space-between;
	padding-left:10px;
	padding-right:10px;
}
.showLineItems {
	display:none;
}
.invHeaderRow {
	font-weight:bold;
	margin-top:20px;
	margin-bottom:20px;
	background-color:#6daae2;
	padding:10px;
}
.invDataItemBlock {
	display:flex;
	align-content:center;
	border:0px solid blue;
	padding:5px;
}
.invRef	{
	width: 100px;
}
.invCar {
	width: 80px;
}
.invGross, .invVat, .invNet {
	text-align:right;
	width:80px;
	justify-content:flex-end;
}
.invDate {
	width:80px;
}
.invClient, .invLineItem {
	width:300px;
	text-align:left;
}
.invpdf {
	width:30px !important;
}
.serviceItemRow, .cserviceItemRow {
	display:flex;
	justify-content:space-between;
	margin-bottom:10px;
	gap:0.5em;
}
.servicelineitem, .cservicelineitem {
	display:flex;
}
.servicelineitem div, .cservicelineitem div {
	margin-right:10px;
}
.servicelineitem div input[type="text"], .cservicelineitem div input[type="text"] {
	width:380px;
}
.serviceitemcost {
	display:flex;
}
.serviceitemcost div {
	margin-left:10px;
}
.new-invoice-text {
	color:brown;
}

.deletelineitem {
	position:relative;
	max-width:16px;
	max-height:16px;
	display:none;
}
.deletelineitem span {
	position:absolute;
	top:0px;
	left:0px;
	display:inline-block;
	visibility:hidden;
}
.deletelineitem img {
	width:100%;
	height:auto;
}
.deletelineitem:hover span {
	visibility:visible;
}


.histID {
	width:30px;
}
.contractID {
	max-width:30px;
}
.monthfee {
	width:40px;
}
.paymethod {
	width:80px;
}
.payfreq {
	width:80px;
}

.show-line-item-buttons {
	float:right;
	margin-right:75px;
}
.show-line-item-button {
	background-color:#ffceba;
}
#createInvoiceForm, #createCreditNoteForm {
	padding:20px;
	border-radius:10px;
	background-color:#fbd8ca;
}
.invnum, .cinvnum {
	text-align:right;
}
.vatcost, .cvatcost {
	background-color:#efefef !important;
	width:80px;
}
.invBold {
	font-weight:bold;
}
.serviceItemRow.invBold input {
	font-weight:bold;
	color:blue;
	font-size:14px;
	max-width:150px;
}
.jcs-button-tab-panel {
	display:flex;
	justify-content:space-around;
	align-items:center;
	height:50px;margin-top:10px;
	margin-bottom:20px; 
	border:3px solid #a9a9e2;
	background-color:#b9c7de;
	border-radius:15px;
}
.jcs-button-tab-panel a {
	text-decoration:none;
}
.jcs-tab-button {
	color:white;
	background-color: #00a0d2;
	border:2px solid #999999;
	padding:10px;
	cursor:pointer;
	border-radius:5px;
}
.jcs-tab-button:hover {
	color:#000000;
	background-color:#6db4ca;
	border:2px solid lightgreen;
}
#addRow, #addContractRow, #caddRow {
	display:flex;
	justify-content:center;
	align-items:center;
	cursor:pointer;
	background-color:#dedede;
	border-radius:10px;
	border:2px solid #999999;
	padding:8px;
}
#addRow:hover, #addContractRow:hover {
	border:2px solid green;
	color:green;
}

.invaddress-disabled {
	opacity:0.4;
	pointer-events:none;
}
.address-header {
	color:green;
	font-weight:bold;
}

.vatsummarytotal {
	font-weight:bold;
}
.openbalancesummary{
	font-weight:bold;
	margin-top:5px;
	margin-bottom:5px;
}

.delivery-timepicker.timepicker-changed {
	background-color: #eccdc0
}
.settings-saved-message { 
	color:red;
	font-size:120%;
	margin-top:20px;
}

/* end of edit panel */


/*  Start of modal windows */
/* Modal, content and close (below) are HTML elements created by script during the popup process. You will not see them in any page or template, but they are just empty DIV tags
into which the popup text 'content' is inserted. These DIVs are all hidden until the popup is activated */
#modal {
  position:absolute;
  background:gray;
  padding:4px;
  z-index:9999;
}

#modalcontent {
 /* background:#EBF8FA; */
  background-color: #E9F3F2;
  padding:10px;
  overflow: auto;
  min-width:400px;
}

#close {
  position:absolute;
  background:url(../images/close.png);
  width:24px;
  height:27px;
  top:-7px;
  right:-7px;
}

#submodal {
  position:absolute;
  background:gray;
  padding:4;
  z-index:9999;
}

#submodalcontent {
  background:#E9F3F2;
  padding:10px;
  overflow: auto;
  min-width:400px;
}

#subclose {
  position:absolute;
  background:url(../images/close.png);
  width:24px;
  height:27px;
  top:-7px;
  right:-7px;
}

/* end of modal windows */


/* Responsive layouts below */




@media (min-width: 650px){

.jcs-admin-navigation {
	display:block;
}

.Table-header {
	display: -webkit-box;      /* OLD - iOS 6-, Safari 3.1-6 */
	display: -moz-box;         /* OLD - Firefox 19- (buggy but mostly works) */
	display: -ms-flexbox;      /* TWEENER - IE 10 */
	display: -webkit-flex;
	display: flex;

	height:35px;
}
.Table-row {
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
	flex-direction: row;

    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}
.Table-row-item:before{content:none; margin-left:50px;}
.Table-row-item.tri-wider:before{content:none; margin-left:50px;}

.Table-row-item {
	width: 10%;
}
.Table-row-item.tri-wider {
	width: 20%;
}
.Table-row-item {
	padding: 0.2em;
	border:0px solid blue;
}
.Table-header .Table-row-item {
	background: #ffffff;
	color: #0073aa;
}
.customer-lookup-wrapper {
	border:1px solid red;
	max-height:450px;
	overflow:auto;
	padding:10px;
}
.clientLookupRow {
	display:flex;
	justify-content:space-between;
	align-items:center;
	cursor:pointer;
	margin-bottom:10px;
}
.clientLookupRow:hover {
	background-color:#cccccc;
}
.clientref-lookup {
	width:100px;
}
.clientname-lookup {
	width:300px;
}
.clientaddress-lookup {
	width:175px;
}
.clienttown-lookup {
	width:100px;
}
.clientcountry-lookup {
	width:100px;
}
.carref, .carreg { 
	max-width:80px;
}
.rpt-id {
	max-width:40px;
}
.clientid {
	max-width:30px;
}
.clientref {
	max-width:80px;
}
.clientemail {
	width:200px;
}
.phone {
	width:80px;
}
.carcount {
	max-width:80px;
}
.carmake, .carmodel {
	max-width:165px;
}
.carcolor  {
	max-width:120px;
}
.carvalue, .expensevalue  {
	max-width:80px;
}
.carowner {
	max-width:200px;
}
.carloc {
	max-width:80px;
}

#jcs-save-button-panel {
	margin-left:160px;
}


}  /* end of min-width:650px */