/* --- Global Container --- */
#enclosure-search-container { 
	max-width: 100%; 
	font-family: system-ui, -apple-system, sans-serif; 
	font-size: 14px; 
	color: #222; 
}

/* --- Filter Section --- */
.search-filters { 
	background: #f8f9fb; 
	border: 1px solid #e5e7eb; 
	border-radius: 8px; 
	padding: 15px; 
	margin-bottom: 20px; 
}

.filter-table { 
	width: 100%; 
	border-collapse: separate; 
	border-spacing: 6px; 
}

.filter-table thead th { 
	text-align: left; 
	font-weight: 600; 
	padding: 10px 8px; 
	font-size: 12px; 
	color: #333; 
	white-space: nowrap; 
	vertical-align: bottom;
}

/* DESKTOP FILTER LOCKS */
@media (min-width: 901px) {
	.filter-table { table-layout: fixed !important; }
	.filter-table td { vertical-align: top !important; }
	.filter-table .col-dim { width: 120px !important; }
	.filter-table .col-spec { width: 35% !important; }
	.filter-table .col-cat { width: auto; }
}

.filter-table input, .filter-table select { 
	width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; box-sizing: border-box; font-size: 14px;
}

/* Slider & Tolerance Label */
.tol-container { margin-top: 5px; display: flex; flex-direction: column; }
.tol-container input[type="range"] { width: 100% !important; margin: 4px 0 !important; cursor: pointer; }
.tol-label-text { font-size: 11px; color: #444; text-align: center; font-weight: 600; }

/* --- Results Table --- */
.results-wrap { 
	width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; 
	border: 1px solid #e5e7eb; border-radius: 8px; margin-top: 10px;
}

.results-table { 
	width: 100%; min-width: 1200px; border-collapse: collapse; table-layout: fixed; 
}

.results-table th { background: #f3f4f6; text-align: left; padding: 12px 8px; font-weight: 600; }
.results-table td { padding: 12px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }

/* Desktop Table Proportions */
@media (min-width: 901px) {
	.results-table th.col-select { width: 45px !important; text-align: center; } 
	.results-table th.col-cq { width: 115px !important; } 
	.results-table th.col-dim-out { width: 95px !important; } 
	.results-table th.col-spec-out { width: 45% !important; } 
}

.results-table tr:nth-child(odd) { background-color: #DEEAF1; }
.results-table tr:hover { background-color: #FCC76C !important; cursor: pointer; }

/* --- Floating Quote Bar --- */
#quote-bar {
	position: fixed; bottom: 0; left: 0; width: 100%;
	background: #0C70AC; color: #fff; padding: 15px;
	text-align: center; display: none; z-index: 9999;
	box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}

#quote-bar button {
	background: #fff; color: #0C70AC; border: none; padding: 10px 25px;
	border-radius: 4px; font-weight: 800; text-transform: uppercase; cursor: pointer;
}

/* --- RESTORED: Modern Modal Styling --- */
#dem-modal-overlay {
	display: none; 
	position: fixed; top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.75); z-index: 100000;
	justify-content: center; align-items: center; 
	backdrop-filter: blur(4px); /* RESTORED BLUR */
}

.dem-modal-box {
	background: #fff; width: 90%; max-width: 550px;
	border-radius: 12px; overflow: hidden; 
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	animation: demFadeIn 0.3s ease-out;
}

@keyframes demFadeIn {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}

.dem-modal-header { 
	background: #f9fafb; /* RESTORED HEADER COLOR */
	padding: 20px 25px; 
	border-bottom: 1px solid #edf2f7; 
}
.dem-modal-header h3 { margin: 0; color: #1a202c; font-size: 1.25rem; }

.dem-modal-body { padding: 25px; }

.modal-label { /* RESTORED BOLD LABELS */
	font-weight: 600;
	display: block;
	margin-top: 15px;
	color: #4a5568;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

#q-msg { 
	width: 100%; height: 120px; padding: 12px; 
	border: 1px solid #d1d5db; border-radius: 6px;
	resize: none !important; /* LOCKED */
	box-sizing: border-box; margin-top: 8px;
}

#q-list {
	display: block; background: #f3f4f6; padding: 10px; border-radius: 4px;
	font-family: monospace; font-size: 13px; margin-top: 5px;
	max-height: 80px; overflow-y: auto; color: #2d3748;
}

.dem-modal-footer { 
	background: #f9fafb; /* RESTORED FOOTER COLOR */
	padding: 15px 25px; 
	text-align: right; 
	border-top: 1px solid #edf2f7; 
}

/* --- Buttons --- */
.search-btn-container { text-align: center; margin-top: 15px; }
.search-btn-container button { padding: 12px 30px; border-radius: 4px; font-size: 15px; font-weight: 800; text-transform: uppercase; cursor: pointer; border: none; margin: 0 5px; }
.button-primary { background-color: #e6b800 !important; color: #fff !important; }
.button-reset { background-color: #a0aec0 !important; color: #fff !important; }