table th {
	border-bottom-width: 0;
}

.dropdown-data {
	position: relative;
	display: inline-block;
}

.dropdown-content-data {
	max-width: 56rem;
	max-height: 300px;
	/* Adjust this value based on the size of your options */
	overflow-y: auto;
	display: none;
	position: absolute;
	background-color: #f9f9f9;
	min-width: 300px;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
	z-index: 1;
	padding-top: 10px;
	word-wrap: break-word;
	right: 0;
}

.dropdown-content-data label:hover {
	background-color: #f1f1f1;
}

.show {
	display: block;
}

.dropdown-content-data label {
	display: block;
	cursor: pointer;
	/*padding: 12px 16px;*/
	white-space: nowrap; /* Prevent text from wrapping to the next line */
	overflow: hidden; /* Hide overflow text */
	text-overflow: ellipsis;
	/* Add ellipsis (...) at the end of the text if it's too long */
}

.dropdown-content-data input[type="text"] {
	width: calc(100% - 32px); /* Subtract padding from the total width */
	padding: 8px; /* Add padding for better visual appearance */
	box-sizing: border-box;
	/* Include padding and border in the element's total width and height */
}

.search-wrapper {
	width: 100%;
	position: relative;
	display: inline-block;
}

/*   #searchBox {
    padding-right: 24px; /* Make room for the cross icon */
}
* /

  #clearSearch {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	font-size: 16px; /* Adjust size as needed */
}

/* General container for the form elements */
.form-container-clean {
	padding: 20px;
	background-color: #f8f9fa;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	font-family: Arial, sans-serif; /* Added a common font family */
}

/* Sectioning for logical grouping of form elements - now defines a row */
.form-section {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 10px;
	margin-bottom: 20px;
	align-items: center;
	justify-content: center;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

/* Styling for inline form groups (e.g., Year Type, Country, Years, Import/Export) */
.form-group-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0; /* Prevent these items from shrinking */
	flex-grow: 0; /* Prevent these items from growing */
	/* Remove flex-basis: auto; as it can sometimes lead to inconsistent sizing if not carefully managed */
}

/* Adjustments for dropdown buttons and select input for a cleaner look */
.form-group-inline .btn {
	white-space: nowrap; /* Prevent button text from wrapping */
	padding: 10px; /* Consistent padding for all buttons */
	min-width: 150px;
	/* Ensure a decent minimum width for dropdown buttons */
	text-align: center; /* Center button text */
	border-radius: 5px; /* Slightly more rounded corners */
	transition: background-color 0.2s ease, border-color 0.2s ease;
	/* Smooth transitions on hover */
}

.form-group-inline .btn:hover {
	background-color: #e2e6ea; /* Lighter hover effect */
	border-color: #dae0e5;
}

.form-group-inline select.input {
	width: 12rem;
	padding: 3px;
	border: 1px solid #ced4da;
	border-radius: 5px;
	height: auto;
	background-color: #fff;
	font-size: 1rem;
	color: #495057;
}

/* Styling for block-level form groups (e.g., HS Type, PC/QE Selection) */
.form-group-block {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	/* Allows this group to grow and shrink, taking up available space */
	min-width: 320px;
	/* Ensure a good minimum width for these larger sections */
}

/* Adjustments for the radio button group */
.radio-group {
	display: flex;
	align-items: center;
	gap: 25px; /* Increased space between radio options */
	padding: 5px 0; /* Reduced padding to integrate better */
	font-size: 1rem; /* Consistent font size */
	color: #343a40; /* Darker text for readability */
}

.radio-group .radio-label {
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 8px; /* Space between radio input and its label text */
	cursor: pointer;
}

.radio-group input[type="radio"] {
	transform: scale(1.1); /* Slightly larger radio buttons */
	cursor: pointer;
}

/* Ensure dropdown buttons and their content are positioned correctly */
.dropdown-data {
	position: relative;
	display: inline-block;
	width: 100%; /* Take full width within its flex container */
}

.dropdown-content-data table {
	width: 100%;
	border-collapse: separate;
	/* Use separate to control cell spacing if needed */
	border-spacing: 0; /* Remove default table spacing */
}

.dropdown-content-data th, .dropdown-content-data td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #f0f0f0; /* Lighter border for table rows */
}

