body {
	font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
		'Helvetica Neue', sans-serif;
	background: #f5f7fa;
	padding: 20px;
	color: #333;
	line-height: 1.5;
}

.container {
	max-width: 1000px;
	margin: auto;
	background: white;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.header {
	text-align: center;
	margin-bottom: 40px;
}

.header h1 {
	color: #2196f3;
	margin-bottom: 10px;
	font-size: 2.2rem;
}

.header p {
	color: #666;
	font-size: 1.2rem;
}

/* Main Options Styles */
.main-options {
	display: flex;
	gap: 30px;
	margin: 40px 0;
	flex-wrap: wrap;
}

.main-option-card {
	flex: 1;
	min-width: 300px;
	background: white;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e0e0;
	transition: transform 0.3s, box-shadow 0.3s;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.main-option-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.main-option-card h2 {
	color: #2196f3;
	margin-bottom: 15px;
	font-weight: 500;
}

.main-option-card p {
	color: #666;
	margin-bottom: 30px;
	flex-grow: 1;
}

/* Main Buttons */
.main-btn {
	background: #2196f3;
	color: white;
	padding: 14px 28px;
	border: none;
	border-radius: 4px;
	font-weight: 500;
	font-size: 1.1rem;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: background-color 0.3s, transform 0.2s;
	cursor: pointer;
	width: 80%;
	max-width: 250px;
}

.main-btn:hover {
	background: #1976d2;
	transform: translateY(-2px);
}

.main-btn:active {
	transform: translateY(0);
}

.main-btn.secondary {
	background: #607d8b;
}

.main-btn.secondary:hover {
	background: #455a64;
}

/* Estimator Section */
.estimator-section {
	margin-top: 30px;
}

.section-title {
	color: #2196f3;
	margin-bottom: 10px;
	text-align: center;
}

.section-description {
	color: #666;
	text-align: center;
	margin-bottom: 30px;
}

.back-btn {
	background: none;
	color: #2196f3;
	border: none;
	padding: 8px 16px;
	margin: 30px 0 10px;
	cursor: pointer;
	font-weight: 500;
	text-decoration: none;
	font-size: 1rem;
	display: block;
	transition: color 0.3s;
}

.back-btn:hover {
	color: #1976d2;
	text-decoration: underline;
}

/* Estimator Cards */
.estimator-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 30px;
}

.estimator-card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	padding: 20px;
	transition: transform 0.3s, box-shadow 0.3s;
	border: 1px solid #e0e0e0;
	display: flex;
	flex-direction: column;
}

.estimator-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.estimator-card h3 {
	color: #2196f3;
	margin-top: 0;
	margin-bottom: 15px;
	font-weight: 500;
}

.estimator-card p {
	color: #666;
	flex-grow: 1;
	margin-bottom: 20px;
}

.estimator-card .btn {
	background: #2196f3;
	color: white;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	font-weight: 500;
	text-decoration: none;
	display: inline-block;
	text-align: center;
	transition: background-color 0.3s;
}

.estimator-card .btn:hover {
	background: #1976d2;
}

/* Navigation styles */
.nav-back {
	margin-bottom: 20px;
	display: inline-block;
	color: #2196f3;
	text-decoration: none;
	font-weight: 500;
}

.nav-back:hover {
	text-decoration: underline;
}

/* Logo styles */
.logo {
	max-height: 60px;
	margin-bottom: 15px;
}

footer {
	margin-top: 50px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

/* CRUD Operations Styles */

/* Modal Styles */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	max-width: 90%;
	max-height: 90%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 20px 24px 16px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	color: #333;
	font-size: 18px;
	font-weight: 600;
}

.modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.modal-close:hover {
	background-color: #f5f5f5;
	color: #333;
}

.modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.modal-footer {
	padding: 16px 24px 20px;
	border-top: 1px solid #e0e0e0;
	display: flex;
	justify-content: flex-end;
	gap: 12px;
}

/* Form Styles */
.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #333;
	font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

/* Save Status Styles */
.save-status-info {
	margin-top: 16px;
	padding: 12px;
	border-radius: 6px;
	border-left: 4px solid #2196f3;
	background-color: #f8f9fa;
}

.save-status-content {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #333;
}

.save-status-content .material-icons {
	font-size: 18px;
}

.save-status-content.info {
	color: #2196f3;
}

.save-status-content.saving {
	color: #ff9800;
}

