/*
 * Ahsay Design CSS classes
 * This is the standard CSS classes shared by all Ahsay projects. All classes are prefixed with adc to
 * prevent class name clashes
 */

 /* All div.adc-rspflex-* classes come with this standard configuration */
div[class^="adc-rspflex-"] {
	display: flex;
	flex-wrap: wrap;
	margin: 0px;
}

/* All div under div.adc-rspflex-* classes come with this standard configuration */
div[class^="adc-rspflex-"] > div {
	flex: 0 0 100%;
	padding: 10px;
	box-sizing: border-box;
}

div.adc-rspflex-column-reverse {
	flex-direction: column-reverse;
}

div.adc-rspflex-23 > div,
div.adc-rspflex-234 > div,
div.adc-rspflex-2345 > div,
div.adc-rspflex-23456 > div {
	flex: 0 0 50%;
}

div.adc-rspflex-345 > div,
div.adc-rspflex-3456 > div {
	flex: 0 0 33%;
}

@media (min-width: 440px) {

	div.adc-rspflex-23 > div,
	div.adc-rspflex-234 > div,
	div.adc-rspflex-2345 > div,
	div.adc-rspflex-23456 > div,
	div.adc-rspflex-12345 > div {
		flex: 0 0 50%;
	}

	div.adc-rspflex-12345.adc-rspflex-column-reverse {
		flex-direction: row;
	}
}

@media (min-width: 576px) {

	div.adc-rspflex-123 > div,
	div.adc-rspflex-1234 > div {
		flex: 0 0 50%;
	}

	div.adc-rspflex-135 > div,
	div.adc-rspflex-23 > div,
	div.adc-rspflex-234 > div,
	div.adc-rspflex-2345 > div,
	div.adc-rspflex-23456 > div,
	div.adc-rspflex-12345 > div {
		flex: 0 0 33.3%;
	}

	div.adc-rspflex-345 > div,
	div.adc-rspflex-3456 > div {
		flex: 0 0 25%;
	}

	div.adc-rspflex-123.adc-rspflex-column-reverse,
	div.adc-rspflex-1234.adc-rspflex-column-reverse,
	div.adc-rspflex-135.adc-rspflex-column-reverse {
		flex-direction: row;
	}

}

@media (min-width: 768px) {

	div.adc-rspflex-123 > div {
		flex: 0 0 50%;
	}

	div.adc-rspflex-1234 > div,
	div.adc-rspflex-135 > div {
		flex: 0 0 33.3%;
	}

	div.adc-rspflex-234 > div,
	div.adc-rspflex-2345 > div,
	div.adc-rspflex-23456 > div,
	div.adc-rspflex-12345 > div,
	div.adc-rspflex-345 > div,
	div.adc-rspflex-3456 > div {
		flex: 0 0 25%;
	}

	div.adc-rspflex-12 > div {
		flex: 0 0 50%;
	}

	div.adc-rspflex-12-37 > div:nth-child(2n+1) {
		flex: 0 0 30%;
	}

	div.adc-rspflex-12-37 > div:nth-child(2n+2) {
		flex: 0 0 70%;
	}

	div.adc-rspflex-12-73 > div:nth-child(2n+1) {
		flex: 0 0 70%;
	}

	div.adc-rspflex-12-73 > div:nth-child(2n+2) {
		flex: 0 0 30%;
	}

	div.adc-rspflex-12-46 > div:nth-child(2n+1) {
		flex: 0 0 40%;
	}

	div.adc-rspflex-12-46 > div:nth-child(2n+2) {
		flex: 0 0 60%;
	}

	div.adc-rspflex-12-64 > div:nth-child(2n+1) {
		flex: 0 0 60%;
	}

	div.adc-rspflex-12-64 > div:nth-child(2n+2) {
		flex: 0 0 40%;
	}

	div.adc-rspflex-12-28 > div:nth-child(2n+1) {
		flex: 0 0 20%;
	}

	div.adc-rspflex-12-28 > div:nth-child(2n+2) {
		flex: 0 0 80%;
	}

	div.adc-rspflex-12-82 > div:nth-child(2n+1) {
		flex: 0 0 80%;
	}

	div.adc-rspflex-12-82 > div:nth-child(2n+2) {
		flex: 0 0 20%;
	}

	div.adc-rspflex-12-19 > div:nth-child(2n+1) {
		flex: 0 0 10%;
	}

	div.adc-rspflex-12-19 > div:nth-child(2n+2) {
		flex: 0 0 90%;
	}

	div.adc-rspflex-12-91 > div:nth-child(2n+1) {
		flex: 0 0 90%;
	}

	div.adc-rspflex-12-91 > div:nth-child(2n+2) {
		flex: 0 0 10%;
	}

	/* Override flex-direction to row for div.adc-rspflex-12*.adc-rspflex-column-reverse to show in natural order */
	div[class^="adc-rspflex-12"].adc-rspflex-column-reverse {
		flex-direction: row;
	}

}