.dropdown-content-data tr:last-child td {
	border-bottom: none; /* Remove border from the last row */
}

.dropdown-content-data button {
	margin-top: 10px;
	width: calc(50% - 5px);
	/* Adjusted to fit two buttons on one line with a gap */
	padding: 8px 5px; /* Adjusted padding for dropdown buttons */
	box-sizing: border-box;
	background-color: #007bff; /* Primary button color */
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dropdown-content-data button:hover {
	background-color: #0056b3; /* Darker on hover */
}

.dropdown-content-data button:first-of-type {
	margin-right: 10px; /* Increased gap between dropdown action buttons */
}

.search-wrapper {
	margin-bottom: 10px;
	position: relative;
	border-bottom: 1px solid #ddd; /* Separator for search box */
	padding-bottom: 8px;
}

.search-wrapper input[type="text"] {
	width: calc(100% - 40px); /* Account for padding and icon */
	padding: 8px 10px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 0.95rem;
}

#clearSearch {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #888;
	font-size: 1.1rem; /* Slightly larger icon */
}

/* Style for action buttons (Query, Submit, Reset) */
.form-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 0px; /* More space above action buttons */
	padding: 0 25rem;
	/* Reduced padding to make buttons look less squashed on smaller screens */
	flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.form-actions .btn-sm {
	padding: 10px 25px; /* Larger padding for action buttons */
	font-size: 1rem; /* Standard font size */
	border-radius: 5px;
	min-width: 120px; /* Ensure consistent button width */
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	/* Smooth transitions */
}

.form-actions .btn-sm:hover {
	transform: translateY(-2px); /* Slight lift effect on hover */
}

/* Specific colors for action buttons (assuming Bootstrap-like classes are available) */
.btn-secondary {
	background-color: #6c757d;
	border-color: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background-color: #5a6268;
	border-color: #545b62;
}

.btn-success {
	background-color: #28a745;
	border-color: #28a745;
	color: white;
}

.btn-success:hover {
	background-color: #218838;
	border-color: #1e7e34;
}

.btn-danger {
	background-color: #dc3545;
	border-color: #dc3545;
	color: white;
}

.btn-danger:hover {
	background-color: #c82333;
	border-color: #bd2130;
}

/* Adjustments for buttons in btn-group (HS2, HS4, etc.) */
.btn-group {
	display: flex;
	flex-wrap: wrap;
	width: 100%; /* Ensure it takes full width of its container */
}

.btn-group .btn {
	flex-grow: 1;
	min-width: 70px; /* Adjust min-width for HS buttons */
	white-space: nowrap;
	padding: 8px 12px;
	font-size: 0.9rem; /* Slightly smaller font for HS buttons */
}

.btn-outline-secondary.btn-active {
	background-color: #6c757d;
	color: white;
	border-color: #2e2f2f;
}

.btn-outline-secondary.btn-inactive {
	background-color: transparent;
	color: #6c757d; /* Default text color */
	border-color: #6c757d;
}

/* Override Bootstrap's default col-md-12, row, text-center for the specific form elements */
.col-md-12.row, .col-md-12.text-center {
	display: block;
	/*width: 100%;*/
	text-align: left;
}

/* Specific styles for labels within the form-group-inline */
.form-group-inline label {
	white-space: nowrap;
	margin-bottom: 0;
	font-weight: bold; /* Make labels stand out */
	color: #343a40;
}

.btn-stack {
	display: flex;
	padding: 0px 5px;
}

.custom-checkbox-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	font-size: 14px;
	gap: 8px;
}

.checkbox-wrapper-2 .ikxBAC {
	appearance: none;
	background-color: #dfe1e4;
	border-radius: 72px;
	border-style: none;
	flex-shrink: 0;
	height: 20px;
	margin: 0;
	position: relative;
	width: 30px;
}

.checkbox-wrapper-2 .ikxBAC::before {
	bottom: -6px;
	content: "";
	left: -6px;
	position: absolute;
	right: -6px;
	top: -6px;
}

.checkbox-wrapper-2 .ikxBAC, .checkbox-wrapper-2 .ikxBAC::after {
	transition: all 100ms ease-out;
}

