@import url('styles_scheduling.css');

.date-filter-section {
	padding: 10px;
	background-color: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	margin-bottom: 10px;
}

.date-filter-section label {
	font-weight: bold;
	margin-bottom: 5px;
	color: #495057;
}

.date-filter-section input[type="date"] {
	width: 140px;
	display: inline-block;
}

.date-filter-section .btn {
	margin-left: 5px;
}

.hourglass {
	position: relative;
	width: 100px;
	min-height: 30px;
	/* Minimum height for visibility */
	color: white;
	text-align: center;
	font-size: 1.2em;
	clip-path: polygon(0 0, 100% 0, 75% 50%, 100% 100%, 0 100%, 25% 50%);
	transition: height 0.3s ease;
	/* Smooth height transitions */
	margin: 0 auto;
	/* Center the hourglass horizontally */
}

/* Center the text vertically */
.hourglass span {
	position: absolute;
	left: 0;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
}

/* Timeline position colors */
.hourglass-bidding {
	background-color: #000000;
}

.hourglass-flight {
	background-color: #0066cc;
}

.hourglass-data {
	background-color: #28a745;
}

.hourglass-invoice {
	background-color: #dc3545;
}

.hourglass-reporting {
	background-color: #fd7e14;
}

.timeline-position-new {
	background-color: #007bff;
	/* Blue */
}

#view-kml-map-canvas {
	width: 100%;
	height: 400px;
	border: 1px solid #cfcfcf;
}

.scheduleFilter-tag-select-multi .tag {
	cursor: pointer;
}

.scheduleFilter-tag-select-multi .tag:hover {
	opacity: 0.7;
}

.scheduleFilter-tag-select-multi .tag-selected {
	opacity: 0.5;
	border: 2px dashed #505050;
	box-shadow: 0 0 8px #C8C8C8;
}

.footable-tag-select-multi .tag {
	cursor: pointer;
}

.footable-tag-select-multi .tag:hover {
	opacity: 0.7;
}

.footable-tag-select-multi .tag-selected {
	opacity: 0.5;
	border: 2px dashed #505050;
	box-shadow: 0 0 8px #C8C8C8;
}

.lineitems-choose {
	width: 32%;
	box-sizing: border-box;
	color: #505050;
	display: inline-block;
	text-align: center;
	padding: 5px;
	margin: 2px 0;
}

.lineitems-choose-category {
	background: #E3FAFF;
	border: 1px solid #9ACAD5;
}

.lineitems-choose-item {
	background: #EBFFEB;
	border: 1px solid #A8D4A8;
}

.lineitems-choose-back {
	background: #F4F4F4;
	border: 1px solid #CDCDCD;
}

.lineitems-chosen {
	background: #FDFFD2 !important;
	border: 1px dashed #B7BE3C !important;
}

.customerLogo {
	max-width: 200px;
	max-height: 200px;
}

.customerLogo-sm {
	max-width: 100px;
	max-height: 100px;
}

.customerLogo-xs {
	max-width: 50px;
	max-height: 50px;
}

.map-marker-label {
	width: 25px;
	height: 25px;
	border-radius: 10px;
	border-top-left-radius: 0px;
	box-shadow: 4px 4px 2px rgba(0, 0, 0, 0.5);
}


/* Map Marker Styles */
.map-marker-label {
	background-color: #ffffff;
	border: 2px solid #333333;
	border-radius: 8px;
	padding: 4px;
	font-size: 12px;
	font-weight: bold;
	color: #333333;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	max-width: 200px;
	white-space: nowrap;
	overflow: hidden;
}