.save-status-content.success {
	color: #4caf50;
}

.save-status-content.error {
	color: #f44336;
}

/* Button Styles */
.btn {
	padding: 8px 16px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn.primary {
	background-color: #2196f3;
	color: white;
}

.btn.primary:hover {
	background-color: #1976d2;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn.secondary {
	background-color: #f5f5f5;
	color: #333;
}

.btn.secondary:hover {
	background-color: #e0e0e0;
}

.btn.danger {
	background-color: #f44336;
	color: white;
}

.btn.danger:hover {
	background-color: #d32f2f;
}

.btn-icon {
	background: none;
	border: none;
	padding: 6px;
	border-radius: 4px;
	cursor: pointer;
	color: #666;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-icon:hover {
	background-color: #f5f5f5;
	color: #333;
}

.btn-icon .material-icons {
	font-size: 18px;
}

/* Estimate List Styles */
.estimates-container {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.estimates-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.estimates-title {
	font-size: 20px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.estimates-actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.save-status-header {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #4caf50;
	padding: 4px 8px;
	background-color: #f1f8e9;
	border-radius: 4px;
	border: 1px solid #c8e6c9;
}

.save-status-header .material-icons {
	font-size: 14px;
}

.save-status-header small {
	color: #666;
	margin-left: 4px;
}

.estimates-toolbar {
	padding: 16px 24px;
	border-bottom: 1px solid #e0e0e0;
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.search-box {
	display: flex;
	align-items: center;
	background: #f5f5f5;
	border-radius: 4px;
	padding: 8px 12px;
	flex: 1;
	max-width: 300px;
}

.search-box input {
	border: none;
	background: none;
	padding: 0;
	font-size: 14px;
	width: 100%;
	outline: none;
}

.search-box .material-icons {
	color: #666;
	font-size: 18px;
	margin-right: 8px;
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.filter-group label {
	font-size: 14px;
	color: #666;
	white-space: nowrap;
}

.filter-group select {
	padding: 6px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	background: white;
}

.bulk-actions {
	display: none;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	background: #f8f9fa;
	border-bottom: 1px solid #e0e0e0;
}

.selected-count {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

.estimates-list {
	max-height: 600px;
	overflow-y: auto;
}

.estimate-item {
	display: grid;
	grid-template-columns: 40px 1fr 120px 100px 120px 120px;
	gap: 16px;
	padding: 16px 24px;
	border-bottom: 1px solid #f0f0f0;
	align-items: center;
	transition: background-color 0.2s;
}

.estimate-item:hover {
	background-color: #f8f9fa;
}

.estimate-checkbox {
	display: flex;
	align-items: center;
}

.estimate-checkbox input[type='checkbox'] {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.estimate-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.estimate-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
	color: #333;
}

.estimate-name .material-icons {
	color: #2196f3;
	font-size: 18px;
}

.save-status {
	font-size: 12px;
	margin-left: 8px;
	opacity: 0.7;
	cursor: help;
}

.last-modified {
	color: #999;
	font-size: 11px;
	display: block;
	margin-top: 2px;
}

.estimate-details {
	display: flex;
	gap: 16px;
	font-size: 12px;
	color: #666;
}

.estimate-amount {
	font-weight: 600;
	color: #333;
	text-align: right;
}

.estimate-status {
	display: flex;
	justify-content: center;
}

.status-badge {
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.status-badge.draft {
	background-color: #fff3cd;
	color: #856404;
}

.status-badge.pending {
	background-color: #d1ecf1;
	color: #0c5460;
}

.status-badge.approved {
	background-color: #d4edda;
	color: #155724;
}

.status-badge.rejected {
	background-color: #f8d7da;
	color: #721c24;
}

.estimate-date {
	font-size: 12px;
	color: #666;
	text-align: center;
}

.estimate-actions {
	display: flex;
	gap: 4px;
	justify-content: center;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 60px 24px;
	color: #666;
}

.empty-state .material-icons {
	font-size: 64px;
	color: #ddd;
	margin-bottom: 16px;
}

.empty-state h3 {
	margin: 0 0 8px 0;
	color: #333;
	font-size: 18px;
}

.empty-state p {
	margin: 0 0 24px 0;
	font-size: 14px;
}

/* Estimate Details View */
.estimate-details-view {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.detail-section {
	border-bottom: 1px solid #f0f0f0;
	padding-bottom: 16px;
}

.detail-section:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.detail-section h4 {
	margin: 0 0 12px 0;
	color: #333;
	font-size: 16px;
	font-weight: 600;
}

.detail-section p {
	margin: 0 0 8px 0;
	font-size: 14px;
	line-height: 1.5;
}

.detail-section p:last-child {
	margin-bottom: 0;
}

.items-list {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.item-row {
	display: grid;
	grid-template-columns: 1fr 80px 100px;
	gap: 16px;
	padding: 8px 12px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 14px;
}

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

.item-row span:last-child {
	text-align: right;
	font-weight: 500;
}

/* Notification Styles */
.notification {
	position: fixed;
	top: 20px;
	right: 20px;
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 1001;
	max-width: 400px;
	animation: slideIn 0.3s ease-out;
}

.notification.success {
	border-left: 4px solid #4caf50;
}

.notification.error {
	border-left: 4px solid #f44336;
}

.notification.warning {
	border-left: 4px solid #ff9800;
}

.notification.info {
	border-left: 4px solid #2196f3;
}

.notification .material-icons {
	font-size: 20px;
}

.notification.success .material-icons {
	color: #4caf50;
}

.notification.error .material-icons {
	color: #f44336;
}

.notification.warning .material-icons {
	color: #ff9800;
}

.notification.info .material-icons {
	color: #2196f3;
}

.notification span {
	flex: 1;
	font-size: 14px;
	color: #333;
}

.notification button {
	background: none;
	border: none;
	font-size: 18px;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.notification button:hover {
	background-color: #f5f5f5;
	color: #333;
}

/* Loading Indicator */
.loading-indicator {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.8);
	z-index: 999;
	justify-content: center;
	align-items: center;
}

.loading-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2196f3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

/* Saving Indicator */
.saving-indicator {
	position: fixed;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: white;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	padding: 16px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
	z-index: 1002;
	border-left: 4px solid #2196f3;
	animation: slideDown 0.3s ease-out;
}

.saving-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.saving-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #2196f3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.saving-text {
	font-size: 14px;
	color: #333;
	font-weight: 500;
}

/* Animations */
@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.main-options {
		flex-direction: column;
	}

	.main-option-card {
		width: 100%;
	}

	.estimator-grid {
		grid-template-columns: 1fr;
	}

	.modal-content {
		margin: 20px;
		max-width: calc(100% - 40px);
	}

	.estimate-item {
		grid-template-columns: 1fr;
		gap: 8px;
		padding: 12px 16px;
	}

	.estimate-actions {
		justify-content: flex-start;
		margin-top: 8px;
	}

	.estimates-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.search-box {
		max-width: none;
	}

	.bulk-actions {
		flex-direction: column;
		align-items: stretch;
	}
}

/* File Naming Modal Styles */
.file-naming-form {
	padding: 20px 0;
}

.file-naming-form .form-group {
	margin-bottom: 20px;
}

.file-naming-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.file-naming-form input[type='text'],
.file-naming-form textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s, box-shadow 0.3s;
	box-sizing: border-box;
}

.file-naming-form input[type='text']:focus,
.file-naming-form textarea:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.file-naming-form .form-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.save-options {
	margin-top: 25px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #2196f3;
}

.checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #555;
}

.checkbox-label input[type='checkbox'] {
	margin-right: 10px;
	width: 16px;
	height: 16px;
	accent-color: #2196f3;
}

.checkbox-label span {
	line-height: 1.4;
}

/* Enhanced modal styles for file naming */
.modal-content.file-naming-modal {
	max-width: 500px;
	width: 90%;
}

.modal-content.file-naming-modal .modal-header {
	background: linear-gradient(135deg, #2196f3, #1976d2);
	color: white;
	border-radius: 8px 8px 0 0;
}

.modal-content.file-naming-modal .modal-header h3 {
	color: white;
	margin: 0;
	font-size: 1.3rem;
}

.modal-content.file-naming-modal .modal-body {
	padding: 30px;
}

.modal-content.file-naming-modal .modal-footer {
	padding: 20px 30px;
	border-top: 1px solid #e0e0e0;
	background: #f8f9fa;
	border-radius: 0 0 8px 8px;
}

/* File name input specific styles */
.file-naming-form input[name='fileName'] {
	font-size: 16px;
	font-weight: 500;
	color: #2196f3;
}

.file-naming-form input[name='fileName']::placeholder {
	color: #999;
	font-weight: normal;
}

/* Description textarea specific styles */
.file-naming-form textarea[name='fileDescription'] {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
	line-height: 1.5;
}

.file-naming-form textarea[name='fileDescription']::placeholder {
	color: #999;
	font-style: italic;
}

/* Responsive styles for file naming modal */
@media (max-width: 768px) {
	.modal-content.file-naming-modal {
		width: 95%;
		margin: 20px auto;
	}

	.modal-content.file-naming-modal .modal-body {
		padding: 20px;
	}

	.modal-content.file-naming-modal .modal-footer {
		padding: 15px 20px;
	}

	.file-naming-form input[type='text'],
	.file-naming-form textarea {
		font-size: 16px; /* Prevent zoom on iOS */
	}
}

.file-naming-form {
	padding: 20px 0;
}

.file-naming-form .form-group {
	margin-bottom: 20px;
}

.file-naming-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #333;
}

.file-naming-form input[type='text'],
.file-naming-form textarea {
	width: 100%;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.3s, box-shadow 0.3s;
	box-sizing: border-box;
}

.file-naming-form input[type='text']:focus,
.file-naming-form textarea:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.file-naming-form .form-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	color: #666;
	font-style: italic;
}

.save-options {
	margin-top: 25px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 6px;
	border-left: 4px solid #2196f3;
}

.checkbox-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	color: #555;
}

.checkbox-label input[type='checkbox'] {
	margin-right: 10px;
	width: 16px;
	height: 16px;
	accent-color: #2196f3;
}

.checkbox-label span {
	line-height: 1.4;
}

/* Copy base styles and job info styles from SelatMillworkEstimator.html */
:root {
	--primary-color: #4361ee;
	--primary-dark: #3a56d4;
	--primary-light: #d8e1ff;
	--text-color: #2b2d42;
	--text-secondary: #6c757d;
	--border-color: #dee2e6;
	--background-light: #f8f9fa;
	--background-white: #ffffff;
	--border-radius: 8px;
	--box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	--green-button: #4caf50;
	--green-button-hover: #45a049;
}

body {
	font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont,
		sans-serif;
	background: var(--background-light);
	color: var(--text-color);
	line-height: 1.5;
	padding: 25px;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	background: var(--background-white);
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.tabs {
	display: flex;
	border-bottom: 2px solid var(--border-color);
	margin-bottom: 35px;
	flex-wrap: wrap;
}

.tab-button {
	padding: 14px 28px;
	background: transparent;
	color: var(--text-secondary);
	border: none;
	border-radius: var(--border-radius) var(--border-radius) 0 0;
	margin-right: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
	transition: all 0.3s ease;
	margin-bottom: -2px;
	position: relative;
}

.tab-button.active {
	background: var(--primary-color);
	color: white;
	border-bottom: 2px solid var(--primary-color);
}

.section {
	margin-bottom: 30px;
	background: var(--background-white);
	padding: 20px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: all 0.3s ease;
}

h3 {
	color: var(--text-color);
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 8px;
	margin-top: 28px;
	margin-bottom: 16px;
	font-weight: 600;
	font-size: 18px;
}

.job-info-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}

.job-info-header .company {
	flex: 1;
	font-size: 15px;
	line-height: 1.6;
}

.job-info-header .company strong {
	font-size: 18px;
	color: var(--primary-color);
	font-weight: 600;
}

.job-info-header .title {
	flex: 1;
	text-align: right;
}

.job-info-header .title h1 {
	color: #000;
	margin: 0;
	font-weight: 600;
	font-size: 24px;
}

.job-info-details {
	display: flex;
	justify-content: space-between;
	gap: 40px;
}

.job-info-details .left,
.job-info-details .right {
	flex: 1;
}

.job-info-details label {
	font-weight: 600;
	display: block;
	margin-top: 16px;
	margin-bottom: 8px;
	color: var(--text-color);
	font-size: 14px;
}

.job-info-details textarea {
	margin-top: 8px;
	width: 100%;
	min-height: 80px;
	background-color: var(--background-light);
	font-family: inherit;
	resize: vertical;
}

.job-info-details input,
.job-info-details select {
	margin-top: 8px;
	width: 100%;
	background-color: var(--background-light);
}

.salesman-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 8px;
}

.salesman-controls select {
	flex: 1;
	margin-top: 0;
}

.salesman-controls button {
	padding: 8px 12px;
	font-size: 13px;
	white-space: nowrap;
	min-width: auto;
}

.update-button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.update-button:hover {
	background-color: var(--primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

input,
textarea,
select {
	padding: 10px 12px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-size: 14px;
	background-color: #f8f9fa;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.1);
}

input[readonly],
textarea[readonly] {
	background-color: #f4f4f4;
	color: #888;
}

.salesman-controls button {
	background: var(--primary-color);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	margin-left: 4px;
	transition: background 0.2s;
}

.salesman-controls button:hover {
	background: var(--primary-dark);
}

.update-button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	transition: background 0.2s, box-shadow 0.2s;
}

.update-button:hover {
	background-color: var(--primary-dark);
	box-shadow: 0 2px 8px rgba(67, 97, 238, 0.1);
}

.app-title {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 20px;
	font-weight: bold;
}

/* Add styles for vendor quote section to match SelatMillworkEstimator */
.data-input-container {
	margin-bottom: 20px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}

.data-input-container label {
	display: block;
	margin-bottom: 10px;
	font-weight: 500;
	color: #333;
}

#vendorDataRows {
	width: 100%;
	min-height: 200px;
	font-family: monospace;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 10px;
}

.load-data-button {
	background: #2196f3;
	color: white;
	padding: 8px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.load-data-button:hover {
	background: #1976d2;
}

.collapsible-section {
	margin: 20px 0;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
}

.collapsible-header {
	padding: 15px;
	background: #f8f9fa;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
}

.collapsible-header:hover {
	background: #f0f0f0;
}

#quoteTable {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

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

#quoteTable th {
	background: #f8f9fa;
	font-weight: 500;
	color: #333;
}

/* PA Vendor Quote Table Enhancements */
#paQuoteTable.data-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	background: #fff;
}

#paQuoteTable th,
#quoteTable th {
	background: #f8f9fa;
	font-weight: 600;
	color: #333;
	padding: 14px 12px;
	border-bottom: 2px solid #e0e0e0;
	text-align: center;
}