.checkbox-wrapper-2 .ikxBAC::after {
	background-color: #fff;
	border-radius: 50%;
	content: "";
	height: 14px;
	left: 3px;
	position: absolute;
	top: 3px;
	width: 14px;
}

.checkbox-wrapper-2 input[type=checkbox] {
	cursor: default;
}

.checkbox-wrapper-2 .ikxBAC:hover {
	background-color: #c9cbcd;
	transition-duration: 0s;
}

.checkbox-wrapper-2 .ikxBAC:checked {
	background-color: #5cb85c;
}

.checkbox-wrapper-2 .ikxBAC:checked::after {
	background-color: #fff;
	left: 13px;
}

.checkbox-wrapper-2 :focus:not(.focus-visible) {
	outline: 0;
}

.checkbox-wrapper-2 .ikxBAC:checked:hover {
	background-color: #5cb85c;
}

.ui-tabs .ui-tabs-panel {
	display: block;
	border-width: 0;
	padding: 1em 0.5em;
	background: none;
}

/* General Modal Styling */
.modal-content {
	border-radius: 12px; /* More rounded corners */
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	/* Softer, larger shadow */
	overflow: hidden; /* Ensures content respects border-radius */
	font-family: 'Inter', sans-serif; /* Modern font */
}

.modal-header {
	background-color: #005ab5;
	border-bottom: 1px solid #e9ecef; /* Subtle border */
	padding: 20px 25px; /* More generous padding */
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	font-size: 1.5rem; /* Larger title */
	font-weight: 600; /* Semi-bold */
	color: #343a40; /* Darker text */
}

.modal-header .close {
	font-size: 2rem; /* Larger close icon */
	color: #fffff; /* Grey close icon */
	opacity: 1;
	transition: opacity 0.2s ease;
	padding: 0; /* Remove default button padding */
	margin: 0; /* Remove default button margin */
	background: none; /* Ensure no background */
	border: none; /* Ensure no border */
}

.modal-header .close:hover {
	opacity: 1;
	color: #495057; /* Darker on hover */
}

/* Modal Body Styling */
.modal-body {
	background: #d7e9f8;
	padding: 25px; /* Consistent padding */
	color: #495057; /* Default text color */
}

/* Table styling for parameters */
.parameter-table {
	width: 100%;
	border-collapse: collapse; /* Collapse borders for a clean grid look */
	margin-top: 10px; /* Space from modal top */
	background-color: #ffffff; /* Overall table background */
	border-radius: 8px; /* Rounded corners for the entire table */
	overflow: hidden;
	/* Ensures content and borders respect border-radius */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	/* Subtle shadow for the table itself */
}

.parameter-table tr {
	/* No individual row background here, handled by td */
	transition: background-color 0.2s ease;
	/* Smooth transition for hover */
}

.parameter-table tr:hover {
	background-color: #f8f9fa; /* Light background on row hover */
}

.parameter-table td {
	padding: 15px 20px; /* Generous padding for cells */
	vertical-align: top; /* Align content to the top */
	border: 1px solid #e9ecef; /* Light, subtle border for all cells */
	/* Remove individual cell borders as rows have background/shadow */
}

.parameter-table tr:first-child td {
	border-top: none; /* Remove top border for first row cells */
}

.parameter-table tr:last-child td {
	border-bottom: none; /* Remove bottom border for last row cells */
}

.parameter-table td:first-child {
	width: 160px;
	/* Slightly increased fixed width for labels for better alignment */
	font-weight: 700; /* Bolder label */
	color: #212529; /* Darker color for labels */
	font-size: 0.95rem; /* Slightly smaller label font */
	text-transform: uppercase; /* Uppercase for a clean look */
	letter-spacing: 0.5px;
	background-color: #fcfcfc;
	/* Very subtle different background for labels column */
}

.parameter-table td:last-child {
	border-right: none; /* Remove right border for last column cells */
}

.parameter-table tr td:first-child {
	border-left: none; /* Remove left border for first column cells */
}

.parameter-table .parameter-value {
	margin-bottom: 0; /* Remove default paragraph margin */
	font-size: 1rem; /* Standard value font size */
	line-height: 1.5;
	word-break: break-word; /* Ensure long values wrap */
	color: #495057;
}

