body
{
	margin: 0px;
	margin-bottom: 40px;
	font-family: "Arial", sans-serif;
	font-size: 14px;
	color: #454545;
}

.bold
{
	font-weight: bold;
}

.page-content
{
	margin: 15px;
	margin-bottom: 50px;
}

.flex-container
{
	display: flex;
}

.flex
{
	flex: 1;
}

.hidden
{
	display: none;
}

.medium-margin
{
	margin: 6px;
}

.medium-margin-top
{
	margin-top: 6px;
}

.medium-margin-left
{
	margin-left: 6px;
}

.medium-margin-right
{
	margin-right: 6px;
}

.large-margin
{
	margin: 10px;
}

.large-margin-left
{
	margin-left: 10px;
}

.large-margin-right
{
	margin-right: 10px;
}

.error-color
{
	color: #c00000;
}	

.toast
{
	padding: 5px;
	border: 1px solid;
	border-radius: 3px;
	width: 200px !important;
    position: fixed;
	display: none; 
    top: 80px !important;
    left: unset !important;
    right: 8px !important;
    z-index: 2;
    cursor: pointer;
}

.toast.toast-success
{
	background-color: rgba(0, 210, 91, 0.2);
	border-color: #00c154;
}

.toast.toast-failed
{
	background-color: #ff8989;
	border-color: #c00000;
}

.toast.toast-success i
{
	color: #00a045;
}

.toast.toast-failed i
{
	color: #c00000;
}

.disabled
{
	color: #999999;
}

.centered
{
	text-align: center;
}

.form-container
{
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	background-color: #f0f2f5;
}

.centered-container
{
	display: flex;
	justify-content: center;
	align-items: center;
}

.small-form
{
	display: flex;
	flex-direction: column;
	padding: 2rem;
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	width: 300px;
}

.card-container
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	padding: 20px;
}

.card
{
	all: unset;
	display: block;
	background: rgb(211, 204, 204);
	border-radius: 12px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	width: 280px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
	color: inherit;
}

.card.completed
{
    border: 2px solid #1f8a3b;
    background: rgba(31, 138, 59, 0.08);
}

.card i.card-icon
{
	font-size: large;
}