#paQuoteTable td {
	padding: 12px;
	border-bottom: 1px solid #e0e0e0;
	vertical-align: middle;
}

#paQuoteTable th:nth-child(2),
#paQuoteTable th:nth-child(3),
#paQuoteTable th:nth-child(4),
#paQuoteTable th:nth-child(6),
#paQuoteTable th:nth-child(7) {
	text-align: right;
}

#paQuoteTable td:nth-child(2),
#paQuoteTable td:nth-child(3),
#paQuoteTable td:nth-child(4),
#paQuoteTable td:nth-child(6),
#paQuoteTable td:nth-child(7) {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

#paQuoteTable tr:nth-child(even) td {
	background: #f8f9fa;
}

#paQuoteTable tr:last-child td {
	border-bottom: none;
}

.pa-table-container {
	overflow-x: auto;
	margin-bottom: 20px;
}

.pa-subtotal-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-weight: bold;
	font-size: 1rem;
	background: #f8f9fa;
	padding: 8px 16px;
	border-radius: 0 0 8px 8px;
	margin-bottom: 10px;
}

.install-input {
	background: #fffbe6;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 6px 8px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}

.install-input:focus {
	outline: none;
	border-color: #ffd600;
	background: #fffde7;
}

/* Add styles for centered table columns */
#installDetailsTable {
	width: 100%;
	border-collapse: collapse;
}

