:root {
	--user-right: max(25px, min( max( calc( 50% - var(--content-width) / 2 + var(--dropdown-width) ) , 0px ) , 20% , calc( 100% - max( 50% - var(--content-width) / 2 , 0px ) - 900px ) ));
	--dropdown-width: 160px;
	--navbar-top-height: 37px;
	--navbar-bottom-height: 35px;
	--navbar-height: calc(var(--navbar-top-height) + var(--navbar-bottom-height));
	--user-right: 15px;
}

* {
    box-sizing: border-box;
}

#wrapper{
	top: calc(0px - var(--navbar-height)) !important;
	height: calc(100% + var(--navbar-height)) !important;
}

div.color{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height:  var(--navbar-height);
	background-color: rgb(10,10,80);
	z-index: 3;
}

ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}

ul {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	overflow: visible;
	z-index: 4;
	min-width: var(--main-table-width);
	height: var(--navbar-top-height);
}

ul > div{
	width: fit-content;
	/*margin:auto;*/
	margin-left: max( calc( 50% - var(--content-width) / 2 ) , 0px );
	margin-left: 0px !important;
}


li {
	height: 100%;
	float: left;
	margin-left: 30px; 
	display: inline;
	line-height: normal;
}

li.home {
	margin-left: 10px; 
}

li.state {
	left: 638px; 
}


li a, .dropbtn {
	height: 100%;
	display: inline-block;
	color: white;
	text-align: center;
	padding: 8px 10px;
	text-decoration: none;
	font-weight: 600;
	line-height: normal;
	font-size: 16px;
	position: relative;
}

li a[href="#user_options"]{
	width: 30.7px;
}

li a[href="#user_options"] div{
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%)
}

li a.disabled, li div.side-container.disabled a{
	color: rgba(0,0,0,0.2);
	pointer-events:none;
}

li > a:hover{
	text-decoration: none;
	color: white;
}

li > a:hover, .dropdown:hover .dropbtn {
	background-color: rgb(20,20,130);
}

li a.disabled span:last-child{
	color: transparent;
}

li.dropdown {
	display: inline-block;
}

li.dropdown.user-left{
	right: calc(25px + var(--user-right));
}

li.dropdown.user-right{
	right: calc(0px + var(--user-right));
}

li a div{
	display:inline-block;
}

li a div.state{
	white-space: nowrap;
}

#navbar_state{
    top: -18px !important;
    color: yellow !important;
    font-size: 36px !important;
	border: none !important;
}

#navbar div.logincounts{
	position: absolute;
    color: white;
    z-index: 3;
	font-weight: 600;
    line-height: normal;
    font-size: 16px;
	
	right: calc(145px + var(--user-right));
    top: 7px;
	
	visibility: hidden;
}

li div.home_icon{
	position: relative;
	top: 2px;
	width: 15px;
	height: 15px;
	background-image: url("symbols/icon-home-white.png");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 15px 15px;
}

.dropdown-content {
	/*display: none;*/
	position: absolute;
	background-color: #f9f9f9;
	min-width: var(--dropdown-width);
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
	z-index: 3;
	top: var(--navbar-top-height);

	visibility: hidden;
	transition: visibility 0.1s;
}

.dropdown-content a {
	height: 30px;
	color: black;
	text-decoration: none;
	display: block;
	text-align: left;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	padding: 3px 0px 0px 15px;
	letter-spacing: 0.2px;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover:not([hover="false"]) .dropdown-content {
	/*display: block;*/
	visibility: visible;
}
.dropdown[linger] .dropdown-content {
  display: block;
}

.side-container > a::after{
	content: ">";
	-webkit-transform: scaleX(0.6) scaleY(1.2);
    transform: scaleX(0.6) scaleY(1.2);
    text-align: right;
    float:right;
	padding: 0px 10px 0px 0px;
}

a.seperate{
	border-bottom: 1px solid rgba(0,0,0,0.1);
}

.side-content{
	display: none !important;
	left: var(--dropdown-width);
	min-width: var(--dropdown-width);
	position: absolute;
	background-color: #f9f9f9;
	border-left: 1px solid rgba(0,0,0,0.05);
}

.dropdown-content .side-container:hover:not(.disabled) > .side-content{
	display: block !important;
}
.dropdown-content .side-container[linger]:not(.disabled) > .side-content{
	display: block !important;
}

.side-content a{
	display: block;
	white-space: nowrap;
    margin-right: 5px;
}

li.user div.downward-white{
	background-image: url(../css/symbols/icon-downward-white.png);
    color: transparent;
    background-size: 20px 20px;
    background-position: -5px 0px;
	width: 11px;
}

form.gwwork{
	position: absolute;
	top: var(--navbar-top-height);
	height: var(--navbar-bottom-height);
	background-color: rgb(10,10,80);
	z-index: 3;
	width: 100%;
	display: none;
}

#navbar form.gwwork{
	display: initial;
}