/* Modal Footer Styling */
.modal-footer {
	border-top: 1px solid #e9ecef; /* Subtle border */
	padding: 20px 25px; /* Consistent padding */
	background-color: #f8f9fa; /* Light background for footer */
	display: flex;
	justify-content: flex-end; /* Align button to the right */
}

.modal-close-btn {
	background-color: #007bff; /* Primary blue for the close button */
	color: white;
	border: none;
	border-radius: 6px; /* Rounded button */
	padding: 10px 25px; /* Generous padding */
	font-size: 1rem;
	font-weight: 500;
	transition: background-color 0.2s ease, transform 0.1s ease;
	cursor: pointer;
}

.modal-close-btn:hover {
	background-color: #0056b3; /* Darker blue on hover */
	transform: translateY(-1px); /* Slight lift */
}

.btn-purple {
	background: #673AB7;
	color: #fff;
}

/** New UI UX CHanges **/
/* Default styles assume desktop. We use media queries for mobile/tablet */
@media screen and (max-width: 768px) {
	/* General Layout: Stack flex containers */
	.form-container-clean {
		width: 100% !important;
		padding: 10px !important;
		box-sizing: border-box;
	}
	.form-section {
		padding: 10px !important;
	}

	/* Stack inline groups vertically */
	.form-group-inline {
		display: flex;
		flex-direction: column;
		width: 100%;
		margin-bottom: 15px;
		gap: 10px;
	}

	/* Radio Buttons: Ensure they wrap if texts are long, but keep side-by-side if space permits */
	.radio-group {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
	}
	.radio-label {
		padding: 10px;
		background-color: #f8f9fa;
		border-radius: 5px;
		flex: 1; /* Equal width */
		text-align: center;
		margin: 2px;
	}

	/* Dropdown Buttons: Full width for easy tapping */
	.dropdown-data, .dropdown-data button {
		width: 100% !important;
		max-width: 100%;
	}
	.dropdown-data button {
		padding: 12px; /* Larger touch target */
		text-align: center;
	}

	/* Dropdown Content: Convert absolute popup to flow content (Accordion style) or Full width overlay */
	.dropdown-content-data {
		position: relative !important;
		/* Stack inside the form instead of floating over */
		width: 100% !important;
		min-width: 100% !important;
		box-shadow: none !important;
		border: 1px solid #ddd;
		max-height: 300px; /* Scrollable if too long */
		overflow-y: auto;
	}

	/* Button Stacks inside dropdowns (Check all/Uncheck all) */
	.btn-stack {
		display: flex;
		justify-content: space-between;
		padding: 5px;
	}
	.btn-stack button {
		width: 48% !important;
		font-size: 12px;
	}

	/* Tables inside dropdowns: Convert to Block layout */
	.dropdown-content-data table, .dropdown-content-data thead,
		.dropdown-content-data tbody, .dropdown-content-data tr,
		.dropdown-content-data td, .dropdown-content-data th {
		display: block;
		width: 100%;
	}

	/* Make table rows look like list items */
	.dropdown-content-data tr {
		display: flex;
		align-items: center;
		border-bottom: 1px solid #eee;
		padding: 8px 5px;
	}

	/* Checkboxes: Larger for touch */
	.dropdown-content-data input[type="checkbox"] {
		width: 20px;
		height: 20px;
		margin-right: 15px;
	}

	/* Labels inside dropdowns */
	.dropdown-content-data label {
		font-size: 14px;
		word-break: break-word; /* Prevent long text overflow */
	}

	/* Search Boxes inside Dropdowns */
	.search-wrapper, .search-wrapper input, #searchBox, #searchBoxHS,
		#searchBoxQE, #searchBoxPC, #searchBoxState {
		width: 100% !important;
		box-sizing: border-box;
		height: 35px;
	}

	/* Import/Export Button Group */
	#impexpdiv .btn-group {
		display: flex;
		width: 100%;
	}
	#impexpdiv .btn-group button {
		flex: 1; /* Equal width buttons */
		padding: 10px 0;
	}

	/* Footer Action Buttons */
	.form-actions {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 0 10px;
	}
	.form-actions input[type="button"] {
		width: 100%;
		padding: 12px;
		margin: 0 !important;
		font-size: 16px;
	}

	/* Data Table & Export Buttons */
	#datatable .row {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding: 25px;
	}
	#datatable .col-md-2 {
		width: 100%;
		padding: 0;
	}
	#datatable button, #datatable a {
		width: 100%;
		display: block;
		margin-bottom: 5px;
		text-align: center;
	}

	/* Modal Responsiveness */
	.modal-dialog {
		margin: 10px;
		width: auto;
	}
	.parameter-table td {
		display: block;
		width: 100%;
	}
	.parameter-label {
		font-weight: bold;
		background-color: #f0f0f0;
		padding: 5px;
	}
}
/* Container Styling */
.disclaimer-container {
	background-color: #f8f9fa; /* Light grey background */
	border-left: 5px solid #203548; /* Sidebar color accent */
	border-radius: 4px;
	padding: 15px 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	text-align: start;
}