.map-marker-label:hover {
	background-color: #f0f0f0;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Base Coordinates Markers - Blue styling */
.map-marker-label-base-coords {
	background-color: #e3f2fd !important;
	border: 2px solid #2196f3 !important;
	color: #1976d2 !important;
}

.map-marker-label-base-coords:hover {
	background-color: #bbdefb !important;
	border-color: #1976d2 !important;
}

/* Different job type marker colors */
.map-marker-label-inspection {
	border-color: #4caf50;
	background-color: #e8f5e8;
	color: #2e7d32;
}

.map-marker-label-mapping {
	border-color: #ff9800;
	background-color: #fff3e0;
	color: #ef6c00;
}

.map-marker-label-survey {
	border-color: #9c27b0;
	background-color: #f3e5f5;
	color: #7b1fa2;
}

.map-marker-label-construction {
	border-color: #f44336;
	background-color: #ffebee;
	color: #d32f2f;
}

/* Blinking animation for unscheduled items */
.blinkMe {
	animation: blinker 1s linear infinite;
}

@keyframes blinker {
	50% {
		opacity: 0.5;
	}
}

.hourglass-container {
	position: relative;
	cursor: pointer;
	z-index: 1;
}

.hourglass-container:hover {
	z-index: 1000;
}

.hourglass-popup {
	display: none;
	position: absolute;
	top: calc(100% + 0px);
	/* Position 5px below the container */
	left: 50%;
	transform: translateX(-50%);
	width: 200px;
	border-radius: 4px;
	padding: 10px;
	z-index: 1000;
	background: rgba(255, 255, 255, 0.9);
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hourglass-container:hover .hourglass-popup {
	display: block;
	animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.hourglass-status {
	position: relative;
	width: 100%;
	height: 25px;
	min-height: 25px;
	color: white;
	text-align: center;
	margin: 5px 0;
	font-size: 1.2em;
	clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%, 15% 50%);
	transition: height 0.3s ease;
}

.hourglass-status span {
	position: absolute;
	left: 0;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	padding: 0 20px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hourglass-popup hr {
	margin: 5px;
}

.hourglass-popup hr:last-of-type {
	display: none;
}

.hourglass-container .footable-tooltip {
	position: relative;
	width: 100%;
}

.hourglass-status-table {
	width: 100%;
	margin: 0;
	border: none;
}

.hourglass-status-table td {
	padding: 4px 8px;
	border: none;
	color: white;
}

.hourglass-status-row {
	position: relative;
	margin: 3px 0;
	transition: height 0.3s ease;
}

.hourglass-status-popup {
	display: none;
	position: absolute;
	left: 100%;
	top: 0;
	margin-left: -10px;
	background: white;
	border: 1px solid black;
	border-radius: 4px;
	padding: 10px;
	z-index: 1001;
	min-width: 300px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	right: auto;
}

/* New class for left-side positioning */
.hourglass-status-popup.position-left {
	left: auto;
	right: 100%;
	margin-left: 0;
	margin-right: -10px;
}

.hourglass-status-row:hover .hourglass-status-popup {
	display: block;
	animation: fadeIn 0.2s ease-in-out;
}

.hourglass-status-popup table {
	margin: 0;
	background: white;
	color: black;
}

.hourglass-status-popup th,
.hourglass-status-popup td {
	padding: 4px 8px;
	color: black;
}

/* Add new styles for timeline labels */
.timeline-label {
	margin: 5px;
	width: 100%;
	text-align: center;
	/* Ensure text is centered */
	font-weight: bold;
	color: #505050;
	text-transform: capitalize;
}

#timelineContainer {
	margin: 10px;
	padding: 5px 25px;
	border-radius: 25px;
	font-size: 0.8em;
	border: 1px solid #e6e6e6;
	box-shadow: 5px 5px 5px #e6e6e6;
}

#timelineContainerContent {
	display: flex;
	justify-content: center;
	align-items: end;
}

.hourglass-container-wrapper {
	text-align: center;
	flex: 1;
}

#timelineContainer.timelineHidden {
	display: inline-block;
	width: 150px !important;
	float: right !important;
}

/* KML Download Buttons in Route Widget */
.kml-downloads {
	margin-top: 5px;
}

.kml-downloads .btn {
	padding: 2px 8px;
	font-size: 11px;
	margin: 1px;
	border: 1px solid #ddd;
	background-color: #f8f9fa;
	color: #495057;
	text-decoration: none;
	transition: all 0.2s ease;
}

.kml-downloads .btn:hover {
	background-color: #e9ecef;
	border-color: #adb5bd;
	color: #212529;
	text-decoration: none;
}

.kml-downloads .btn i {
	margin-right: 3px;
}

