.customer-file {
	font-family: 'Segoe UI', sans-serif;
	font-size: 13px;
	background-color: #f4f4f4;
	padding: 20px 40px;
	color: #333;
}

.customer-header {
	color: white;
	padding: 8px 10px 0px;
	text-align: center;
	position: relative;
	background-color: #013f7d;
	margin-left: 150px;
}

.customer-header h2 {
	color: white;
	font-weight: 400;
	font-size: 28px;
	line-height: 1.1;
	margin: 0;
	padding: 10px;
}

.balance-display {
	text-align: right;
	font-size: 13px;
	line-height: 1.2;
}

.balance-display div {
	float: right;
	/* display: block; */
}

.balance-display .amount {
	float: right;
	color: white;
	font-weight: 400;
	font-size: 14px;
	padding: 5px;
	margin-top: 5px;
	background-color: darkcyan;

}

/* Add left margin to content following customer-header */
.customer-header+form {
	margin-left: 150px;
}

.customer-header+div {
	margin-left: 0px;
}

/* Also apply margin to forms that come after customer-header (even if not direct siblings) */
.customer-header~form {
	margin-left: 150px;
}

/* .customer-header~div {
	margin-left: 145px
} */

/* Do not offset Bootstrap modals – they manage their own centering */
.customer-header~div.modal {
	margin-left: 0;
}

/* Apply margin to jobsNavbar and other content between header and form */
/* .customer-header~div,
.customer-header~nav {
	margin-left: 0px;
} */

.customer-form {
	/* background-color: #f4f4f4e2 !important; */
	flex-direction: column;
	padding: 0 30px;
}

.form-header {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 15px;
}

.form-control,
select.form-control {
	padding: 2px 6px;
	/* font-size: 14px !important; */
	font-weight: normal !important;
	border: 1px solid #ccc;
	border-radius: 5px;


}

/* when the input or select with class .form-control gets focus */
.form-control:focus,
select.form-control:focus {
	outline: none;
	border-color: goldenrod;
	box-shadow: 0 0 3px rgba(218, 165, 32, 0.5);
}

label {
	font-weight: 400;
	font-size: 12px;
}

h4 {
	margin-top: 16px;
	font-size: 14px !important;
	padding-bottom: 6px;
	border-bottom: 1px solid rgba(136, 136, 136, 0.3) !important;
	color: gray !important;
	font-weight: 100 !important;
}

input {
	background-color: white;
	font-size: 12px !important;
	font-weight: 400 !important;
}

input[readonly] {
	background-color: #eaeaea;
	border: 1px solid #bbb;
}

/* Styles moved from src/views/companydetails/addcompanydetails.hbs */
/* Force text inputs and emails to uppercase for this form */
input[type="text"],
input[type="email"] {
	text-transform: uppercase;
}

.input-style {
	font-size: 14px !important;
	font-weight: lighter !important;
	padding: 8px 12px !important;
}

.input-style::placeholder {
	color: #999;
	/* your colour here */
	opacity: 1;
	/* ensure browsers don’t fade it out */
}

.form-control {
	padding: 2px 12px !important;
}

.col-form-label {
	padding: 8px 12px !important;
}

/* Use flexbox for the form group row */
.form-group.row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.form-group .col-4 {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.form-group .col-8 {
	display: flex;
	align-items: center;
}

/* Helper classes replacing inline attributes in addcompanydetails.hbs */
.welcome-header-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	text-align: center;
}

.welcome-header-text {
	color: white !important;
	font-weight: 100;
	font-size: 18px !important;
}

.container-block {
	display: block;
}

.company-card {
	width: 500px;
	background-color: #f4f4f4e2 !important;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.company-card-body {
	font-size: 12px;
}

.fw-bold {
	font-weight: bold !important;
}

.text-danger {
	color: red !important;
}

.btn-outline-primary {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 2px;
}

/* universal tab styling for both buttons and anchors */
.customer-tabs .customer-tab {
	display: inline-block;
	margin-right: 4px;
	padding: 6px 12px;
	border: 1px solid #999;
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	background-color: #f4f4f4bf;
	color: #003366;
	font-size: 13px;
	font-weight: 100;
	box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.1);
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s;
	width: 155px !important;
}

.customer-tabs .customer-tab:hover {
	background-color: goldenrod;
}