#installDetailsTable th,
#installDetailsTable td {
	text-align: center;
	padding: 8px;
}

#installDetailsTable td:first-child {
	text-align: left;
}

#installDetailsTable input {
	text-align: center;
}

/* SelatMillwork-style Material Table */
#vendorQuoteSummaryTable {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 2px solid #d1d5db;
	background: #fff;
	font-size: 14px;
	font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont,
		sans-serif;
}

#vendorQuoteSummaryTable th,
#paMaterialTable th {
	background: #f5f6fa;
	font-weight: 700;
	color: #222;
	border-bottom: 2px solid #d1d5db;
	border-right: 1px solid #e0e0e0;
	padding: 16px 14px;
	text-align: center;
	font-size: 15px;
	letter-spacing: 0.01em;
}

#vendorQuoteSummaryTable th:last-child,
#paMaterialTable th:last-child {
	border-right: none;
}

#vendorQuoteSummaryTable td {
	border-bottom: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
	padding: 14px 14px;
	background: #fff;
	font-size: 14px;
}

#vendorQuoteSummaryTable td:last-child {
	font-weight: 600;
	color: #222;
	border-right: none;
}

#vendorQuoteSummaryTable tr:last-child td {
	border-bottom: none;
}

#vendorQuoteSummaryTable td:nth-child(4),
#vendorQuoteSummaryTable td:nth-child(5),
#vendorQuoteSummaryTable td:nth-child(6),
#vendorQuoteSummaryTable td:nth-child(7) {
	text-align: right;
}

