html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;

    background-color: #f6f6f6;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

/*-- Jumbotron tweaks --*/

.jumbotron {
    text-align: center;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* webvimark StatusColumn still renders Bootstrap 3 "label label-*" spans - style them as BS5 badges */
.label {
    display: inline-block;
    padding: .35em .65em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    white-space: nowrap;
    border-radius: var(--bs-border-radius);
}
.label-default   { background-color: var(--bs-secondary); }
.label-primary   { background-color: var(--bs-primary); }
.label-success   { background-color: var(--bs-success); }
.label-info      { background-color: var(--bs-info); color: #000; }
.label-warning   { background-color: var(--bs-warning); color: #000; }
.label-danger    { background-color: var(--bs-danger); }

.not-set {
    color: #c55;
    font-style: italic;
}



/*-- Sorting --*/

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

/*-- Other --*/

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* add red asterisk to required form fields */
div.required label:after {
    content: " *";
    color: #e13431;
}

/*-- GridView options display tweaks --*/

.user-index td:last-child,
.articles-admin td:last-child {
    width: 68px;
}

.article-view th {
    min-width: 90px;
}

/*-- Css for nicer display of boolean yes/no values --*/

.boolean-true {
    font-weight: bold;
    color: green;
}

.boolean-false {
    font-weight: bold;
    color: #e13431;
}

/*-- Css for nicer display of user roles --*/

.role-theCreator {
    font-weight: bold;
    color: black;
}

.role-admin {
    font-weight: bold;
    color: #c4a500;
}

.role-editor {
    font-weight: bold;
    color: #800080;
}

.role-support {
    font-weight: bold;
    color: #009d00;
}

.role-premium {
    font-weight: bold;
    color: #4c4cff;
}

.role-member {
    font-weight: bold;
}

/*-- Colors used for various data presentation purposes --*/

.blue {
    font-weight: bold;
    color: #7373ff; 
}

.green {
    font-weight: bold;
    color: #009d00;
}

.gold {
    font-weight: bold;
    color: #c4a500;   
}

hr.top {
    margin-top: 0px;
    border-width: 1px;
    border-color: #333;
    text-align: left;
}

hr.article-devider {
    border-width: 1px;
    border-color: #444;
    border-style: dashed;
    text-align: left;
}

/*-- Password strength --*/

/* hide strength meter so we can fade it in nicely with jQuery */
.nz-meter-container {
    display: none;
}

.sapient_wrap
{
	width: 100%;

	
}

.sapient_leftMenu
{
	width: 250px;
	height: 100%;
	float:left;
	padding-right: 10px;
}

.sapient_titleBar
{
	height:100px;
	background-color: blue;	
}

.sapient_content
{
	width: Calc(100% - 250px);
	overflow:hidden;
	padding-left : 10px;
	padding-right : 10px;
}

.sapient_login
{
	width: 800px;
	margin-left: auto;
	margin-right: auto;

}


.customer-orders-form
{
	width: 100%;
	
}
/*-- customer order summary panel (right hand side of views/customer-order/_form.php) --*/
.customer-orders-form-pricing
{
	width: 440px;
	float: right;
	margin-left: 1rem;
	margin-bottom: 1rem;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	font-size: 0.9rem;
}

.customer-orders-form-pricing .cop-section
{
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--bs-border-color-translucent);
}

.customer-orders-form-pricing .cop-section-highlight
{
	background-color: var(--bs-info-bg-subtle);
}

.customer-orders-form-pricing .cop-title
{
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.customer-orders-form-pricing .cop-title-note
{
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.customer-orders-form-pricing .cop-title .badge
{
	text-transform: none;
	letter-spacing: 0;
}

.customer-orders-form-pricing .cop-row
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.15rem 0;
}

.customer-orders-form-pricing .cop-row-top
{
	align-items: flex-start;
}

.customer-orders-form-pricing .cop-label
{
	flex-shrink: 0;
	color: var(--bs-secondary-color);
}

/* read only inputs the page script fills in - shown as plain text */
.customer-orders-form-pricing .cop-value
{
	min-width: 0;
	flex: 1;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--bs-body-color);
	text-align: right;
	font-variant-numeric: tabular-nums;
	outline: none;
}

.customer-orders-form-pricing .cop-value-strong
{
	font-weight: 600;
}

.customer-orders-form-pricing .cop-value-wrap
{
	resize: none;
	overflow: hidden;
	line-height: 1.35;
}

/* a value with its $ or t unit, right aligned as one block */
.customer-orders-form-pricing .cop-money
{
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 0.15rem;
	width: 11rem;
	font-variant-numeric: tabular-nums;
}

.customer-orders-form-pricing .cop-row-negative .cop-money,
.customer-orders-form-pricing .cop-row-negative .cop-value
{
	color: var(--bs-danger-text-emphasis);
}

.customer-orders-form-pricing .cop-row-total
{
	margin-top: 0.3rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--bs-border-color);
	font-weight: 600;
}

.customer-orders-form-pricing .cop-row-total .cop-label,
.customer-orders-form-pricing .cop-row-total .cop-value
{
	color: var(--bs-body-color);
	font-weight: 600;
}

.customer-orders-form-pricing .cop-link
{
	margin-top: 0.4rem;
	text-align: right;
}

/* supply contract list - one line per contract, rendered by supply-contracts/_orderContracts */
.customer-orders-form-pricing .cop-contract-row
{
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.2rem 0;
}

.customer-orders-form-pricing .cop-contract-text
{
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.customer-orders-form-pricing .cop-contract-info
{
	flex-shrink: 0;
	color: var(--bs-secondary-color);
}

.customer-orders-form-pricing .cop-contract-button
{
	flex-shrink: 0;
	padding: 0.1rem 0.5rem;
	font-size: 0.8rem;
	white-space: nowrap;
}

.customer-orders-form-pricing .cop-link a
{
	text-decoration: none;
}

.customer-orders-form-pricing .cop-grand-total
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.85rem 1rem;
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary-text-emphasis);
}

