/* 
.subGrid{
    width: 100%;
    border: 1px solid #657d6999;
        display: grid;
    grid-template-rows: auto 1fr;
}
.subGridHeader{
    display: flex;
    background: #657d6999;
    color: #fff;
    line-height: 25px;
    font-weight: 600;
}
.subGridHeader >*{
    padding: 5px 10px;
    cursor: pointer;

}
.subGridHeader .active{
    background: #fff;
    color: #657d69;
    cursor: auto;
}
.subGridHeader .space{
    flex: 1;
    cursor: auto;
}
.subGrid .toolbar{
    cursor: auto;
    padding: 0;
    display: flex;
    align-items: center;
}
.subGrid .toolbar > div{
    display: inline-block;
    padding: 0 10px;
}
.subGrid .toolbar svg{
    width: 20px;
    height: 18px;
    fill: #fff;
    cursor: pointer;
}

.subGrid .toolbar button:hover{
    border: 1px solid #516655;
}
.subGridContent{
    padding: 10px;
    overflow: auto;
}
.subGridContent table {
    line-height: 25px;
}
.subGridContent table thead{
    background-color: #657d6933;
    
}
.subGridContent table tbody tr{
    cursor: pointer;
}
.subGridContent table tbody td{
    padding: 0 2px;
}
.subGridContent tfoot td{
    text-align: right;
    font-weight: 600;
}

.form .title .formHead{
    background: none;
    color: #fff;
}
.form .title .formHead.active{
    background: #fff;
    color: #657d69;
}
.form .formContent{
    display: none;
}
.form .formContent.active{
    display: flex;
}
.form .checkmark{
	position: absolute;
	top: 20px;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
	border: 1px solid #516655;
}
.checkmark:hover{
	background-color: #ccc;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}
input:checked ~ .checkmark {
  background-color: #657d69;
}
input:checked ~ .checkmark:after {
  display: block;
}

.autoDropdown{
	    position: absolute;
    background: #fff;
    z-index: 99;
    border: 1px solid;
   
    display: none;
    left: 0;
    right: 0;
    border-radius: 4px;
    box-shadow: 0 0 5px #00000055;
}
.autoDropdown ul{
	padding: 0;
	margin: 0;
}
.autoDropdown ul li{
	padding: 2px 10px;
} */

.formHeader{
	display: inline-block;
	background: #657d69; 
	color: #fff;
	border-bottom: none;
	font-weight: 600;
}
.formView form{
	display: flex;
}

.formHeader > div{
	display: inline-block;
    padding: 10px;
	
	border-right: 1px solid #657d69;
	color: #ffffff;
}

.formHeader > div:first-child{
	
}
.formHeader > div:last-child{
	border-right: none;
}

.formHeader > div.active{
	color: #657d69;
	background: #f8f8f8;
}

.formView {
	--primary-color: #657d69;
    flex: 1;
    overflow: auto;
    border: 1px solid #657d69;
    margin: 10px;
	display: flex;
    flex-direction: column;
	border-radius: 4px;
	box-shadow: 0 0 5px #00000055;
	margin-top: 0;
}

.formView fieldset{
	flex: 1 1 100%;
	min-width: 170px;
	border: none;
	padding: 5px 0;
	position: relative;
	margin: 0;
	border-radius: 4px;
}
.formView fieldset legend{
	padding: 0;
	margin: 0 10px;
	border: 1px solid #657d69;
	background: #657d69;
	color: #fff;
	border-radius: 4px;
	
}
.formView legend span{
	border-right: 1px solid;
    padding: 5px 10px;
    display: inline-block;
	background: #ffffff99;
	cursor: pointer;
}
.formView legend span:hover{
	background: #00000099 !important;
}
.formView legend span.active{
    
	background: #657d69;
}
.formView legend span:first-child {
	border-radius: 4px 0 0 4px;
}

.formView legend span:last-child{
	border: none;
	border-radius: 0 4px 4px 0;
}

.formView form >div{
	flex: 1;
	padding: 5px 0;
}
.formView fieldset label{
	line-height: 20px;
}

.formView form {
	flex-wrap: wrap;
	gap:5px 15px;
	
}

.formView fieldset input[type=text], .formView fieldset input[type=password], .formView fieldset input[type=date], .formView fieldset select{
	width: 100%;
	line-height: 25px;
	padding:2px 12px;
	margin: 2px 0;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	height: 31px;
	outline: 1px;
}



.formView .multiSelect{
	border: 1px solid #ccc;
	border-radius: 4px;
	margin: 2px 0; 
	display: flex;
	background: #fff;
	align-items: center;
	height: auto;
	min-height: 20px;
	flex-wrap: wrap;
    gap: 5px;
    padding: 4px 0;
}

.formView .multiSelect div{
	background: #eee;
	display: inline-block;
}

.formView .multiSelectOption{
    position: absolute;
    top: 60px;
    left: 0px;
    z-index: 1;
    background: #fff;
    /* width: 100%; */
    border: 1px solid #ccc;
    right: 0;
    border-radius: 4px;
	display: none;
	box-shadow: 0 0 5px #99999955;
}
.formView .multiSelectOption.show{
	display: block;
}

