@tailwind base;
@tailwind components;
@tailwind utilities;

.custom-row td {
	padding: 26px !important;
}

.ant-radio-checked .ant-radio-inner {
	background-color: white !important;
	border: 2px solid theme("colors.primary.DEFAULT") !important;
}

.ant-radio-inner::after {
	width: 8px;
	height: 8px;
	background-color: theme("colors.primary.DEFAULT") !important;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Remove hover styles from table rows */
.ant-table-tbody > tr.no-hover:hover > td {
	background: transparent !important;
}

/* Ensure the background stays the same on hover */
.ant-table-tbody > tr.no-hover > td {
	transition: none !important;
}

/* Remove hover styles for the entire row */
.ant-table-tbody > tr.no-hover:hover {
	background: transparent !important;
}

/* Custom Input.Search styling */
.custom-search-input .ant-input {
	height: 36px !important;
}

.custom-search-input .ant-input-search-button {
	height: 36px !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-search-input .ant-input-group-addon {
	height: 36px;
}

.custom-search-input .ant-input-affix-wrapper {
	height: 36px !important;
	padding-top: 0;
	padding-bottom: 0;
	display: flex;
	align-items: center;
}

/* Error input border: show only red, override default gray */
.rjsf-error .ant-input,
.rjsf-error .ant-input-affix-wrapper,
.rjsf-error .ant-input-number,
.rjsf-error .ant-input-number input,
.rjsf-error .ant-select-selector,
.rjsf-error .border-gray-300 {
	border-color: theme("colors.red.500") !important;
	box-shadow: none !important;
}

/* Hide labels inside array item fields */
.array-item-field label {
	display: none !important;
}
