@charset "UTF-8";

/* Ascunde elemente offscreen */
.ms-offscreen {
    clip: rect(0 0 0 0) !important;
    width: 1px !important;
    height: 1px !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    outline: 0 !important;
    left: auto !important;
    top: auto !important;
}

/* Stilizare container principal */
.ms-parent {
    display: inline-block;
    position: relative;
    vertical-align: middle;		
    height:50px !important; /* Ajustează la 50px, ca restul inputurilor */
    align-items: center;
}

/* Butonul dropdown */
.ms-choice {
	height: 100% !important;
    display: block;
    width: 100%;
    height: 50px !important;
    padding: 10px !important;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #ddd !important;
    text-align: left;
    white-space: nowrap;
    line-height: 26px;
    color:#333 !important;
    text-decoration: none;
    border-radius: 10px !important;
    background-color: white !important;
	font-size: 14px !important;
}


/* Select dezactivat */
.ms-choice.disabled {
    background-color: #f4f4f4;
    border: 2px solid #ddd;
    cursor: default;
}


.ms-choice > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	 color:#333 !important;
	 
}

.ms-choice span {
    padding-right: 25px; /* Spațiu pentru X */
	    display: block;
}

.ms-choice .ms-clear {
    position: absolute;
    right: 5px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f00d"; /* Cod Font Awesome pentru X */
}

.ms-choice > span.placeholder {
    color: #999;
}

/* Icon de închidere */
.ms-choice > div.icon-close {
    position: absolute;
    top: 0;
    right: 16px;
    height: 100%;
    width: 16px;
    font-weight: bold;
    color: #888;
}


.ms-choice > div.icon-close:hover {
    color: #333;
}

/* Icon săgeată */
.ms-choice > div.icon-caret {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    right: 8px;
    margin-top: -2px;
    margin-right: 5px;
    border-color: #333 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0px 6px;
}


	
.ms-choice > div.icon-caret.open {
    border-color: transparent transparent #333 transparent;
    border-width: 0 6px 6px 6px;
}


/* Stilizare dropdown */
.ms-drop {
    width: auto;
    min-width: 100%;
    overflow: hidden;
    display: none;
    margin-top: -1px;
    padding: 6px;
    position: absolute;
    z-index: 2;
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 6px;
}

.ms-drop.bottom {
    top: 100%;
	max-width: 350px;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
}

.ms-drop.top {
    bottom: 100%;
    box-shadow: 0 -4px 5px rgba(0, 0, 0, 0.15);
}

/* Căutare */
.ms-search {
    position: relative;
    width: 100%;
    min-height: 26px;
    padding: 2px;
    box-sizing: border-box;
}

.ms-search input {
    width: 100%;
    min-width: 200px !important;
    min-height: 24px;
	padding: 10px 26px 10px 10px !important; /* Adaugă padding la dreapta pentru icon */
    border: 1px solid #aaa;
    border-radius: 6px;
	margin: 4px 0 !important;	
	height: 36px !important;
}

/* Icon lupa */
.ms-search::after {
    content: '\f002'; /* Codul Font Awesome pentru lupa */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #7274DF; /* Culoare implicită */
    font-size: 14px;
    pointer-events: none; /* Nu afectează interacțiunea cu input-ul */
}


/* Stilizare opțiuni dropdown */
.ms-drop ul {
    overflow: auto;
    margin: 0;
    padding: 0;
	
}

.ms-drop ul > li {
    display: flex;
    align-items: center; /* Aliniază checkbox-ul pe verticală */
    gap: 2px; /* Spațiu între checkbox și text */
    padding: 5px;
	white-space: nowrap;
	}

.ms-drop ul > li .disabled {
    font-weight: normal !important;
    opacity: 0.35;
    cursor: default;
}

.ms-drop ul > li label {
    display: flex;
    align-items: center; /* Așează checkbox-ul și textul corect */
    gap: 10px; /* Adaugă spațiu între checkbox și text */
    cursor: pointer;
    padding-left: 5px; /* Ajustează spațiul inițial */
}

.ms-drop ul > li.option-divider {
    border-top: 1px solid #e9ecef;
}

.ms-drop input[type="radio"],
.ms-drop input[type="checkbox"] {
    flex-shrink: 0;
    position: relative;
}

.ms-drop .ms-no-results {
    display: none;
}



/* Evidențiază multiple select când este invalid */
.ms-parent.error .ms-choice {
    border: 2px solid #dc3545 !important; /* Roșu */
    background-color: #ffe5e5 !important; /* Fundal deschis */
}

.ms-parent.error .ms-choice:focus {
    outline: none !important;
    border-color: #dc3545 !important;
}

/* În cazul în care apare hover pe selectul invalid */
.ms-parent.error .ms-choice:hover {
    border-color: #dc3545 !important;
}

/* În cazul în care sunt checkbox-uri în listă */
.ms-parent.error .ms-drop {
    border: 2px solid #dc3545 !important;
}

/* Evidențiază multiple select când este invalid */
.ms-parent.error .ms-choice {
    border: 2px solid #dc3545 !important;
    background-color: #ffe5e5 !important;
}

/* Ajustează alinierea checkbox-urilor în lista dropdown */
.select2-container--default .select2-results__option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important; /* Spațiu între checkbox și text */
    padding: 8px 10px !important;
}

/* Ajustează poziția checkbox-urilor */
.select2-container--default .select2-results__option input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important; /* Evită scalarea checkbox-ului */
    width: 16px !important;
    height: 16px !important;
}

.ms-drop.dropdown-up {
    top: auto !important;
    bottom: 100% !important;
    margin-bottom: 5px !important;
}


	@media (max-width: 820px)
	{

		.ms-parent {
		
			height:40px !important; /* Ajustează la 50px, ca restul inputurilor */
		}
		/* Butonul dropdown */
		.ms-choice {
			height: 40px !important;
			padding: 0px !important;
			line-height: 20px;
		}

		
		.ms-choice > span {

		padding: 8px;
			 
		}
		
	}