.customer-tabs .customer-tab.active {
	background-color: #f4f4f4;
	color: navy;
	font-weight: 400;
	box-shadow: none;
	font-size: 15px;
	text-shadow: gray 1px 1px 2px;
}

.row-radio {
	/* start with no native look */
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #007bff;
	border-radius: 10%;
	margin: 0px;
	cursor: pointer;
	padding: 2px;
}

/* the inner dot when checked */
.row-radio:checked {
	background-color: goldenrod;
}

.filter-checkbox {
	/* start with no native look */
	-webkit-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #007bff;
	border-radius: 10%;
	margin: 0px;
	cursor: pointer;
	padding: 2px;
}

/* the inner dot when checked */
.filter-checkbox:checked {
	background-color: goldenrod;
}

/* ──────────────────────────────────────────────────────────
   1) LAYOUT FOR JOBS / INVOICES TABLE
────────────────────────────────────────────────────────── */
/* Center the jobs table inside its container and make invoice area scrollable */
/* Styles moved from src/views/partials/supplier/invoices.hbs */
/* Make only the invoices area scrollable while keeping the rest of the page in place.
   Assumption: header + navbar + other chrome take ~220px vertically; tweak the calc() value
   if your layout requires a different offset. */
.jobs-container {
	display: block;
	justify-content: center;
	padding: 20px;
	padding-top: 0px;
	box-sizing: content-box !important;
	background-color: #f4f4f4e2;
	overflow: auto;
	max-height: calc(100vh - 180px);
}

.stock-container {
	display: block;
	justify-content: center;
	padding: 20px;
	padding-top: 0px;
	box-sizing: content-box !important;
	background-color: #f4f4f4e2;
	overflow: auto;
	max-height: calc(100vh - 170px);
}

/* Vehicle History Container with scroll and sticky table headers */
.vehicle-history-container {
	display: block;
	padding: 20px;
	padding-top: 0px;
	box-sizing: content-box !important;
	background-color: #f4f4f4e2;
	overflow: auto;
	max-height: calc(100vh - 150px);
}

.jobs-table {
	/* table-layout: fixed; */
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
	font-size: 12px;
	width: 100%;
	border-collapse: collapse;
}

/* Keep the table header visible while scrolling the rows inside the .jobs-container */
.jobs-table thead th {
	position: sticky;
	top: 0;
	background: lightslategrey;
	z-index: 2;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.06);
}

.jobs-table th,
.jobs-table td {
	border: 1px solid #ccc;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 3px 10px !important;
}

.jobs-table th {
	background-color: lightslategray;
	color: white;
	font-weight: 100;
	font-size: 14px;
	padding: 3px 10px !important;
}

table.jobs-table.dataTable th,
table.jobs-table.dataTable td {
	padding: 3px 10px !important;
	box-sizing: border-box;
	cursor: context-menu;
}

.clickable-row-jobs:hover {
	background-color: #f0f8ff;
}

.detail-card {
	display: table;
	margin: 20px;
	margin-top: 0px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #eaeaea;
	padding: 16px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.jobs-navbar {
	display: flex;
	align-items: center;
	justify-content: start;
	padding-left: 20px;
	/* margin-bottom: 1rem; */
}

.filter-container label {
	display: inline-flex;
	align-items: center;
	margin: 0;
	cursor: pointer;
	gap: 5px;
}

form label {
	font-size: 13px;
	color: gray !important;
	margin-bottom: 0px !important;
}

.no-jobs-message {
	text-align: center;
	font-size: 16px;
	color: darkslategray;
	background-image: linear-gradient(to right, rgb(209, 209, 209), white, rgb(209, 209, 209));
	margin-top: 10px;
}

.customer-title {
	margin: 5px 0 0;
	font-size: 24px;
	padding-bottom: 10px;
	font-weight: 100;
	color: gold;
	text-shadow: 1px 1px 5px black;
}

/* Keep the table header visible while scrolling the rows inside the .jobs-container */
.jobs-table thead th {
	position: sticky;
	top: 0;
	background: lightslategrey;
	z-index: 2;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.06);
}

/* Make sure the table uses full width and doesn't collapse when placed in a scrollable container */
.jobs-table {
	width: 100%;
	border-collapse: collapse;
	padding: 3px 10px !important;
}