.disclaimer-title {
	font-weight: 700;
	color: #203548;
	margin-bottom: 15px;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* List Styling */
.disclaimer-list {
	margin-bottom: 0;
	padding-left: 20px;
	font-size: 14px;
	line-height: 1.6;
	color: #444;
}

.disclaimer-list li {
	margin-bottom: 10px;
}

/* Sub-list (a, b) Styling */
.disclaimer-sublist {
	list-style-type: lower-alpha; /* a, b, c style */
	padding-left: 20px;
	margin-top: 5px;
	color: #666;
}

/* Link/Badge Styling */
.mapping-links {
	display: flex;
	flex-wrap: wrap; /* Allows links to stack on mobile */
	gap: 10px;
	margin-top: 8px;
}

.mapping-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background-color: #e9ecef;
	color: #203548;
	padding: 6px 12px;
	border-radius: 20px;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 1px solid #dee2e6;
}

.mapping-badge:hover {
	background-color: #203548;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Adjustments */
@media ( max-width : 768px) {
	.disclaimer-container {
		padding: 15px;
		margin-top: 15px;
	}
	.disclaimer-list {
		padding-left: 15px;
		font-size: 13px; /* Slightly smaller text on mobile */
	}
	.mapping-links {
		gap: 8px;
	}
	.mapping-badge {
		font-size: 12px;
		padding: 5px 10px;
		flex: 1 0 auto; /* Allow badges to grow/shrink nicely */
		justify-content: center;
	}
}
/* Mobile adjustments for AG Grid */
@media ( max-width : 768px) {
	#dataGrid {
		width: 100% !important;
		/* Ensure no horizontal scroll on the BODY, only inside the grid */
		overflow-x: hidden;
	}

	/* Adjust font size for mobile to fit more data */
	.ag-theme-quartz {
		font-size: 12px !important;
		--ag-header-height: 40px;
		--ag-row-height: 40px;
	}
	.ag-header-cell-label {
		font-size: 11px !important;
	}
}

/* Post CSP changes */
/* Bootstrap utility extensions */
.mb-5 {
    margin-bottom: 10% !important;
}

.ps-2 {
    padding-left: 2% !important;
}

.d-none {
    display: none !important;
}

/* Custom CSS for inline style replacements */
.checkbox-wrapper-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-content-hs {
    margin-right: -300%;
}

.btn-stack-hs-wide {
    padding: 0rem 20rem;
}

/* AI Generated CSS */

.data-grid-height {
    height: 500px;
}

.data-grid-total-row {
    background-color: #f0f0f0;
    font-weight: 700;
}

.data-grid-no-rows {
    padding: 0.625rem;
    color: #6c757d;
    font-weight: 700;
}

.data-grid-serial-cell {
    text-align: center;
}

.dropdown-option-filtered {
    display: none !important;
}

.captcha-dialog-content {
    text-align: center;
}

.captcha-dialog-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
}

.captcha-dialog-refresh-wrapper {
    margin-bottom: 0.5rem;
}

.captcha-dialog-refresh {
    font-size: 0.75rem;
}

.captcha-dialog-input {
    display: block;
    width: 60%;
    margin: 0 auto;
}

.captcha-dialog-note {
    margin-top: 0.375rem;
    color: #666;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .captcha-dialog-input {
        width: 100%;
    }
}