/*********************************************************************
* ArqamSelect styles (replace css/bvselectRTL.css, v1.06, 16 Nov 2026)
* @author   : Mohsen Alyafei
**********************************************************************/
.aq-select {
	position: relative;
	width: 100%;
	font-family: 'Cairo', sans-serif;
	font-size: 10pt;
	direction: rtl;
}
.aq-current {                      /* the closed menu: current choice */
	display: flex;
	align-items: center;
	width: 100%;
	padding: 5px;
	border: 2px solid #e1e1e1;
	border-radius: 6px;
	background: #fff;
	color: #535353;
	font: inherit;
	font-size: 11pt;
	font-weight: bold;
	text-align: right;
	cursor: pointer;
}
.aq-current:focus-visible { outline: 2px solid #1a0058; outline-offset: 1px; }
.aq-label { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.aq-placeholder { color: #8a8a8a; }
.aq-arrow {                        /* chevron, points up while open */
	width: 8px; height: 8px;
	margin: 0 6px 4px 2px;
	border: solid grey;
	border-width: 0 3px 3px 0;
	transform: rotate(45deg);
	transition: transform .2s ease;
}
.aq-open .aq-arrow { transform: rotate(-135deg); margin-bottom: -4px; }

.aq-panel {                        /* the open list */
	position: absolute;
	z-index: 1000;
	top: calc(100% + 2px);
	right: 0;
	width: 100%;
	background: #fff;
	border: 1px solid #d6d6d6;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0,0,0,.15);
	overflow: hidden;
}
.aq-search {
	display: block;
	width: calc(100% - 12px);
	margin: 6px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
	direction: rtl;
}
.aq-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}
.aq-list li {
	display: flex;
	align-items: center;
	padding: 4px 8px;
	color: #222;
	cursor: pointer;
}
.aq-list li[hidden] { display: none; }   /* filtered out by the search (display:flex above would show it) */
.aq-list li[aria-selected="true"] { font-weight: bold; }
.aq-list li.aq-active { background: #ececec; }
.aq-list li.aq-separator {        /* group headings */
	background: #1a0058;
	color: #fff;
	cursor: default;
	padding: 2px 8px;
}
/* decision 132: a group heading with its unit-group icon */
.aq-list li.aq-separator { display: flex; align-items: center; }
.aq-list li.aq-separator img { height: 16px; width: auto; margin-left: 6px; flex: none; }
.aq-select img {                   /* flag or unit icon */
	height: 16px;
	width: auto;
	margin-left: 6px;
	flex: none;
}

/* narrow screens: the list opens as a centred window over the page */
.aq-panel.aq-mobile {
	position: fixed;
	z-index: 1041;                 /* above the fixed top bar (1030) */
	top: 5%;
	right: 5%;
	width: 90%;
	height: 90%;
	display: flex;
	flex-direction: column;
}
.aq-panel.aq-mobile[hidden] { display: none; }
.aq-panel.aq-mobile .aq-list { max-height: none; flex: 1; }
.aq-backdrop {
	position: fixed;
	inset: 0;
	z-index: 1040;                 /* covers the fixed top bar (1030) as well */
	background: rgba(0,0,0,.4);
}