.pa-subtotal-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-weight: bold;
	font-size: 1rem;
	background: #fff;
	padding: 10px 18px 10px 18px;
	border-radius: 0 0 8px 8px;
	margin-bottom: 0;
	border-top: 2px solid #d1d5db;
	border: 2px solid #d1d5db;
	border-top: none;
}

.material-subtotal-bar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	font-weight: bold;
	font-size: 14px;
	background: #fff;
	padding: 10px 24px 10px 18px;
	border-radius: 0 0 8px 8px;
	margin-bottom: 0;
	border: 2px solid #d1d5db;
	border-top: none;
	margin-top: -2px;
	/* To connect with table border */
}

.margins-bar {
	background: #f7f8fa;
	border-radius: 6px;
	padding: 18px 20px 18px 20px;
	display: flex;
	gap: 24px;
	align-items: center;
	margin-top: 18px;
	margin-bottom: 0;
}

.margins-bar label {
	font-weight: 500;
	color: #444;
	margin-right: 8px;
	font-size: 15px;
}

.margins-bar input[type='number'] {
	width: 70px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	font-size: 15px;
	padding: 6px 10px;
	color: #222;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s;
}

.margins-bar input[type='number']:focus {
	border-color: #4361ee;
}

/* Ensure PA Material table has the same grid lines as Material table */
#paMaterialTable th,
#paMaterialTable td {
	border-bottom: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
}

