
html{
	font-size:10px;
	* {
		font-size: 1.2rem;
	}
}

body{
	margin:0;
	width:100%;
	height:100%;
	overflow-x: hidden;
}

body.domain_top > main{
	margin-top: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	> *{
		width:400px;
		display: flex;
		flex-wrap: wrap;
		gap:16px;
		padding:32px;
		background: hsl(var(--col),0%,40%);
		border-radius: 5px;
	}
	> * > *{
		width:100%;
		margin: 0;
		padding: 0;
	}
	> * > form{
		display: flex;
		gap:16px;
		flex-wrap: wrap;
	}
	> * > form > *{
		width:100%;
	}
	> * > form .wrap > span:first-of-type{
		color: hsl(var(--col),0%,80%);
	}
	> * > form input[type=text],input[type=password]{
		width: 100%;
	}
}


body:not(.domain_top){
	background: hsl(var(--col),0%,90%);
}

body > header{
	width: 100%;
	background: #fff;
	display: flex;
	padding: 16px;
	justify-content:space-between;
	background: hsl(var(--col), 0%, 20%);
	* {
		font-size: 1.6rem;
		color: #fff;
	}
	a {
		font-size: 1.2rem;
		border-radius: 10px;
		padding: 4px 16px;
		background: hsl(var(--col), 0%, 40%);
		text-decoration: none;
	}	
}

body{
	gap: 16px;	
}

body > nav{
	z-index: 999;
	width: 180px;
	position: sticky;
	background: hsl(var(--col),0%,95%);
	padding: 0;
	height: calc(100vh - 59px);
	top: 59px;
	left: 0;
	overflow-y: auto;
	overflow-x: hidden;
	* {
		box-sizing: border-box;
		font-size: 1.4rem;
	}
	> *{
		display: block;
		width:100%;
		font-size: 1.2rem;
	}
	:is(a,span){
		font-size: 1.2rem;
		display: block;
		padding:8px;
	}
	> span{
		font-weight: bold;
	}
	a:is(:hover,.focus){
		background:hsl(var(--col),0%,90%);
		color: hsl(var(--col-blue),75%,60%) !important;
		text-decoration: none;
	}
	> ul{
		padding-left: 16px;
	}
}

body > nav.close{
	width:calc(24px * 3);
	> p{
		display: none;
	}
}

body:not(.domain_top) {
	display: flex;
	flex-wrap: wrap;
}

body:not(.domain_top) >  main{
	width: 20%;
	flex-grow: 1;
	padding-right: 8px;
	display: flex;
	flex-flow: column;
	flex-wrap: wrap;
	gap: 16px;
	> *{
		box-sizing: border-box;
		width: 100%;
	}
	h1{
		font-size: 2rem;
		font-size:2rem;
	}
}

body:is(.tableView) .searchWrap{
	padding: 8px 16px;
	gap: 24px;
	background: hsl(var(--col),0%,70%);
	border-radius: 5px;

	.items > *{
		border: 1px solid hsl(var(--col),0%,97%);
		padding:4px 16px;
	}
	label{
		padding-inline: 16px;
	}
	> form{
		display: flex;
		gap:8px;
	}
	> form input[type=text]{
		width:250px;
	}
	> form button{
		margin: 0;
		padding:2px 16px;
		background: hsl(var(--col-green), 75%,50%);
		font-size: 1.2rem;
		border-style:none ;
		color: #fff;
		border-radius: 5px;
	}
	a{
		display: flex;
		align-items: center;
		background: hsl(var(--col-skyblue), 90%,40%);
		color: #fff;
		padding-inline:24px;
		border-radius: 5px;
	}
	:is(.items){
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		gap:16px;
	}
}


body:is(.tableView) > main .wrap{
	background: #fff;
	padding: 8px;

	.datas{
		display: block;
		overflow-y: scroll;
		overflow-x: scroll;
	}
	.datas table tr.header, .datas table tr.header th, .datas table tr .bg {
		background: hsl(var(--col),0%,40%);
		color: #fff;
		font-weight: normal;	
	}
	.datas table tr.unBackGround, .datas table tr.unBackGround th{
		background: none;
		color: #000;
	}
	.datas table :is(th,td) {
		width:auto;
		border: 1px solid hsl(var(--col),0%,70%);
		margin: -1px 0 0 -1px;
		padding:4px 8px;
		word-wrap: normal;
	}
	.datas table .header :is(th){
		position: sticky;
		top: 0;
		left: 0;
	}
	.datas table :is(th,td).clmNumber{
		width:40px !important;
		text-wrap: nowrap;
	}
	.datas table tr:not(:first-of-type):hover{
		background: hsl(var(--col),0%,97%);
	}
	.datas table :is(th,td) :is(input[type=text]){
		min-width: 300px;
	}
}

.tableView .pager{
	margin-top: 24px;
	display: flex;
	gap: 8px;
	margin-top: 24px;
	justify-content: center;
	> * {
		border: 1px solid hsl(var(--col),75%,60%);
		padding: 4px 12px;
		border-radius: 5px;
		text-decoration: none;
	}
	> *.focus {
		background: hsl(var(--col),75%,60%);
		color: #fff;
	}
}

.tableView .tbWrapper {
	background: #fff;
	padding: 8px;
	width: 100%;
	max-width: calc(100vw - 260px);
	overflow: auto;
	padding: 0;
	table {
		border-collapse: separate;
		border-spacing: 1px;
	}
	table :is(thead, tfoot, tbody) :is(th, td) {
		white-space: nowrap;
		padding: 4px 16px;
		border: 1px dotted hsl(var(--col), 0%, 70%);
	}
	table :is(thead, tfoot, tbody) :is(th, td).isNumber {
		padding-inline: 12px 4px;
	}
	table thead {
		position: sticky;
		top: 0;
		left: 0;
		z-index: 2;
	}
	table thead :is(th, td) {
		background: hsl(var(--col-blue), 70%, 30%);
		color: hsl(var(--col-blue), 100%, 97%);
		font-weight: normal;
	}
	table tbody :is(th, td) {
		background: #fff;
	}
	input[type=checkbox]:disabled {
		opacity: 1; 
	}
	table tbody tr:hover{
		:is(th, td) {
			background: hsl(var(--col-blue), 70%, 97%);
		}
	}
	table tbody .rejected :is(th, td) {
		background: hsl(var(--col), 0%, 80%);
	}
}

.tableView .tbWrapper table {

}