@media (min-width: 1024px) {

	div.adc-rspflex-123 > div {
		flex: 0 0 33.3%;
	}

	div.adc-rspflex-13 > div {
		flex: 0 0 33.3%;
	}

	div.adc-rspflex-234 > div,
	div.adc-rspflex-1234 > div {
		flex: 0 0 25%;
	}

	div.adc-rspflex-12345 > div,
	div.adc-rspflex-135 > div,
	div.adc-rspflex-2345 > div,
	div.adc-rspflex-23456 > div,
	div.adc-rspflex-345 > div,
	div.adc-rspflex-3456 > div {
		flex: 0 0 20%;
	}

}

@media (min-width: 1200px) {

	div.adc-rspflex-3456 > div,
	div.adc-rspflex-23456 > div {
		flex: 0 0 16.6%;
	}

}

/***************************** [Start] Responsive tabs which collapse to drop down list on narrow screen *****************************/

div.adc-rsptabs-visible {
	display: block;
	visibility: visible;
}

div.adc-rsptabs-hidden {
	display: none;
	visibility: hidden;
}

/* Hide tab and show dropdown for all screens by default */
div.adc-rsptabs-0 > div:nth-child(1),
div.adc-rsptabs-440 > div:nth-child(1),
div.adc-rsptabs-576 > div:nth-child(1),
div.adc-rsptabs-768 > div:nth-child(1) {
	display: none;
	visibility: hidden;
}

div.adc-rsptabs-0 > div:nth-child(2),
div.adc-rsptabs-440 > div:nth-child(2),
div.adc-rsptabs-576 > div:nth-child(2),
div.adc-rsptabs-768 > div:nth-child(2) {
	position: relative;
	width: 100%;
}

/* Must use explicit name, otherwise it cannot be overridden later if wildcard is used here */
div.adc-rsptabs-0 > div:nth-child(2):after,
div.adc-rsptabs-440 > div:nth-child(2):after,
div.adc-rsptabs-576 > div:nth-child(2):after,
div.adc-rsptabs-768 > div:nth-child(2):after {
	content: '\25BC';
	font-weight: bold;
	color: #FFFFFF;
	display: inline-block;
	position: absolute;
	right: 15px;
	top: 15px;
	pointer-events: none;
}

div[class^="adc-rsptabs-"] {
	margin: 0px 10px 10px 0px;
}

div[class^="adc-rsptabs-"] > div {
	padding: 0px;
}

/* div[class^="adc-rsptabs-"] > div > ul { */
div[class^="adc-rsptabs-"]:not(.adc-rsptabs-visible) > div > ul {
	display: flex;
	flex-wrap: wrap;
	list-style-type: none;
	margin: 10px 0;
	padding: 0px;
	line-height: 0.6;
}

div[class^="adc-rsptabs-"] > div > ul > li {
	margin: 3px;
	border-radius: 8px 8px 8px 8px;
}

div[class^="adc-rsptabs-"] > div > ul > li:hover {
	cursor: pointer;
}

div[class^="adc-rsptabs-"] > div > ul > li.tab-active {
	color: #FFFFFF;
	background-color: #F69220;
	padding: 15px;
	border: 3px solid rgba(246, 146, 32) ;
	font-weight: bold;
}

div[class^="adc-rsptabs-"] > div > ul > li.tab-inactive {
	color: #222222;
	background-color: #C0C0C0;
	border: 3px solid transparent;
	padding: 15px;
}

div[class^="adc-rsptabs-"] > div > select {
	height: 50px;
	width: 100%;
	color: #FFFFFF;
	background-color: #f69220;
	padding: 0px 30px 0px 10px;
	border-radius: 8px 8px 8px 8px;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	margin: 0px 10px 20px 0px ;
	text-align: center;
}

div[class^="adc-rsptabs-"] > div > select > option {
	line-height: 20px;
}

div[class^="adc-rsptabs-"] > div > select:hover {
	cursor: pointer;
}

@media (min-width: 0px) {

	/* Show tabs (first child of div) for wide screen */
	div.adc-rsptabs-0 > div:nth-child(1) {
		display: block;
		visibility: visible;
	}

	/* Hide dropdown (second child of div) for wide screen */
	div.adc-rsptabs-0 > div:nth-child(2) {
		display: none;
		visibility: hidden;
	}

}