.formView .multiSelectOption input{
	margin: 10px;
}
.multiSelectOption > div{
	padding: 10px;
    border-bottom: 1px solid #ccc;
    
}
.multiSelectOption ul{
	min-height: 50px;
	max-height: 300px;
	overflow: auto;
	padding: 0;
	margin: 0;
}
.multiSelectOption ul li{
	line-height: 30px;
	padding: 0 10px;
}
.multiSelectOption ul li:hover{
	background: #eee;
}





.formView .multiSelect span{
	margin-left: 5px;
    border: 1px solid;
    border-radius: 4px;
    padding: 1px 20px 1px 5px;
    display: inline-block;
    background: #eee;
	position: relative;
	white-space: nowrap;
}
.formView .multiSelect span.placeholder{
	background: none;
	border: none;
	color: #ccc;
}

.formView .multiSelect svg{
	position: absolute;
	right: 2px;
	top: 2px;
	cursor: pointer;
	width: 16px;
	height: 16px;
}
.formView .multiSelect input{
	border: none !important;
    margin: 0px !important;
    flex: 1;
	min-width: 100px;
	padding: 2px 7px !important;
}


.formView fieldset input[type=checkbox]{
	display: block;
	width: 30px;
    height: 25px;
    margin: 5px 0;
}

.formView fieldset textarea{
	width: 100%;
	line-height: 25px;
	padding:2px 12px;
	margin: 2px 0;
	display: inline-block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	
	outline: 1px;
}
.formView fieldset textarea:focus{
	border-color: #444;
}
.formView fieldset .text {
	border: 1px solid #ccc;
	height: 29px;
	border-radius: 4px;
	margin: 2px 0;
	line-height: 29px;
	padding: 0 12px;
}

.formView fieldset div.select{
	background: #fff;
	top: 20px;
	background: #fff;
	height: 31px;
	line-height: 31px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.formView fieldset div.select .txtBox {
	padding: 0 30px 0 10px;
}

.formView fieldset > .dropdown{
	position: absolute;
	bottom: 2px;
	right: 1px;
	line-height: 29px;
	width: 30px;
	text-align: center;
	cursor: pointer;
	border-left: 1px solid #ccc;
}

.formView fieldset div.select:focus{
	border-color: #000;
}

.formView fieldset .optionList{
	display: none;
    position: absolute;
    z-index: 9;
    background: #fff;
    list-style: none;
    line-height: 30px;
    padding: 0;
    margin: 0;
    box-shadow: 0 0 5px #00000055;
    top: 60px;
    left: 0;
	right: 0;
    border: 1px solid #999999;
	max-height: 300px;
    overflow: auto;
}


.formView fieldset .optionList li{
	padding: 0 10px;
	cursor: pointer;
}

.formView fieldset .optionList li:hover{
	background: #eee;
}

.formView fieldset input[type=text]:focus, #form fieldset select:focus{
	border-color: #000;
}


.subGrid{
    width: 100%;
    border: 1px solid #657d69cc;
    display: grid;
    grid-template-rows: auto 1fr;
	padding: 10px;
}


.subGrid thead{
	background: #657d69;
}
.subGrid td{
	line-height: 25px;
}

.highlight{
	font-weight: 600;
}
.formView button {
	background-color: #657d69;
    padding: 0 10px;
    color: #fff;
    border-radius: 4px;
	line-height: 25px;
	font-weight: 600;
}
.formView button:hover{
	box-shadow: 0 0 5px #00000050;
	background: #344337;
}
.formView .gridHeader{
	background-color: #afbbb1;
	color: #000;
}

.pBody	 .formView {
	margin: 0;
}
.formView .gridView tbody tr.active td{
	background-color: #657d6933;
}


.formView .summary{
	text-align: right;
	padding: 0 5px;
	display: grid;
	grid-template-columns: auto 120px;
	line-height: 30px;
}
.formView .summary input{
	text-align: right;
}
.formView .summary div{
	padding-right: 5px;
}


.pHeader {
    
    padding:2px 10px;
    background: #657d69;
    color: #fff;
    font-weight: 600;
	line-height: 30px;
	height: 30px;
	margin: 0;
}

.popup {
    min-width: 350px;
    width: 550px;
    max-height: 90%;
    border: 1px solid #657d69;
    background: #fff;
    display: flex;
    flex-direction: column;
    max-width: 95%;
    box-shadow: 0 0 5px;
    border-radius: 4px;
}

.jpopup{
	position: fixed;
    inset: 0px;
    background: #00000099;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pBody{
	flex: 1;
	padding: 15px;
    overflow: auto;
}
.popup button{
	padding: 0 20px;
	line-height: 30px;
	background: #657d69;
	color: #fff;
}
.jpopup .pFooter {
    font-size: 11px;
    text-align: right;
    padding: 10px 20px;
    margin: 0;
    background: #fafafa;
}