.card:hover
{
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card.active
{
	background-color: #45da85;
}

.card.unavailable
{
	background-color: #cea22b;
}

/* Trip Card Styles */
.trip-card-container
{
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 15px;
}

.trip-card
{
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: 1px solid #e0e0e0;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	outline: none;
}

.trip-card:focus
{
	outline: none;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.trip-card-header
{
	background: #f8f9fa;
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.trip-card-minimal
{
	padding: 15px;
}

.trip-card-expanded
{
	padding: 15px;
	display: none;
	border-top: 1px solid #e0e0e0;
	background: #fafafa;
}

.trip-card.expanded .trip-card-expanded
{
	display: block;
}

.trip-card.expanded .trip-card-minimal .expand-icon
{
	transform: rotate(180deg);
}

.trip-info-row
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.trip-info-row:last-child
{
	margin-bottom: 0;
}

.trip-info-label
{
	font-weight: bold;
	color: #666;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	min-width: 80px;
}

.trip-info-value
{
	color: #333;
	font-size: 14px;
	flex: 1;
	text-align: right;
}

.vehicle-available
{
	color: #28a745 !important;
	font-weight: bold;
}

.vehicle-in-use
{
	color: #dc3545 !important;
	font-weight: bold;
}

.trip-card-title
{
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin-bottom: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.trip-card-subtitle
{
	font-size: 14px;
	color: #666;
	margin-bottom: 10px;
}

.expand-icon
{
	transition: transform 0.3s ease;
	color: #999;
	font-size: 12px;
}

.trip-card-actions
{
	position: relative;
	display: flex;
	justify-content: flex-end;
	margin-top: 15px;
	padding-top: 10px;
	border-top: 1px solid #e0e0e0;
}

.trip-card-actions .action
{
	background: #007bff;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,123,255,0.3);
	transition: all 0.3s ease;
}

/* Removed hover effects for mobile-first design */

.trip-card-actions .action i
{
	font-size: 16px;
}

/* Date Filter Form Styles */
.date-filter-form
{
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	border: 1px solid #e0e0e0;
	padding: 20px;
	margin-bottom: 20px;
}

.filter-row
{
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	align-items: flex-end;
}

.filter-row:last-child
{
	margin-bottom: 0;
}

.date-field-container
{
	flex: 1;
	display: flex;
	flex-direction: column;
}

.date-label
{
	font-weight: bold;
	color: #333;
	font-size: 14px;
	margin-bottom: 8px;
}

.date-input
{
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 16px;
	background: white;
	transition: border-color 0.3s ease;
}

.date-input::-webkit-datetime-edit-text
{
	color: #666;
}

.date-input::-webkit-datetime-edit-month-field,
.date-input::-webkit-datetime-edit-day-field,
.date-input::-webkit-datetime-edit-year-field
{
	color: #333;
}

.date-input:focus
{
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.search-button-container
{
	display: flex;
	justify-content: center;
	gap: 15px;
	width: 100%;
}

.search-button
{
	background: #007bff;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s ease;
	min-width: 120px;
}

.search-button:hover
{
	background: #0056b3;
}

.search-button:active
{
	background: #004085;
	transform: translateY(1px);
}

.clear-button
{
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.3s ease;
	min-width: 120px;
}

.clear-button:hover
{
	background: #545b62;
}

.clear-button:active
{
	background: #3d4449;
	transform: translateY(1px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px)
{
	.date-filter-form
	{
		padding: 15px;
		margin-bottom: 15px;
	}
	
	.filter-row
	{
		flex-direction: column;
		gap: 10px;
	}
	
	.date-field-container
	{
		width: 100%;
	}
	
	.date-input
	{
		font-size: 16px; /* Prevents zoom on iOS */
		padding: 14px;
	}
	
	.search-button,
	.clear-button
	{
		flex: 1;
		padding: 14px;
		font-size: 16px;
	}
	
	.trip-card-container
	{
		padding: 10px;
		gap: 12px;
	}
	
	.trip-card-header,
	.trip-card-minimal,
	.trip-card-expanded
	{
		padding: 12px;
	}
	
	.trip-card-title
	{
		font-size: 15px;
	}
	
	.trip-info-value
	{
		font-size: 13px;
	}
}

.ui-accordion-content:has(.no-accordion-padding)
{
	padding: 0 !important;
}

.ui-accordion-content:not(.no-accordion-padding)
{
	padding: 0 !important;
}

/* Damages Table Styles */
.damages-table
{
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.damages-table th,
.damages-table td
{
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.damages-table th
{
	background: #f8f9fa;
	font-weight: bold;
	color: #333;
	font-size: 14px;
}

.part-name-header
{
	width: 40%;
}

.damaged-header
{
	width: 30%;
	text-align: center;
}

.actions-header
{
	width: 30%;
	text-align: center;
}

.part-name-cell
{
	font-weight: 500;
	color: #333;
}

.damaged-cell
{
	text-align: center;
}

.radio-container
{
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.radio-option
{
	display: flex;
	align-items: center;
	gap: 5px;
}

.radio-option label
{
	font-size: 14px;
	color: #333;
	cursor: pointer;
	margin: 0;
}

.actions-cell
{
	text-align: center;
}

.actions-container
{
	display: flex;
	justify-content: center;
	gap: 10px;
	align-items: center;
}

.action-icon
{
	background: #007bff;
	border: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	cursor: pointer;
	transition: all 0.3s ease;
}

.action-icon:hover
{
	background: #0056b3;
	transform: scale(1.1);
}

.action-icon i
{
	font-size: 16px;
}

.camera-icon
{
	background: #28a745;
}

.camera-icon:hover
{
	background: #1e7e34;
}

.centered-button
{
	display: block;
	margin: 20px auto;
	text-align: center;
}

.camera-upload-wrapper
{
	position: relative;
	display: inline-block;
}

.camera-input
{
	position: absolute;
	left: -9999px;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.camera-icon
{
	background: none !important;
	cursor: pointer;
}

/* Image viewer styles */
.image-viewer
{
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
}

.image-viewer.hidden
{
	display: none;
}

.damage-photo
{
	max-width: 90%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.action-icon
{
	background: none !important;
	border: none !important;
	width: 45px;
	height: 45px;
	padding: 0;
}

.action-icon i
{
	font-size: 20px;
	color: #333;
}

.camera-icon i
{
	color: #007bff;
}

.delete-icon i
{
	color: #dc3545;
}

.view-icon i
{
	color: #28a745;
}

/* Checklist Photos Grid Styles */
.checklist-photos-container
{
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: 20px auto;
}

.checklist-photos-background
{
	position: relative;
	width: 100%;
}

.checklist-car-bg
{
	width: 100%;
	height: auto;
	display: block;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.checklist-photos-grid
{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr;
	/* gap: 5px; */
	padding: 10px;
	box-sizing: border-box;
}

.photo-section
{
	position: relative;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid #007bff;
	/* border-radius: 6px; */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60px;
	padding: 5px;
	transition: all 0.3s ease;
	box-sizing: border-box;
}

.photo-actions-container
{
	display: flex;
	flex-direction: row;
	gap: 3px;
	align-items: center;
	justify-content: center;
}

.photo-section .action-icon
{
	width: 25px;
	height: 25px;
	padding: 0;
	background: none !important;
	border: none !important;
	cursor: pointer;
}

.photo-section .action-icon i
{
	font-size: 16px;
}

.photo-section .camera-icon i
{
	color: #007bff;
}

.photo-section .delete-icon i
{
	color: #dc3545;
}

.photo-section .view-icon i
{
	color: #28a745;
}

.photo-section .camera-upload-wrapper
{
	position: relative;
}

.photo-section .camera-input
{
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

/* Signature Canvas Styles */
/* .signature-container
{
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
} */

.signature-canvas-wrapper
{
    text-align: center;
	padding-bottom: 10px;
}

.signature-canvas
{
	width: 290px;
	height: 200px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    display: block;
    margin: 0 auto 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signature-controls
{
    text-align: center;
}

.save-signature-btn
{
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.clear-signature-btn
{
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
    margin-right: 10px;
}

.save-signature-btn:hover
{
    background: #218838;
}

.clear-signature-btn:hover
{
    background: #c82333;
}

.save-signature-btn:disabled
{
    background: #6c757d;
    cursor: not-allowed;
}

.signature-display
{
    text-align: center;
}

.signature-image
{
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.signature-status
{
    margin-top: 10px;
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* Mobile responsive for checklist photos */
@media (max-width: 768px)
{
	.checklist-photos-container
	{
		max-width: 90vw;
		margin: 15px auto;
	}
	
	.checklist-photos-grid
	{
		/* gap: 3px; */
		padding: 8px;
	}
	
	.photo-section
	{
		min-height: 50px;
		padding: 3px;
	}
	
	.photo-section .action-icon
	{
		width: 20px;
		height: 20px;
	}
	
	.photo-section .action-icon i
	{
		font-size: 16px;
	}
	
	.photo-actions-container
	{
		gap: 2px;
	}
}

@media (max-width: 480px)
{
	.checklist-photos-grid
	{
		/* gap: 2px; */
		padding: 5px;
	}
	
	.photo-section
	{
		min-height: 40px;
		padding: 2px;
	}
	
	.photo-section .action-icon
	{
		width: 18px;
		height: 18px;
	}
	
	.photo-section .action-icon i
	{
		font-size: 16px;
	}
}

/* Mobile responsive for damages table */
@media (max-width: 768px)
{
	.damages-table
	{
		font-size: 14px;
	}
	
	.damages-table th,
	.damages-table td
	{
		padding: 8px;
	}
	
	.radio-container
	{
		gap: 10px;
	}
	
	.action-icon
	{
		width: 35px;
		height: 35px;
	}
	
	.action-icon i
	{
		font-size: 14px;
	}
}

a.styless
{
	text-decoration: none;
	color: #eb1e26;
	outline: none;
}

.width-10
{
	width: 10%;
}

.width-90
{
	width: 90%;
}

.large-icon
{
	font-size: 20px;;
}

i.fa-whatsapp
{
	color: #25D366;
}

.right-align
{
	text-align: right;
}

.basic-table
{
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.basic-table th,
.basic-table td
{
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #e0e0e0;
}

.basic-table th
{
	background: #f8f9fa;
	font-weight: bold;
	color: #333;
	font-size: 14px;
}

.basic-table tr.odd
{
	background: #f8f9fa;
}

.terms-box{
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    max-height: 55vh;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.4;
}