@media (min-width: 440px) {

	/* Show tabs (first child of div) for wide screen */
	div.adc-rsptabs-440 > div:nth-child(1) {
		display: block;
		visibility: visible;
	}

	/* Hide dropdown (second child of div) for wide screen */
	div.adc-rsptabs-440 > div:nth-child(2) {
		display: none;
		visibility: hidden;
	}

}

@media (min-width: 576px) {

	/* Show tabs (first child of div) for wide screen */
	div.adc-rsptabs-576 > div:nth-child(1) {
		display: block;
		visibility: visible;
	}

	/* Hide dropdown (second child of div) for wide screen */
	div.adc-rsptabs-576 > div:nth-child(2) {
		display: none;
		visibility: hidden;
	}

}

@media (min-width: 768px) {

	/* Show tabs (first child of div) for wide screen */
	div.adc-rsptabs-768 > div:nth-child(1) {
		display: block;
		visibility: visible;
	}

	/* Hide dropdown (second child of div) for wide screen */
	div.adc-rsptabs-768 > div:nth-child(2) {
		display: none;
		visibility: hidden;
	}

}
/***************************** [End] Responsive tabs which collapse to drop down list on narrow screen *****************************/

/***************************** [Start] Show bullet points in multiple columns *****************************/

ul.adc-ul-column-12,
ul.adc-ul-column-123 {
	display: inline-block;
	margin: 0px 0px 40px 0px;
	column-count: 1;
}

ul.adc-ul-column-12 > li,
ul.adc-ul-column-123 > li {
	margin: 0px 10px;
}

@media (min-width: 576px) {

	ul.adc-ul-column-123 {
		column-count: 2;
	}

}

@media (min-width: 768px) {

	ul.adc-ul-column-12 {
		column-count: 2;
	}

}

@media (min-width: 1024px) {

	ul.adc-ul-column-123 {
		column-count: 3;
	}

}

/***************************** [End] Show bullet points in multiple columns *****************************/

/******************* [Start] Show suggestion on left sidebar menu based on user input *******************/
.adc-left-menu-suggest {
	position: relative;
	margin: 10px 15px;
}

.adc-left-menu-suggest > input {
	border: 0 none;
	background: rgba(255, 255, 255, 0.2);
	height: 40px;
	padding: 0 10px;
	border-bottom: 2px solid #e65c00;
}

.adc-left-menu-suggest > div {
	width: 100%;
	position: absolute;
	top: 40px;
	z-index: 10;
}

.adc-left-menu-suggest > input,
.adc-left-menu-suggest > div {
	width: 100%;
	background: #fff;
	text-align: left;
}

.adc-left-menu-suggest  > div > ul {
	display: none;
	list-style-type: none;
	padding: 0;
	margin: 0;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
	max-height: 400px;
	overflow-y: auto;
}

.adc-left-menu-suggest > div > ul.has-suggestions {
	display: block;
}

.adc-left-menu-suggest > div > ul > li {
	padding: 10px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.2);
}

.adc-left-menu-suggest > div > ul > li:hover {
	background-color: #CCCCFF;
}

/*when navigating through the items using the arrow keys:*/
.adc-left-menu-suggest > div > ul > li.keyboard-arrow-active {
	background-color: Aquamarine !important;
	color: #ffffff;
}

.adc-left-menu-suggest > div > ul > li > a > span.highlight {
	font-weight: bold;
	color: blue;
}
/******************* [End] Show suggestion on left sidebar menu based on user input *******************/



/******************* [Start] Show a list of radio options as bordered grid *******************/

/* Use 95% of the enclosing container width */
.adc-radio-options-list {
	margin: 20px auto;
	width: 95%;
}

/* Style the grid with round corner and border */
.adc-radio-options-list > div {
	display: flex;
	border: 4px solid red;
	border-radius: 10px;
	padding: 0px 15px;
	margin: 15px 0px;
}

/* Style the labels */
.adc-radio-options-list > div > label {
	cursor: pointer;
	flex-grow: 1;
	display: flex;
	line-height: 40px;
}

/* Style the label use 100% width */
.adc-radio-options-list > div > label > div {
	flex-grow: 1;
}

/* Style the label to the left of the radio button */
.adc-radio-options-list > div > label > div:nth-child(2) {
	text-align: right;
}

/* Style the radio buttons */
.adc-radio-options-list > div > input[type="radio"] {
	margin-left: 7px;
	accent-color: #007bff; /* Modern browsers support this for custom radio button color */
}

/* Style the background of the container containing a selected radio button */
.adc-radio-options-list > div:has(input[type="radio"]:checked) {
	background-color: yellow;
}
/******************* [End] Show a list of radio options as bordered container *******************/