/* Route Widget Appointment Cards */
.route-appointment-card {
	margin-bottom: 2px;
	border-radius: 4px;
	transition: all 0.2s ease;
}

.route-appointment-card:hover {
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Override list-group-item default background for route cards */
.list-group .route-appointment-card {
	background-color: inherit;
	/* Use the color from schedule-item-status class */
}

/* Ensure text is readable on colored backgrounds */
.route-appointment-card a {
	color: inherit;
}

.route-appointment-card .text-muted {
	opacity: 0.8;
}

/* ========== HOME PILOT DASHBOARD STYLES ========== */

/* Date Filter Styles */
#dateFilter {
	min-width: 200px;
	border-radius: 4px;
	border: 1px solid #ddd;
	padding: 8px 12px;
	font-size: 14px;
}

#dateFilter:focus {
	border-color: #337ab7;
	box-shadow: 0 0 0 2px rgba(51, 122, 183, 0.2);
	outline: none;
}

.date-selector-panel {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-selector-panel .panel-body {
	padding: 20px;
}

/* Weather Widget Styles */
.home-pilot-weather .weather-job-select {
	width: auto;
	margin-left: 5px;
}

.home-pilot-weather .weather-location {
	margin-left: 15px;
}

/* Scope of Work Widget Styles */
.scope-of-work-container {
	max-height: 350px;
	overflow-y: auto;
}

.scope-of-work-card {
	margin-bottom: 10px;
}

.scope-of-work-card .panel {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	background: #fff;
}

.scope-of-work-card .panel-body {
	padding: 15px;
}

.scope-of-work-card h5 {
	margin: 0 0 8px 0;
	color: #333;
	font-weight: 600;
}

.scope-of-work-card .scope-icon {
	color: #6c757d;
	margin-right: 5px;
}

.scope-of-work-card .scope-customer {
	margin-bottom: 6px;
}

.scope-of-work-card .scope-customer span {
	color: #6c757d;
}

.scope-of-work-card .scope-text {
	color: #6c757d;
	margin-top: 5px;
}

/* Equipment List Widget Styles */
.equipment-list-container {
	margin-bottom: 7px;
}

.equipment-list-info .info-icon {
	color: #17a2b8;
	margin-bottom: 10px;
}

.equipment-card {
	margin-bottom: 0px;
}

.equipment-card .panel {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
	background: #fff;
}

.equipment-card .panel-body {
	padding: 15px;
}

.equipment-card h5 {
	margin: 0 0 8px 0;
	color: #333;
	font-weight: 600;
}

.equipment-card .equipment-workorders {
	margin-bottom: 6px;
}

.equipment-card .equipment-workorders span {
	color: #6c757d;
}

/* Route Widget Styles */
.route-map {
	width: 100%;
	height: 450px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
}

.route-appointments-section {
	margin-top: 20px;
}

.route-appointments-container {
	max-height: 500px;
	overflow-y: auto;
}

/* Appointment Card Styles */
.appointment-card {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.appointment-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Improve KML Button Visibility */
.kml-downloads .btn {
	padding: 3px 10px;
	font-size: 11px;
	margin: 2px;
	border: 1px solid #007bff;
	background-color: #007bff;
	color: #ffffff;
	text-decoration: none;
	transition: all 0.2s ease;
	border-radius: 3px;
}

.kml-downloads .btn:hover {
	background-color: #0056b3;
	border-color: #0056b3;
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Appointment Card Styles */
.appointment-card {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.appointment-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.appointment-no-coords {
	margin-bottom: 6px;
}

.appointment-navigate {
	margin-top: 10px;
}

.appointment-navigate-btn {
	width: 100%;
}  .tag-jobtype-Construction{
  background: #f7d939;
  color: #ffffff;
  }
  .map-marker-label-Construction{
  background: #f7d939;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Construction{
  border-left: 5px solid #f7d939;
  }
  .tag-jobtype-CRE_-_Marketing{
  background: #5462b0;
  color: #ffffff;
  }
  .map-marker-label-CRE_-_Marketing{
  background: #5462b0;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-CRE_-_Marketing{
  border-left: 5px solid #5462b0;
  }
  .tag-jobtype-LiDAR_Mapping{
  background: #bc12d0;
  color: #ffffff;
  }
  .map-marker-label-LiDAR_Mapping{
  background: #bc12d0;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-LiDAR_Mapping{
  border-left: 5px solid #bc12d0;
  }
  .tag-jobtype-Marketing{
  background: #2d79ed;
  color: #ffffff;
  }
  .map-marker-label-Marketing{
  background: #2d79ed;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Marketing{
  border-left: 5px solid #2d79ed;
  }
  .tag-jobtype-Mission_Re-Fly{
  background: #505050;
  color: #f00c19;
  }
  .map-marker-label-Mission_Re-Fly{
  background: #505050;
  color: #f00c19;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Mission_Re-Fly{
  border-left: 5px solid #505050;
  }
  .tag-jobtype-Pallet_Count{
  background: #e47d11;
  color: #090000;
  }
  .map-marker-label-Pallet_Count{
  background: #e47d11;
  color: #090000;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Pallet_Count{
  border-left: 5px solid #e47d11;
  }
  .tag-jobtype-Photogrammetry_Mapping{
  background: #5be12d;
  color: #ffffff;
  }
  .map-marker-label-Photogrammetry_Mapping{
  background: #5be12d;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Photogrammetry_Mapping{
  border-left: 5px solid #5be12d;
  }
  .tag-jobtype-Schedule_Blackout{
  background: #170202;
  color: #00ff57;
  }
  .map-marker-label-Schedule_Blackout{
  background: #170202;
  color: #00ff57;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Schedule_Blackout{
  border-left: 5px solid #170202;
  }
  .tag-jobtype-Security{
  background: #073763;
  color: #ffffff;
  }
  .map-marker-label-Security{
  background: #073763;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Security{
  border-left: 5px solid #073763;
  }
  .tag-jobtype-Special_Request{
  background: #f70c44;
  color: #080000;
  }
  .map-marker-label-Special_Request{
  background: #f70c44;
  color: #080000;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Special_Request{
  border-left: 5px solid #f70c44;
  }
  .tag-jobtype-Stockpiles{
  background: #976400;
  color: #ffffff;
  }
  .map-marker-label-Stockpiles{
  background: #976400;
  color: #ffffff;
  border: 2px solid black;
  }
  .schedule-item-jobtype-Stockpiles{
  border-left: 5px solid #976400;
  }
  .tag-cancellationReason-test_2{
  background: #b059ff;
  color: #000000;
  }
  .tag-cancellationReason-test_new_reason{
  background: #505050;
  color: #ffffff;
  }
  .tag-status-estimates-accepted{
  background: #56d180;
  color: #ffffff;
  }
  .tag-status-estimates-converted{
  background: #fff58c;
  color: #000000;
  }
  .tag-status-estimates-declined{
  background: #b50b29;
  color: #ffffff;
  }
  .tag-status-estimates-Ordered{
  background: #505050;
  color: #ffffff;
  }
  .tag-status-estimates-pending{
  background: #d69a00;
  color: #ffffff;
  }
  .tag-status-estimates-sent{
  background: #73cdff;
  color: #ffffff;
  }
  .tag-status-workorders-Cancelled{
  background: #17202a;
  color: #ffffff;
  }
  .schedule-item-status-Cancelled{
  background: #17202a;
  color: #ffffff;
  }
  .schedule-item-status-Cancelled a{
  color: #ffffff;
  }
  .tag-status-workorders-Capture_Complete{
  background: #229954;
  color: #000000;
  }
  .schedule-item-status-Capture_Complete{
  background: #229954;
  color: #000000;
  }
  .schedule-item-status-Capture_Complete a{
  color: #000000;
  }
  .tag-status-workorders-Capture_In-Progress{
  background: #138d75;
  color: #ffffff;
  }
  .schedule-item-status-Capture_In-Progress{
  background: #138d75;
  color: #ffffff;
  }
  .schedule-item-status-Capture_In-Progress a{
  color: #ffffff;
  }
  .tag-status-workorders-Data_Assigned{
  background: #ca6f1e;
  color: #ffffff;
  }
  .schedule-item-status-Data_Assigned{
  background: #ca6f1e;
  color: #ffffff;
  }
  .schedule-item-status-Data_Assigned a{
  color: #ffffff;
  }
  .tag-status-workorders-Data_In-Progress{
  background: #e81010;
  color: #000000;
  }
  .schedule-item-status-Data_In-Progress{
  background: #e81010;
  color: #000000;
  }
  .schedule-item-status-Data_In-Progress a{
  color: #000000;
  }
  .tag-status-workorders-Data_Unprocessed{
  background: #f39c12;
  color: #000000;
  }
  .schedule-item-status-Data_Unprocessed{
  background: #f39c12;
  color: #000000;
  }
  .schedule-item-status-Data_Unprocessed a{
  color: #000000;
  }
  .tag-status-workorders-Data_Uploaded{
  background: #f1c40f;
  color: #000000;
  }
  .schedule-item-status-Data_Uploaded{
  background: #f1c40f;
  color: #000000;
  }
  .schedule-item-status-Data_Uploaded a{
  color: #000000;
  }
  .tag-status-workorders-Delivered{
  background: #b3b6b7;
  color: #ffffff;
  }
  .schedule-item-status-Delivered{
  background: #b3b6b7;
  color: #ffffff;
  }
  .schedule-item-status-Delivered a{
  color: #ffffff;
  }
  .tag-status-workorders-Dispatched{
  background: #48c9b0;
  color: #000000;
  }
  .schedule-item-status-Dispatched{
  background: #48c9b0;
  color: #000000;
  }
  .schedule-item-status-Dispatched a{
  color: #000000;
  }
  .tag-status-workorders-invoiced{
  background: #34495e;
  color: #ffffff;
  }
  .schedule-item-status-invoiced{
  background: #34495e;
  color: #ffffff;
  }
  .schedule-item-status-invoiced a{
  color: #ffffff;
  }
  .tag-status-workorders-new{
  background: #af7ac5;
  color: #ffffff;
  }
  .schedule-item-status-new{
  background: #af7ac5;
  color: #ffffff;
  }
  .schedule-item-status-new a{
  color: #ffffff;
  }
  .tag-status-workorders-QAQC{
  background: #a04000;
  color: #ffffff;
  }
  .schedule-item-status-QAQC{
  background: #a04000;
  color: #ffffff;
  }
  .schedule-item-status-QAQC a{
  color: #ffffff;
  }
  .tag-status-workorders-Ready_for_Delivery{
  background: #784a04;
  color: #000000;
  }
  .schedule-item-status-Ready_for_Delivery{
  background: #784a04;
  color: #000000;
  }
  .schedule-item-status-Ready_for_Delivery a{
  color: #000000;
  }
  .tag-status-workorders-scheduled{
  background: #b9d413;
  color: #070505;
  }
  .schedule-item-status-scheduled{
  background: #b9d413;
  color: #070505;
  }
  .schedule-item-status-scheduled a{
  color: #070505;
  }
  .tag-status-invoices-Bill_sent{
  background: #d890d6;
  color: #ffffff;
  }
  .tag-status-invoices-Check{
  background: #93c4dc;
  color: #ffffff;
  }
  .tag-status-invoices-not_paid{
  background: #d91129;
  color: #ffffff;
  }
  .tag-status-invoices-paid{
  background: #0b9c11;
  color: #ffffff;
  }
  .tag-status-invoices-partially_paid{
  background: #dea718;
  color: #ffffff;
  }
  .tag-user-32{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-33{
  background: #f8bbff;
  color: #1b0e13;
  }
  .tag-user-34{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-38{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-39{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-40{
  background: #33007a;
  color: #ffffff;
  }
  .tag-user-46{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-41{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-42{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-43{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-44{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-45{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-47{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-49{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-50{
  background: #ffffff;
  color: #000000;
  }
  .tag-user-51{
  background: #ffffff;
  color: #000000;
  }
  .tag-user-52{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-53{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-54{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-55{
  background: #FFFFFF;
  color: #000000;
  }
  .tag-user-57{
  background: #FFFFFF;
  color: #000000;
  }





