form label {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: #374e65;
}


form .password[score] {
    position: relative;
}

form .password[score]::before {
    position: absolute;
    top: 2.6rem;
    right: 1rem;
    font-size: 0.8rem;
    z-index: 1;
}

form .password[score="nosafe"]::after {
    content: "* The password must be at least 8 characters long and include both letters and numbers.";
    display: block;
    margin-bottom: 1rem;
}

form .password[score]::before {
    content: attr(score);
    color: var(--password-color, #e76924);
}

form .password[score="nosafe"]::before { --password-color: #d94435; content: "Not safe"; }
form .password[score="low"]::before { --password-color: #db8920; content: "Low security"; }
form .password[score="medium"]::before { --password-color: #db8920; content: "Medium security"; }
form .password[score="high"]::before { --password-color: #6cb01c; content: "High security"; }

form input[type].invalid {
    border: 1px solid #ffc2c2;
    background-color: #fff9f9;
}

form input[type].invalid::placeholder {
    color: #f44c4c;
}

form input[type="text"],
form input[type="tel"],
form input[type="email"],
form input[type="date"],
form input[type="datetime-local"],
form input[type="number"],
form textarea,
form input[type="password"],
form select {
    position: relative;
    width: 100%;
    outline: none;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 3px;
    padding: 0.5rem;
    margin: 0.2rem 0;
    font-weight: 300;
    font-family: Roboto, sans-serif;
    font-size: 1rem;
}
form input[type="datetime-local"]{
	 padding: 0.42rem;
}

form .select {
    position: relative;
}


form .select > label > input{
  padding-right: 2rem;
}

form .select::after{
   content: ' ';
   position: absolute;
   width: 0.7rem;
   height: 0.7rem;
   bottom: 1rem;
   right: 0.7rem;
   color: #1890ff;
   font-size: 0.7rem;
   background-image: url(../imgs/arrow.png);
   background-repeat: no-repeat;
   background-size: 0.7rem;
   background-position: 50%;
	pointer-events: none;
}

form .select.green > label input {
    background: #6675a5 url(../imgs/select_arrow.png) no-repeat 90% 50% / 10px;
    color: #fff;
    border: 1px solid #6675a5;
    font-weight: 400;
}

form .select.green > label input:disabled {
    background-color: #f7f9fa;
    border: 1px solid #f7f9fa;
    color: #ababaf;
    font-weight: 300;
}

form .select.green > label > fieldset,
form .select.green > label > fieldset label {
    background-color: #6675a5;
    border: 1px solid #6675a5;
    color: #fff;
    font-weight: 300;
}

form .select.green > label > fieldset > label:hover,
form .select.green > label > fieldset > label:has(input:checked) {
    background-color: #45509a;
}

form .select > label:has(input:focus) > fieldset {
	display: block;
}


form .select > label > fieldset[data-noitems]::after{
	display: block;
	content: attr(data-noitems);
	padding: 3rem 0;
	text-align: center;
	font-weight: 300;
	color: #a3a1a6;
	font-size: 0.9rem;
}

form .select > label > fieldset {
    display: none;
    position: absolute;
    z-index: 1;
    background-color: #fff;
    width: 100%;
	left: -0.1rem;
	margin-top: -0.25rem;
    border: 1px solid #ced4da;
    box-shadow: 0px 3px 4px -3px rgba(0,0,0,0.5);
    border-radius: 0 0 0.3rem 0.3rem;
    max-height: 300px;
    overflow: auto;
	padding: 0;
}

form .hiden{
	display: none !important;
}


form .select > label > fieldset > label.hide{
	display: none;
}

form .select > label > fieldset > label.disabled{
	display: none !important;
}

form .select > label > fieldset.out {
    bottom: 2.2rem;
    box-shadow: 0px -3px 4px -3px rgba(0,0,0,0.5);
    border-radius: 3px 3px 0 0;
}

form .select > label > fieldset:empty::after {
    content: 'Start typing to load options...';
    display: block;
    padding: 0.8rem 0.5rem;
    color: #ced4da;
    font-size: 0.9rem;
}

form .select > label > fieldset.noitems::after {
    content: 'Nothing found';
}

form .select > label > fieldset label {
    padding: 0.5rem;
    margin: 0;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 300;
    font-size: 0.9rem;
	cursor: pointer;
	color: #000;
}

form .select > label > fieldset label:hover {
    background-color: #f7fafc;
}

form .select > label > fieldset label:has(input:checked) {
   background-color: #f7fafc;
}

form .select > label > fieldset input {
    display: none;
}

form .select > label > fieldset > label[data-create]{
	background: url(../imgs/add.png) no-repeat;
	background-position: 10px 50%;
	background-size: 14px;
	padding-left: 30px;
	color: #1890ff;
	font-size: 0.9rem;
}

.form-buttons {
    padding: 0;
    text-align: right;
}

.form-buttons .status {
    display: inline-block;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border-radius: 0.3rem;
    right: 90px;
    text-align: right;
    font-weight: 500;
    font-size: 0.8rem;
    background-size: 2rem;
    background-position: 0 50%;
    background-repeat: no-repeat;
}

.form-buttons .status:empty {
    display: none;
}

.form-buttons .status {
    background-color: #fde8e4;
    color: #f74b27;
    background-image: url(../imgs/warning.png);
}

.form-buttons .status.success {
    background-color: #daf4f0;
    color: #0ab39c;
    background-image: url(../imgs/success.png);
}

*.passive {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

form .separate{
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}
form .separate > *{
	flex: 1;
}

form .separate > .primary{
	flex: 2;
}

form .table-list {
    width: 100%;
    border-radius: 0.3rem;
    margin: 0.5rem 0 1rem;
}

form .table-list > div {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
	gap: 0.5rem;
}

form .table-list > div:first-child {
    font-weight: 400;
    font-size: 0.8rem;
    min-height: 2.2rem;
	color: #374e65;
}

form .table-list > div > div {
    flex: 1;
    text-align: left;
    padding: 0 0.5rem;
}

form .table-list > div > div:last-child {
    flex: 0 0 2rem;
	text-align: left;
}

form[data-type="1"] .table-list > div > div:has(input[data-packs]) {
   position: relative;
}
form[data-type="1"] .table-list > div > div:has(input[data-packs])::after {
  position: absolute;
  content: 'pack(s)';
  right: 0.8rem;
  top: 0.7rem;
  color: #7367f0;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  background-color: #e9e7fd;
  border-radius: 5px;
}

form[data-type="1"] .table-list > div > div input[data-packs]{
   padding-right: 3.7rem;
}


form[data-type="2"] .table-list > div > div:nth-child(4),
form[data-type="2"] .table-list > div > div:nth-child(5),
form[data-type="3"] .table-list > div > div:nth-child(4),
form[data-type="3"] .table-list > div > div:nth-child(5){
   display: none;
}


form .table-list .extra-long {
    flex: 3 !important;
}

form .table-list .long {
    flex: 2 !important;
}

form .table-list .left {
    text-align: left !important;
}

form .table-list .green {
    color: #099885 !important;
}

form .table-list .wrong {
    color: #f06548 !important;
	background-color: #fff6f6;
}
form .table-list .wrong input[type='text'], 
form .table-list .wrong input[type='number']{
    color: #f06548 !important;
	background-color: #fff6f6;
}

form .table-list .wrong input[type='text']:placeholder,
form .table-list .wrong input[type='number']:placeholder{
    color: #f06548 !important;
}

form .table-list input {
    #background-color: #ecf1ff;
	border: 0px solid #fff;
	border-bottom: 1px solid #ced4da;
	border-radius: 0;
}

form .table-list .close{
	display: inline-block;
	width: 0.8rem;
	height: 0.8rem;
	background-image: url(../imgs/x.png);
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: 50%;
	cursor: pointer;
	border-radius: 5px;
	opacity: 0.5;
}

form [data-name="add"]{
	display: inline-block;
    background-color: #1890ff;
    color: #fff;
    padding: 0.7rem 1rem;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
}

form .list > *{
	margin-bottom: 1rem;
}


form .switch{
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

form .switch > label{
	width: 30px;
}
form .switch > *:nth-child(2){
	width: calc(100% - 30px);
}
form .switch > *:nth-child(3){
	width: 100%;
}

form .switch > label{
	display: inline-block;
	width: 1rem;
	height: 1rem;
	outline: 1px solid #1890ff;
	border: 2px solid #fff;
	border-radius: 5px;
	margin-right: 0.7rem;
	vertical-align: baseline;
	cursor: pointer;
}

form .switch > label:has(input:checked){
	background-color: #1890ff;
}

form .switch > label > input{
	display: none;
}


form .switch > input[type="number"],
form .switch > input[type="text"],
form .switch > textarea{
	pointer-events: none;
	background-color: #edf6ff;
}

form .switch > textarea{
	width: 100%;
}

form .switch:has(input:checked) > input[type="number"],
form .switch:has(input:checked) > input[type="text"],
form .switch:has(input:checked) > textarea{
	pointer-events: auto;
	background-color: #fff;
}



.upload-files .area-images{
	position: relative;
	border: 1px solid #ced4da;
    border-radius: 0.3rem;
	width: 100%;
	height: 200px;
	cursor: pointer;
	background: url(../imgs/uploader/bg.svg) no-repeat;
	background-position: left 50% top 10px;
	background-size: 150px;
	padding: 140px 0 0 0;
	text-align: center;
	margin-top: 0.5rem;
}
.upload-files .area-images > div{
	font-weight: 400;
	font-size: 0.9rem;
	color: #ABD7EC;
}
.upload-files .area-images > div > span{
	font-weight: 300;
	font-size: 0.7rem;
	display: block;
	margin: 0.2rem;
}


.upload-files .area-images input{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}


.upload-files .area-images.dragover{
	border: 1px dashed #0ab39c;
	background-color: #fbfbfb;
}

.upload-files .files{
	min-width: 100%;
	max-width: 100%;
	border: 1px solid #f1f3f4;
	border-radius: 0.3rem;
	margin: 1rem 0;
}
.upload-files .files:empty{
	display: none;
}
.upload-files .files > div{
	display: flex;
	align-items: center;
	font-weight: 300;
}

.upload-files .files > div > img{
	flex: 0 0 50px;
	width: 50px;
	height: 50px;
	border-radius: 50px;
	object-fit: cover;
	padding: 0.3rem;
}

.upload-files .files > div > div:nth-child(2){
	white-space: nowrap;    
	overflow: hidden; 
	text-overflow: ellipsis;
	max-width: 300px;
 
}
.upload-files .files > div > div:nth-child(3){
	flex: 0 0 80px;
}

.upload-files .files > div > *{
	flex: 1;
	font-size: 0.8rem;
	padding: 0.5rem;
	text-align: left;
	left: left;
}
.upload-files .files > div:hover{
	background-color: #f0f8ff;
}
.upload-files .files > div > div.close{
	flex: 0 0 2rem;
	width: 0.8rem;
	height: 0.8rem;
	background-image: url(../imgs/x.png);
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: 50%;
	cursor: pointer;
	border-radius: 5px;
	opacity: 0.5;
}

.form-buttons{
	padding: 0;
	text-align: right;
	margin: 1rem 0;
}

.form-buttons > button{
	outline: none;
	padding: 0.7rem;
	background-color: #1890ff;
	color: #fff;
	border: 0px solid #fff;
	border-radius: 0.3rem;
	cursor: pointer;
	user-select: none;
	font-size: 0.9rem;
	font-weight: 400;
}

.form-buttons .status:empty{
	display: none;
}
.form-buttons .status{
	display: inline-block;
	background-color: #fde8e4;
	top: 0.6rem;
	color: #f74b27;
	padding: 0.5rem 1rem 0.5rem 2.5rem;
	border-radius: 0.3rem;
	right: 90px;
	text-align: right;
	font-weight: 500;
	font-size: 0.8rem;
	background-image: url(../imgs/warning.png);
	background-size: 2rem;
	background-position: 0 50%;
	background-repeat: no-repeat;
}

.form-buttons .status.success{
	display: inline-block;
	background-color: #daf4f0;
	top: 0.6rem;
	color: #0ab39c;
	padding: 0.5rem 1rem 0.5rem 2.5rem;
	border-radius: 0.3rem;
	right: 90px;
	text-align: right;
	font-weight: 500;
	font-size: 0.8rem;
	background-image: url(../imgs/success.png);
	background-size: 2rem;
	background-position: 0 50%;
	background-repeat: no-repeat;
}


.main-data{
	
}

.main-data > img{
	float: left;
	margin: 0 1rem 1rem 0;
}