.jobs-table td,
.jobs-table th {
	white-space: nowrap;
	padding: 3px 10px !important;
}

/* QR Scanner Styling */
.qr-scanner-section {
	border: 2px dashed #3498db;
	border-radius: 12px;
	padding: 5px;
	text-align: center;
	margin-bottom: 1.0rem;
	margin-top: 10px;
	background: linear-gradient(135deg, #f8fbff 0%, #e3f2fd 100%);
	/* transition: all 0.3s ease; */
	width: 300px;
}

.qr-icon {
	font-size: 3rem;
	color: #3498db;
	/* margin-bottom: 1rem; */
	opacity: 0.8;
}

.qr-text {
	/* font-size: 1.1rem; */
	color: #2c3e50;
	/* font-weight: 500; */
	/* margin-bottom: 0.5rem; */
}

.qr-hint {
	font-size: 0.9rem;
	color: #6c757d;
	font-style: italic;
}

.scan-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #3498db;
	color: white;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	/* transition: all 0.3s ease; */
	text-decoration: none;
	margin-top: 1rem;
}

.scan-btn:hover {
	background: #2980b9;
	transform: translateY(-1px);
	/* box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3); */
	color: white;
}

.scan-btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.video-container {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	border-radius: 12px;
	overflow: visible;
	background: transparent;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-container video {
	width: 100%;
	height: 280px;
	display: block;
}

.camera-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	background: rgba(44, 62, 80, 0.8);
	color: white;
	pointer-events: none;
	border-radius: 12px;
}

.camera-overlay i {
	font-size: 3.5rem;
	opacity: 0.8;
	margin-bottom: 1rem;
}

.scan-frame {
	width: 80%;
	max-width: 300px;
	height: 60px;
	border: 3px dashed rgba(255, 255, 255, 0.6);
	border-radius: 8px;
	position: relative;
	display: none;
}

.scan-frame.show {
	display: block;
}

.scan-frame::before,
.scan-frame::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border: 3px solid #3498db;
}

.scan-frame::before {
	top: -3px;
	left: -3px;
	border-right: none;
	border-bottom: none;
}

.scan-frame::after {
	bottom: -3px;
	right: -3px;
	border-left: none;
	border-top: none;
}

/* Mobile optimizations */
@media (max-width: 576px) {
	.camera-overlay i {
		font-size: 2.5rem;
		margin-bottom: 0.75rem;
	}

	.scan-frame {
		width: 85%;
		max-width: 250px;
		height: 50px;
	}

	.scan-frame::before,
	.scan-frame::after {
		width: 15px;
		height: 15px;
		border: 2px solid #3498db;
	}
}

@media (max-width: 384px) {
	.camera-overlay i {
		font-size: 2rem;
		margin-bottom: 0.5rem;
	}

	.scan-frame {
		width: 90%;
		max-width: 180px;
		height: 40px;
	}

	.scan-frame::before,
	.scan-frame::after {
		width: 12px;
		height: 12px;
	}
}

.camera-selection {
	margin: 1.5rem 0;
}

.scanner-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 1.5rem;
}

.scan-result {
	background: #e8f5e8;
	border: 1px solid #c3e6cb;
	border-radius: 8px;
	padding: 1rem;
	margin-top: 1rem;
	color: #155724;
	font-weight: 600;
}

/* Vehicle Details Modal */
.vehicle-details-grid {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: white;
	border-radius: 8px;
	overflow: hidden;
}

.detail-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
	border-bottom: none;
}

.detail-row strong {
	color: #6c757d;
	font-weight: 400;
	font-size: 14px;
	flex-shrink: 0;
}

.detail-row span {
	color: blue;
	font-size: 14px;
	font-weight: 500;
	text-align: right;
	word-break: break-word;
	margin-left: 16px;
}

@media (max-width: 576px) {
	.detail-row {
		padding: 10px 12px;
	}

	.detail-row strong {
		font-size: 13px;
	}

	.detail-row span {
		font-size: 13px;
		margin-left: 12px;
	}
}

/* Ensure tables inside vehicle history have sticky headers */
.vehicle-history-container .jobs-table thead th {
	position: sticky;
	top: 0;
	background: lightslategrey;
	z-index: 2;
	box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.06);
}