form.gwwork *{
	position:absolute;
}

form.gwwork input[type=number]::-webkit-outer-spin-button,
form.gwwork input[type=number]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
form.gwwork input[type=number] {
	-moz-appearance: textfield;
}

form.gwwork div.search_background {
	background-color: #999999; 
	position:absolute; 
	/*width:600px; */
	height:36px;
}

form.gwwork #label_sno{
	font: 20px / 10px Arial;
	left: 95px;
	top: 3px;
	z-index: 2; 
	cursor:text;
	user-select:none;
	width: 11px;
	
	display:none;
}

form.gwwork #label_gwwork{
	position:absolute; 
	z-index:1; 
	width:75px; 
	top:3px; 
	left:40px;
	
	color: white;
	font-weight: 600;
	font-size: 16px;
}

form.gwwork input{
	font: 20px / 10px Arial;
}

form.gwwork #input_gwwork_sno{
	left:90px; 
	width:56px; 
	padding-left:15px;
	
	display:none;
}

form.gwwork #label_gwwork_seperate{
	position:absolute; 
	z-index:1; 
	width:75px; 
	top:-5px; 
	width:auto; 
	left:346px;
	
	display:none;
}

form.gwwork #input_gwwork_code{
	width:150px;
	text-transform:uppercase;
	top: 0px;
	
	left:112px; 
}

form.gwwork #input_gwwork_name{
	width:300px;
	top: 0px;
	
	left:288px; 
}

form.gwwork button.gwwork{
	outline:none;
	
	left:263px; 
	top: 1px;
	top: 2px;
	position: relative;
	margin-top: 0px;
	margin-left: 0px;
	width: 25px;
	height: 28px;
	background-color: #efefef;
	background-color: #c0c1bc;
	background-repeat: no-repeat;
	background-position: 30% 30%;
	background-size: 20px 20px;
	cursor: pointer;
}

form.gwwork button.gwwork div.dots{
    position: relative;
    top: -4px;
    left: -2px;
    font-size: 20px;
}

/*額外*/
div.dropdown-content a.工程預算建檔
,div.dropdown-content a.採購詢價建檔
,div.dropdown-content a.合約資料建檔{
	display: none;
}

div.dropdown-content a.基本資料表
,div.dropdown-content a.採購詢價
,div.dropdown-content a.預算執行
,div.dropdown-content a.管理報表{
	display: none;
}

li.form.dropdown div.side-content a{
	display: none;
}

li.form.dropdown div.side-content a.預算變更單
,li.form.dropdown div.side-content a.合約變更單
,li.form.dropdown div.side-content a.工地日報表
,li.form.dropdown div.side-content a.合約計價單
,li.form.dropdown div.side-content a.零星採購計價單
,li.form.dropdown div.side-content a.代墊請扣對應表
,li.form.dropdown div.side-content a.合約階段計價單
,li.form.dropdown div.side-content a.合約實作實算計價單
,li.form.dropdown div.side-content a.零星計價單
,li.form.dropdown div.side-content a.合約當期付款控制表
,li.form.dropdown div.side-content a.代墊請扣款對應表
,li.form.dropdown div.side-content a.預算追加減狀況表
,li.form.dropdown div.side-content a.工程請款彙總表
,li.form.dropdown div.side-content a.預算發包決算表
,li.form.dropdown div.side-content a.工程請款明細表
,li.form.dropdown div.side-content a.合約追加減狀況表
,li.form.dropdown div.side-content a.廠商合約估驗統計表
,li.form.dropdown div.side-content a.發票取得明細表
,li.form.dropdown div.side-content a.廠商票期明細表
,li.form.dropdown div.side-content a.採購申請單
,li.form.dropdown div.side-content a.工地驗收單{
	display: block;
}


div.dropdown-content a.預算變更申請作業{
	border-bottom: none;
}