#paMaterialTable th:last-child,
#paMaterialTable td:last-child {
	border-right: none;
}

#paMaterialTable tr:last-child td {
	border-bottom: none;
}

#pa-material-table-header {
	background: #f5f6fa;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px 8px 0 0;
	border-bottom: 1px solid #e0e0e0;
	padding: 16px 18px;
	margin-bottom: 12px;
	color: #222;
	display: flex;
	align-items: center;
}

/* Compact Specs Table */
#specsTable {
	font-size: 14px;
	min-width: 250px;
}

#specsTable th,
#specsTable td {
	padding: 7px 8px;
}

.specs-delete-btn {
	background: #ef4444;
	border: none;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.specs-delete-btn:hover {
	background: #dc2626;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.specs-delete-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.include-toggle-btn {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s;
	min-width: 80px;
	text-align: center;
}

.include-toggle-btn[data-included='true'] {
	background: #dcfce7;
	color: #166534;
	border-color: #86efac;
}

.include-toggle-btn:hover {
	background-color: #e5e7eb;
}

.include-toggle-btn[data-included='true']:hover {
	background-color: #bbf7d0;
}

#quoteTable td:nth-child(7)::before,
        /* COST column */
        #quoteTable td:nth-child(8)::before {
	/* TOTAL column */
	content: '$';
	margin-right: 2px;
}

#quoteTable td:nth-child(7),
        /* COST column */
        #quoteTable td:nth-child(8) {
	/* TOTAL column */
	text-align: right;
	padding-right: 10px;
}

.form-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.checkbox-group {
	margin: 0;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666;
}

.checkbox-label input[type='checkbox'] {
	width: 16px;
	height: 16px;
	margin: 0;
}

.update-button[style*='background-color: #4caf50']:hover {
	background-color: var(--green-button-hover) !important;
}

/* Drag and Drop Styles for Regroup Modals */
.sortable-ghost {
	opacity: 0.4;
	background: #f0f8ff !important;
	border: 2px dashed #4361ee !important;
}

.sortable-chosen {
	background: #e3f2fd !important;
	transform: rotate(5deg);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.sortable-drag {
	background: #4361ee !important;
	color: white !important;
	transform: rotate(5deg);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

[data-type='scope-list'] {
	transition: all 0.2s ease;
}

[data-type='scope-list']:hover {
	border-color: #4361ee;
}

[data-type='drop-zone'] {
	transition: all 0.2s ease;
}

[data-scope] {
	transition: all 0.2s ease;
}

[data-scope]:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