.customer-orders-form-pricing .cop-grand-total .cop-label
{
	font-weight: 600;
	color: inherit;
}

.customer-orders-form-pricing .cop-grand-total .cop-money,
.customer-orders-form-pricing .cop-grand-total .cop-value
{
	font-size: 1.35rem;
	font-weight: 700;
	color: inherit;
}


.delivery-order-info
{
	padding-right: 10px;
	border: 1px solid;
	padding-left: 5px;
	padding-top: 5px;
	height: 500px;
	background-color: #dadada;
	border-radius: 5px;
}


.customer-orders-form-main
{
	width:auto;
	overflow:hidden;
	padding-right: 50px;
	
}

.customer_order_subheading
{
	font-weight: bold;
	font-size: 19px;
	border-bottom: 1px solid black;
	margin-bottom: 10px;
}

.order_info
{
	
}

.infoInput
{
	border: 0px  solid;
	width: 140px;
}

.infoInputLarge
{
	border: 0px  solid;
	width: 300px;
}

.order_info_input
{
	border: 0px  solid; 
	width:170px
}


.infoInputDetails
{
	border: 0px  solid;
	width: 100%;
}



/* action button bar (actionButtonsWidget) - the button tiles are styled in widgets/actionButtons/css/buttons.css */
.sapFieldSet
{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.35rem;
	width: 100%;
	min-width: 0;
	padding: 0.5rem;
	margin: 0 0 1rem 0;
	border: 1px solid var(--bs-border-color);
	border-radius: 0.5rem;
	background-color: var(--bs-tertiary-bg);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* the "Actions" legend is kept for screen readers but not shown */
.sapFieldSetLegend
{
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
	


.sapient_login_wrapper
{
	width: 100%;
	height: 100%;
	background-image: url("/images/login_background.jpg");
	background-size:cover;
}

.sapient_login_content
{
	width: 400px;
	margin-right: auto;
	margin-left: auto;

}

/*-- Login page --*/

.login-shell
{
	min-height: 100vh;
}

/* background colour matches the edges of login_background.jpg */
.login-brand
{
	flex: 1 1 auto;
	background: #0069ad url("../images/login_background.jpg") no-repeat center / contain;
}

.login-panel
{
	flex: 1 1 100%;
	background-color: var(--bs-body-bg);
}

@media (min-width: 992px)
{
	.login-panel
	{
		flex: 0 0 520px;
		box-shadow: -8px 0 24px rgba(0, 0, 0, .12);
	}
}

.login-form-wrap
{
	max-width: 380px;
}

/* logo gif has a white background, so keep it on a white disc in dark mode too */
.login-logo
{
	width: 96px;
	height: 96px;
	padding: 4px;
	border-radius: 50%;
	background-color: #fff;
}

.login-page .btn-primary
{
	--bs-btn-bg: #0069ad;
	--bs-btn-border-color: #0069ad;
	--bs-btn-hover-bg: #00588f;
	--bs-btn-hover-border-color: #00588f;
	--bs-btn-active-bg: #004d7f;
	--bs-btn-active-border-color: #004d7f;
	--bs-btn-focus-shadow-rgb: 0, 105, 173;
}

.login-page .form-control:focus,
.login-page .form-check-input:focus
{
	border-color: #3d8fc6;
	box-shadow: 0 0 0 .25rem rgba(0, 105, 173, .25);
}

.login-page .form-check-input:checked
{
	background-color: #0069ad;
	border-color: #0069ad;
}

[data-bs-theme="light"] .login-page
{
	--bs-link-color-rgb: 0, 105, 173;
	--bs-link-hover-color-rgb: 0, 77, 127;
}

.sapient_home_title_wrapper
{
	width: 100%;
	height: 120px;
	
}

.sapient_home_title
{
	width: 742px;
	height: 100%;
	margin-right: auto;
	margin-left: auto;
	background-image: url("/images/header.gif");
}

.sapTitleBar{
	width: 1280px;
	font-size: 3em;
	
}



.sap_edit_ingredient_link:hover
{
	cursor: pointer;
}

.sapDeliveryFieldSetLegend
{
	margin-left: 0px;
	padding-left: 5px;
	margin-bottom: -10px;
	font-size:1em;
	width: 100px;
	position: relative;
	top: -15px;
	border: 1px;
	background-color: white;
}

.sap_trailer_empty
{
	background-image: url('/images/trailerbinbg_empty.png');
	background-repeat: repeat-x;
	background-size: 5px 100%;
}

.sap_trailer_full
{
	background-image: url('/images/trailerbinbg_full.png');
	background-repeat: repeat-x;
	background-size: 5px 100%;;
}

.sap_trailer_partial
{
	background-image: url('/images/trailerbinbg_partial.png');
	background-repeat: repeat-x;
		background-size: 5px 100%;
}

.remove_trailer_link:hover, .trailer_add_link:hover
{
	cursor: pointer;
}

.truck_allocation_panel
{
	
}
 
.delivery-load-form
{
	width:1000px;
	
	background: #F0F0F0  ;
	margin:auto;
	border-radius: 10px;
	box-shadow: 0 10px 6px -6px #777;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 5px;
	padding-right: 5px;
}

.delivery-load-info
{
	width: 100px;
	float: left;
}

.delivery-load-truck
{
	
	
	margin-top: 10px;
	width: 180px;
	height: 180px;
	background: #E0E0E0;
	float: left;
	border-radius: 10px;
	box-shadow: 0 10px 6px -6px #777;
}

.delivery-load-trailer1
{
	margin-left: 10px;
	margin-top: 10px;
	width: 393px;
	height: 180px;
	background: #E0E0E0;
	float: left;
	box-shadow: 0 10px 6px -6px #777;
	border-radius: 10px;
}

.delivery-load-trailer2
{
	margin-left: 10px;
	margin-top: 10px;
	width: 393px;
	height: 180px;
	background: #E0E0E0;
	box-shadow: 0 10px 6px -6px #777;
	border-radius: 10px;
	float: left;
	
}

.delivery-load-action
{
	width: 30px;
	height: 100%;
	float: right;
	padding-top: 5px;
}

.truck_empty_select
{
	width: 100%;
	height: 100%;
	cursor: pointer;
	
}

.add_truck_link
{
	width: 128px;
	margin: auto;
	height: 128px;
	padding-top: 30px;
	
}




.truck_select_dialog
{
	width: 600px;
	height: 800px;
	background-color: red;
	
}

.trailer_empty_select
{
	width: 100%;
	height: 100%;
	
}

.select_trailer_button
{
	width: 128px;
	margin: auto;
	height: 128px;
	padding-top: 30px;
	cursor: pointer;
	
}


.trailer_slot_disabled
{

	width: 100%;
	height: 100%;
	background-color: #F0F0F0;
	
}


.sap_percent_fill_5
{
background: linear-gradient(0deg, #AD9465 5%, #FFFFFF 50%);
}

.sap_percent_fill_10
{
background: linear-gradient(0deg, #AD9465 10%, #FFFFFF 50%);
}

.sap_percent_fill_15
{
background: linear-gradient(0deg, #AD9465 25%, #FFFFFF 50%);
}

.sap_percent_fill_20
{
background: linear-gradient(0deg, #AD9465 20%, #FFFFFF 50%);
}

.sap_percent_fill_25
{
background: linear-gradient(0deg, #AD9465 25%, #FFFFFF 50%);
}

.sap_percent_fill_30
{
background: linear-gradient(0deg, #AD9465 30%, #FFFFFF 50%);
}

.sap_percent_fill_35
{
background: linear-gradient(0deg, #AD9465 35%, #FFFFFF 50%);
}

.sap_percent_fill_40
{
background: linear-gradient(0deg, #AD9465 40%, #FFFFFF 50%);
}

.sap_percent_fill_45
{
background: linear-gradient(0deg, #AD9465 45%, #FFFFFF 50%);
}

.sap_percent_fill_50
{
background: linear-gradient(0deg, #AD9465 50%, #FFFFFF 50%);
}

.sap_percent_fill_55
{
background: linear-gradient(0deg, #AD9465 55%, #FFFFFF 50%);
}

.sap_percent_fill_60
{
background: linear-gradient(0deg, #AD9465 60%, #FFFFFF 50%);
}

.sap_percent_fill_65
{
background: linear-gradient(0deg, #AD9465 65%, #FFFFFF 50%);
}

.sap_percent_fill_70
{
background: linear-gradient(0deg, #AD9465 70%, #FFFFFF 50%);
}

.sap_percent_fill_75
{
background: linear-gradient(0deg, #AD9465 75%, #FFFFFF 50%);
}

.sap_percent_fill_80
{
background: linear-gradient(0deg, #AD9465 80%, #FFFFFF 50%);
}

.sap_percent_fill_85
{
background: linear-gradient(0deg, #AD9465 85%, #FFFFFF 50%);
}

.sap_percent_fill_90
{
background: linear-gradient(0deg, #AD9465 90%, #FFFFFF 50%);
}

.sap_percent_fill_95
{
background: linear-gradient(0deg, #AD9465 95%, #FFFFFF 50%);
}

/*-- delivery form: selected truck and its trailer slots - views/delivery/_allocateSection.php --*/
.as-section
{
	max-width: 640px;
}

.as-panel
{
	margin: 0 0 0.25rem 0;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.as-truck
{
	display: flex;
	align-items: stretch;
	height: 150px;
	background-color: var(--bs-tertiary-bg);
}

/* the truck outline picture with the rego written over the cab */
.as-truck-image
{
	flex: 0 0 300px;
	height: 100%;
	background-image: url("/images/truck_outline.png");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
}

.as-truck-text
{
	width: 170px;
	margin-left: 80px;
	padding-top: 0.5rem;
}

.as-label
{
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.as-truck-rego
{
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.as-truck-types
{
	margin-top: 0.2rem;
	font-size: 0.75rem;
	line-height: 1.1;
}

.as-actions
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
	margin-left: auto;
	padding: 0.6rem 0.75rem;
	border-left: 1px solid var(--bs-border-color);
	background-color: var(--bs-body-bg);
}

.as-actions .btn
{
	text-align: left;
	white-space: nowrap;
}

.as-slot-label
{
	padding: 0.35rem 0 0.15rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.as-slot-label i
{
	margin-right: 0.2rem;
	color: var(--bs-border-color);
}

/* trailer slot - _trailer.php inside lays itself out at 100% of this height */
.as-trailer
{
	height: 150px;
	padding: 0.25rem 0;
}

/*-- trailer with bin tick boxes - views/trailers/_trailer.php (fills the 150px .as-trailer slot) --*/
.tr-card
{
	display: flex;
	width: 100%;
	height: 100%;
}

.tr-main
{
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 0 0.6rem;
}

.tr-head
{
	display: flex;
	align-items: baseline;
	gap: 0.4rem;
	padding-bottom: 0.2rem;
	white-space: nowrap;
	overflow: hidden;
}

.tr-label,
.tr-info-label
{
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.tr-rego
{
	font-size: 1.1rem;
}

.tr-desc
{
	font-size: 0.8rem;
	color: var(--bs-secondary-color);
	overflow: hidden;
	text-overflow: ellipsis;
}

.tr-body
{
	display: flex;
	flex: 1;
	min-height: 0;
	gap: 0.5rem;
}

.tr-info
{
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	flex: 0 0 80px;
	font-size: 0.8rem;
}

.tr-types
{
	font-size: 0.75rem;
	line-height: 1.1;
}

.tr-select-all
{
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin: auto 0 0 0;
	font-size: 0.75rem;
	cursor: pointer;
}

.tr-bins
{
	display: flex;
	flex: 1;
	min-width: 0;
	gap: 0.25rem;
}

.tr-bin
{
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	overflow: hidden;
	text-align: center;
	font-size: 0.75rem;
}

.tr-bin-no
{
	padding: 0.05rem 0;
	font-weight: 600;
	color: var(--bs-secondary-color);
	background-color: var(--bs-tertiary-bg);
	border-bottom: 1px solid var(--bs-border-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* the fill area under the bin number - its class is swapped by the page script, so it is styled by position */
.tr-bin > :last-child
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	flex: 1;
	padding: 0.25rem 0.1rem;
	font-variant-numeric: tabular-nums;
}

.tr-bin > :last-child input[type=checkbox]
{
	margin: 0;
	cursor: pointer;
}

/* bins loaded by another delivery */
.tr-bin > .tr-bin-other
{
	justify-content: center;
	background: repeating-linear-gradient(135deg, var(--bs-secondary-bg), var(--bs-secondary-bg) 4px, var(--bs-tertiary-bg) 4px, var(--bs-tertiary-bg) 8px);
}

.tr-bin-other a
{
	color: var(--bs-secondary-color);
	text-decoration: none;
	line-height: 1.2;
}

.tr-bin-other a:hover
{
	text-decoration: underline;
}

.tr-no-bins
{
	align-self: center;
	width: 100%;
	text-align: center;
	color: var(--bs-secondary-color);
}

.tr-actions
{
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.35rem;
	padding: 0 0.75rem;
	border-left: 1px solid var(--bs-border-color);
}

.tr-actions .btn
{
	text-align: left;
	white-space: nowrap;
}

/* empty slot - views/trailers/_trailer_blank.php */
.as-trailer:has(.tr-card-blank)
{
	border-style: dashed;
	background-color: transparent;
	box-shadow: none;
}

.tr-blank-main
{
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
}

.tr-blank-icon
{
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--bs-tertiary-bg);
	color: var(--bs-secondary-color);
	font-size: 1.1rem;
}

.tr-blank-text
{
	color: var(--bs-secondary-color);
}

/*-- weighbridge ticket on the delivery form - views/delivery/_tab_weighbridge.php, weighbridge-ticket/_formDelivery.php --*/
.wb-wrap
{
	max-width: 1000px;
	padding: 0.5rem 0;
}

.wb-form
{
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
	gap: 1rem;
	align-items: start;
}

.wb-card
{
	padding: 0.85rem 1rem;
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wb-card-title
{
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.wb-card-title .btn-group
{
	text-transform: none;
	letter-spacing: 0;
}

.wb-card-subtitle
{
	margin: 1rem 0 0.5rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--bs-border-color-translucent);
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.wb-row
{
	display: grid;
	grid-template-columns: 130px 1fr;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 0.45rem;
}

.wb-label
{
	margin: 0;
	font-size: 0.85rem;
	color: var(--bs-secondary-color);
}

.wb-field
{
	min-width: 0;
}

.wb-input
{
	margin: 0;
}

/* server side errors (client validation is off for most of these fields) */
.wb-form .invalid-feedback:not(:empty)
{
	display: block;
}

.wb-static
{
	padding: 0.375rem 0;
	font-weight: 600;
}

.wb-notes .wb-label
{
	display: block;
	margin: 0.4rem 0 0.25rem;
}

/* multi use: rows Gross / Tare / Net, columns Trailer A / Trailer B */
.wb-multi
{
	display: grid;
	grid-template-columns: 90px 1fr 1fr;
	align-items: center;
	gap: 0.45rem 0.6rem;
	width: 100%;
}

.wb-col-head
{
	font-size: 0.8rem;
	font-weight: 600;
	text-align: center;
}

.wb-total
{
	grid-column: span 2;
}

.wb-total-label,
.wb-total-row .wb-label
{
	font-weight: 600;
	color: var(--bs-body-color);
}

.wb-total-row,
.wb-total-label,
.wb-total
{
	padding-top: 0.45rem;
	border-top: 1px solid var(--bs-border-color);
}

.wb-total .form-control,
.wb-total-row .form-control
{
	font-weight: 600;
}

.wb-form .input-group .form-control
{
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.wb-quality
{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 0.75rem;
}

.wb-quality .wb-label
{
	display: block;
	margin-bottom: 0.2rem;
}

/* Add Weighbridge Ticket popup - views/weighbridge-ticket/createTicketReturn.php */
.wb-popup-title
{
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.wb-popup-title span
{
	font-size: 1rem;
	font-weight: 400;
	color: var(--bs-secondary-color);
}

/* narrower columns so both cards fit side by side in the popup */
.wb-popup .wb-form
{
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.wb-popup .wb-row
{
	grid-template-columns: 115px 1fr;
}

.wb-return
{
	max-width: 420px;
	margin-top: 1rem;
}

/*-- delivery page summary under the title - views/delivery/update.php --*/
.dinfo
{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 0.75rem;
	max-width: 1000px;
	margin-bottom: 1rem;
}

.dinfo-date
{
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 0 0 auto;
	padding: 0.6rem 1rem;
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
}

.dinfo-icon
{
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary);
	font-size: 1.05rem;
}

.dinfo-label
{
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.dinfo-value
{
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
}

.dinfo-date .badge
{
	margin-top: 0.15rem;
	font-weight: 600;
}

.dinfo-notes
{
	flex: 1 1 300px;
	min-width: 0;
	padding: 0.6rem 1rem;
	background-color: var(--bs-warning-bg-subtle);
	border: 1px solid var(--bs-warning-border-subtle);
	border-radius: var(--bs-border-radius-lg);
}

.dinfo-notes .dinfo-label
{
	margin-bottom: 0.2rem;
	color: var(--bs-warning-text-emphasis);
}

.dinfo-notes-text
{
	font-weight: 600;
}

/*-- delivery form Order Information tab - views/delivery/_form.php --*/
.doi-card
{
	max-width: 1000px;
	margin: 0.75rem 0;
	padding: 0.85rem 1rem;
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.doi-title
{
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.75rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.doi-grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 0.6rem 1rem;
}

.doi-item
{
	display: flex;
	align-items: center;
	gap: 0.65rem;
	min-width: 0;
	padding: 0.5rem 0.65rem;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color-translucent);
	border-radius: var(--bs-border-radius);
}

.doi-icon
{
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 50%;
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary);
	font-size: 0.85rem;
}

.doi-text
{
	min-width: 0;
}

.doi-label
{
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.doi-value
{
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.doi-notes
{
	margin-top: 0.75rem;
	padding: 0.6rem 0.75rem;
	background-color: var(--bs-warning-bg-subtle);
	border: 1px solid var(--bs-warning-border-subtle);
	border-radius: var(--bs-border-radius);
}

.doi-notes .doi-label
{
	margin-bottom: 0.25rem;
	color: var(--bs-warning-text-emphasis);
}

.doi-notes-text
{
	font-weight: 600;
	white-space: normal;
}

/*-- truck load popup - views/delivery/_truck_load.php --*/
.trl-load
{
	display: flex;
	align-items: stretch;
	gap: 0.4rem;
}

.trl-truck
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	flex: 0 0 160px;
	min-width: 0;
	height: 180px;
	padding: 0.5rem;
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	text-align: center;
}

.trl-truck-icon
{
	display: grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary);
	font-size: 1.35rem;
}

.trl-truck-icon.trl-muted
{
	background-color: var(--bs-secondary-bg);
	color: var(--bs-secondary-color);
}

.trl-truck-label
{
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bs-secondary-color);
}

.trl-truck-rego
{
	font-size: 1.1rem;
	font-weight: 700;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trl-truck-desc
{
	max-width: 100%;
	font-size: 0.8rem;
	color: var(--bs-secondary-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trl-link
{
	display: flex;
	align-items: center;
	color: var(--bs-border-color);
	font-size: 0.8rem;
}

.trl-trailer
{
	flex: 1 1 0;
	min-width: 0;
	height: 180px;
}

.trl-empty
{
	align-items: center;
	justify-content: center;
	border-style: dashed;
	color: var(--bs-secondary-color);
}

.trl-empty i
{
	font-size: 1.5rem;
}

/* stacked on narrow screens */
@media (max-width: 767.98px)
{
	.trl-load { flex-direction: column; }
	.trl-truck { flex-basis: auto; height: auto; }
	.trl-link { justify-content: center; transform: rotate(90deg); }
}

/*-- read only trailer bin display - views/trailers/_trailer_display.php --*/
.trd-card
{
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	width: 100%;
	height: 100%;
	padding: 0.5rem 0.65rem;
	background-color: var(--bs-body-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius-lg);
	font-size: 0.85rem;
}

.trd-head
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.trd-rego
{
	font-size: 1.05rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trd-rego i
{
	color: var(--bs-secondary-color);
}

.trd-types
{
	display: flex;
	gap: 0.25rem;
	flex-shrink: 0;
}

.trd-types .badge
{
	font-size: 0.65rem;
	font-weight: 600;
}

.trd-meta
{
	display: flex;
	justify-content: space-between;
	color: var(--bs-secondary-color);
}

.trd-meta b
{
	color: var(--bs-body-color);
}

.trd-bins
{
	display: flex;
	gap: 0.3rem;
	flex: 1;
	min-height: 0;
}

.trd-bin
{
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
	border: 1px solid var(--bs-border-color);
	border-radius: var(--bs-border-radius);
	overflow: hidden;
	text-align: center;
}

.trd-bin-no
{
	padding: 0.1rem 0;
	font-size: 0.7rem;
	font-weight: 600;
	background-color: var(--bs-tertiary-bg);
	color: var(--bs-secondary-color);
	border-bottom: 1px solid var(--bs-border-color);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.trd-bin-body
{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	flex: 1;
	padding: 0.2rem;
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

.trd-bin-body a
{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	color: inherit;
	text-decoration: none;
	line-height: 1.1;
}

.trd-bin-body a:hover span
{
	text-decoration: underline;
}

/* this delivery's bins - filled */
.trd-bin.trd-bin-this
{
	border-color: var(--bs-warning-border-subtle);
}
.trd-bin-this .trd-bin-body,
.trd-swatch.trd-bin-this
{
	background-color: var(--bs-warning-bg-subtle);
	color: var(--bs-warning-text-emphasis);
	font-weight: 600;
}

/* another delivery's bins - hatched */
.trd-bin-other .trd-bin-body,
.trd-swatch.trd-bin-other
{
	background: repeating-linear-gradient(135deg, var(--bs-secondary-bg), var(--bs-secondary-bg) 4px, var(--bs-tertiary-bg) 4px, var(--bs-tertiary-bg) 8px);
	color: var(--bs-secondary-color);
}

/* empty bins */
.trd-bin-empty .trd-bin-body,
.trd-swatch.trd-bin-empty
{
	background-color: var(--bs-body-bg);
	color: var(--bs-secondary-color);
}

.trd-no-bins
{
	align-self: center;
	width: 100%;
	text-align: center;
	color: var(--bs-secondary-color);
}

.trd-legend
{
	display: flex;
	gap: 0.75rem;
	font-size: 0.7rem;
	color: var(--bs-secondary-color);
}

.trd-legend span
{
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.trd-swatch
{
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	border: 1px solid var(--bs-border-color);
	border-radius: 2px;
}

.sap_percent_fill_100
{
background: linear-gradient(0deg, #AD9465 100%, #FFFFFF 50%);
}

.sap_delete_cross
{
	background-image:url('/images/icon-32-cross.png');
	
}

	
.sap_icon_cross:hover {
	background-position:0px -32px;
}

.sap_showlink:hover
{
	cursor: pointer;
}

.sap_info
{
	border-radius: 5px; 
	border: 1px solid; 
	background-color: #EFEFEF; 
	padding: 5px;
}

.sap_showlinkinfo {
	cursor: pointer;
	text-decoration: none !important;
	color: black;
	}

.sap_loading_outer
{
	display: none;
	width: 100%;
	
}	
	
.sap_loading_inner
{
	width: 100px;
	margin-left: auto;
	margin-right: auto;
}

/* selected / hovered row in the truck and trailer pickers.
   Bootstrap 5.3 paints every table cell over its row, so the cells have to be coloured too or the row colour is hidden */
.sap_highlight,
.sap_highlight > td
{
	--bs-table-bg: var(--bs-primary-bg-subtle);
	--bs-table-color: var(--bs-primary-text-emphasis);
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary-text-emphasis);
	box-shadow: none;
	font-weight: 600;
}

.sap_truckline:hover,
.sap_truckline:hover > td
{
	--bs-table-bg: var(--bs-tertiary-bg);
	background-color: var(--bs-tertiary-bg);
	box-shadow: none;
	cursor: pointer;
}


.sap_hidden
{
	display: none;
}

.grid_input_row td
{
	margin: 0px !important;
	padding: 0px !important;
	
	
}

.grid_input
{
	height: 30px;
    line-height: 30px;
    width:100%;
	margin: 0;
	border-radius: 0 !important;
	border: 1px solid #e7e7e7;
	padding-left: 10px;
	
	
}


.sap_input_bg
{
	background-color: #e2f1fe
}

.email_form .select2-selection__rendered {
    width: 500px !important;
}

.transaction_input
{
	height: 30px;
    line-height: 30px;
    padding-right: 10px;
    padding-left: 10px;
    width:100%;
	margin: 0;
	border-radius: 0 !important;
	border: 0;
}

.transactions_row td
{
	margin: 0 !important;
	padding: 0 !important;
}


.plugin_status_bar
{
	width: 100%;
	border: 1px solid;
	height: 35px;
	
}

.page{
    width: 50px !important;
}

.sap_document_link
{
    width: 350px;
    height: 30px;
    display:inline-block;
    padding: 5px;
    text-align: left;
    border-radius: 5px;
    border: 1px solid;
    color: black;
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 17px;
    font-weight: bold;
    background-color: #7399ea;
}

.sap_document_link:hover
{
   background-color: grey;
   cursor: pointer;
}



.file_list_container{
    width: 100%;
    border: 1px solid rgb(204, 204, 204);
    height: 200px;
}

.file_list_document_container{
    width: 140px;
    height: 180px;
    border: 1px solid rgb(204, 204, 204);
    border-radius: 5px;
    margin: 5px;
    float: left;
    }
    
    .document_image{
        width: 120px;
        height: 160px;
       
    }
    
     .document_image img{
         width: 119px;
         height: 119px;
         cursor: pointer;
     } 
    .document_actions{
        vertical-align: top;
        text-align: center;
        
        width: 19px;
        }
        
    .document_action_item{
        color: rgb(204, 204, 204);
        }
    
        
    .document_action_item:hover{
        cursor: pointer;
        font-weight: bold;
        color: black;
        }

    .document_filename {
        color: #999;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding-left: 5px;
        padding-bottom: 5px;
         width: 119px;
    }
    
     .document_filename:hover{
        cursor: pointer;
        font-weight: bold;
        color: black;
         white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* contract preview frames (existing and newly selected) fill their column, the plugin's fixed 213px/400px content width overflowed narrow columns */
    .file_input_preview .file-preview-frame{
        float: none !important;
        width: calc(100% - 16px) !important;
        box-sizing: border-box;
    }

    .file_input_preview .kv-file-content{
        width: 100% !important;
        height: 200px !important;
    }

    .file_input_preview .file-preview-pdf
    {
        width: 100% !important;
        height: 200px !important;
    }

    /* the footer is a fixed 70px, its floated buttons wrap in a narrow column and hang out the bottom */
    .file_input_preview .file-thumbnail-footer{
        height: auto !important;
        display: flow-root;
    }

    .file_input_preview .file-footer-caption{
        margin-bottom: 4px;
    }

    .file_input_preview .file-caption-info,
    .file_input_preview .file-size-info{
        width: 100%;
    }